Revision 751:7bf2d69e9aeb vendor/plugins/redmine_tags
| 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) |
|
| 44 |
|
|
| 45 |
content = link_to tag.name, application_path(:controller => :projects, :action => :index, :project => {:tag_list => tag.name}),
|
|
| 46 |
|
|
| 47 |
content_tag('span', content, :class => 'tag-label')
|
|
| 48 |
end |
|
| 49 |
|
|
| 50 |
|
|
| 43 | 51 |
# Renders list of tags |
| 44 | 52 |
# Clouds are rendered as block <tt>div</tt> with internal <tt>span</t> per tag. |
| 45 | 53 |
# Lists are rendered as unordered lists <tt>ul</tt>. Lists are ordered by |
| vendor/plugins/redmine_tags/app/views/projects/_tags.html.erb | ||
|---|---|---|
| 1 | 1 |
<% unless @project.tag_list.empty? %> |
| 2 | 2 |
<tr> |
| 3 | 3 |
<td><b><%=l(:tags)%>:</b></td> |
| 4 |
<td><%= @project.tag_counts.collect{ |t| render_tag_link(t, :show_count => false, :open_only => false) }.join(', ') %></td>
|
|
| 4 |
<td><%= @project.tag_counts.collect{ |t| render_project_tag_link(t) }.join(', ') %></td>
|
|
| 5 | 5 |
</tr> |
| 6 | 6 |
<% end %> |
Also available in: Unified diff