Revision 1026:b42553f6df71 vendor/plugins/redmine_tags/app/helpers
| vendor/plugins/redmine_tags/app/helpers/tags_helper.rb | ||
|---|---|---|
| 40 | 40 |
content_tag('span', content, :class => 'tag-label')
|
| 41 | 41 |
end |
| 42 | 42 |
|
| 43 |
def render_project_tag_link(tag) |
|
| 43 |
def render_project_tag_link(tag, options = {})
|
|
| 44 | 44 |
content = link_to tag.name, :controller => :projects, :action => :index, :project => { :tag_list => tag.name }
|
| 45 |
if options[:show_count] |
|
| 46 |
content << content_tag('span', "(#{tag.count})", :class => 'tag-count')
|
|
| 47 |
end |
|
| 45 | 48 |
content_tag('span', content, :class => 'tag-label')
|
| 46 | 49 |
end |
| 47 | 50 |
|
| ... | ... | |
| 73 | 76 |
end |
| 74 | 77 |
|
| 75 | 78 |
tag_cloud tags, (1..8).to_a do |tag, weight| |
| 76 |
content << " " + content_tag(item_el, render_tag_link(tag, options), :class => "tag-nube-#{weight}") + " "
|
|
| 79 |
content << " " + content_tag(item_el, render_project_tag_link(tag, options), :class => "tag-nube-#{weight}") + " "
|
|
| 77 | 80 |
end |
| 78 | 81 |
|
| 79 | 82 |
content_tag(list_el, content, :class => 'tags') |
Also available in: Unified diff