4
5
6
7
8
9
10
11
12
13
14
|
# File 'app/helpers/admin/references_helper.rb', line 4
def tag_reference
String.new.tap do |output|
class_of_page.tag_descriptions.sort.each do |tag_name, description|
value = t("desc.#{tag_name.gsub(':','-')}").match('desc') ? description : t("desc.#{tag_name.gsub(':','-')}")
output << render(:partial => "admin/references/tag_reference.haml",
:locals => {:tag_name => tag_name,
:description => RedCloth.new(TrustyCms::Taggable::Util.strip_leading_whitespace(value)).to_html
})
end
end
end
|