app/helpers/admin/references_helper.rb in radiant-0.8.2 vs app/helpers/admin/references_helper.rb in radiant-0.9.0.rc2
- old
+ new
@@ -1,11 +1,14 @@
module Admin::ReferencesHelper
def tag_reference
returning String.new 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 => description})
+ :locals => {:tag_name => tag_name,
+ :description => RedCloth.new(Radiant::Taggable::Util.strip_leading_whitespace(value)).to_html
+ })
end
end
end
def filter_reference
@@ -19,12 +22,12 @@
"There is no filter on the current page part."
end
end
def _display_name
- case params[:id]
+ case params[:type]
when 'filters'
- filter ? filter.filter_name : '<none>'
+ filter ? filter.filter_name : t('select.none')
when 'tags'
class_of_page.display_name
end
end