Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 373
- Log:
Initial import of Radiant 0.9.1, which is now packaged as a gem. This is an
import of the tagged 0.9.1 source checked out from GitHub, which isn't quite
the same as the gem distribution - but it doesn't seem to be available in an
archived form and the installed gem already has modifications, so this is
the closest I can get.
- Author:
- rool
- Date:
- Mon Mar 21 13:40:05 +0000 2011
- Size:
- 1318 Bytes
1 | module Admin::ReferencesHelper |
2 | def tag_reference |
3 | returning String.new do |output| |
4 | class_of_page.tag_descriptions.sort.each do |tag_name, description| |
5 | value = t("desc.#{tag_name.gsub(':','-')}").match('desc') ? description : t("desc.#{tag_name.gsub(':','-')}") |
6 | output << render(:partial => "admin/references/tag_reference.haml", |
7 | :locals => {:tag_name => tag_name, |
8 | :description => RedCloth.new(Radiant::Taggable::Util.strip_leading_whitespace(value)).to_html |
9 | }) |
10 | end |
11 | end |
12 | end |
13 | |
14 | def filter_reference |
15 | unless filter.blank? |
16 | if filter.description.blank? |
17 | "There is no documentation on this filter." |
18 | else |
19 | filter.description |
20 | end |
21 | else |
22 | "There is no filter on the current page part." |
23 | end |
24 | end |
25 | |
26 | def _display_name |
27 | case params[:type] |
28 | when 'filters' |
29 | filter ? filter.filter_name : t('select.none') |
30 | when 'tags' |
31 | class_of_page.display_name |
32 | end |
33 | end |
34 | |
35 | def filter |
36 | @filter ||= begin |
37 | filter_name = params[:filter_name] |
38 | (filter_name.gsub(" ", "") + "Filter").constantize unless filter_name.blank? |
39 | end |
40 | end |
41 | |
42 | def class_of_page |
43 | @page_class ||= (params[:class_name].blank? ? 'Page' : params[:class_name]).constantize |
44 | end |
45 | end |