Revision 1078:b9e34a051f82 vendor/plugins/redmine_tags/app
| 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') |
| vendor/plugins/redmine_tags/app/views/projects/_filter_search_tags.html.erb | ||
|---|---|---|
| 6 | 6 |
</p> |
| 7 | 7 |
<div id="project_tag_candidates" class="autocomplete"></div> |
| 8 | 8 |
<%= javascript_include_tag 'tags_input', :plugin => 'redmine_tags' -%> |
| 9 |
<%= javascript_tag "observeProjectTagsField('#{url_for(:controller => 'auto_completes', :action => 'project_search_tags', :project_id => Project.first.id)}', true)" -%>
|
|
| 9 |
<%= javascript_tag "observeProjectTagsField('#{url_for(:controller => 'auto_completes', :action => 'project_search_tags')}', true)" -%>
|
|
| 10 | 10 |
</div> |
| 11 | 11 |
<%- end -%> |
| 12 | 12 |
</p> |
| vendor/plugins/redmine_tags/app/views/projects/_filter_tags.html.erb | ||
|---|---|---|
| 7 | 7 |
<div id="project_tag_candidates" class="autocomplete"></div> |
| 8 | 8 |
<%= javascript_include_tag 'tags_input', :plugin => 'redmine_tags' %> |
| 9 | 9 |
|
| 10 |
<%= javascript_tag "observeProjectTagsField('#{url_for(:controller => 'auto_completes', :action => 'project_tags', :project_id => Project.first.id)}')" %>
|
|
| 10 |
<%= javascript_tag "observeProjectTagsField('#{url_for(:controller => 'auto_completes', :action => 'project_tags')}')" %>
|
|
| 11 | 11 |
</div> |
| 12 | 12 |
<% end -%> |
| 13 | 13 |
</p> |
| vendor/plugins/redmine_tags/app/views/projects/_tagcloud.html.erb | ||
|---|---|---|
| 1 |
|
|
| 2 |
<div id="tags"> |
|
| 3 |
<%= render_tags_list(Project.available_tags, :style => :cloud) %> |
|
| 4 |
</div> |
|
| 5 |
|
|
| 6 |
|
|
| vendor/plugins/redmine_tags/app/views/projects/_tags_form.html.erb | ||
|---|---|---|
| 6 | 6 |
</p> |
| 7 | 7 |
<div id="project_tag_candidates" class="autocomplete"></div> |
| 8 | 8 |
<%= javascript_include_tag 'tags_input', :plugin => 'redmine_tags' %> |
| 9 |
<%= javascript_tag "observeProjectTagsField('#{url_for(:controller => 'auto_completes', :action => 'project_tags', :project_id => Project.first.id)}', false)" %>
|
|
| 9 |
<%= javascript_tag "observeProjectTagsField('#{url_for(:controller => 'auto_completes', :action => 'project_tags')}', false)" %>
|
|
| 10 | 10 |
</div> |
| 11 | 11 |
<% end -%> |
| vendor/plugins/redmine_tags/app/views/projects/index.html.erb | ||
|---|---|---|
| 11 | 11 |
</div> |
| 12 | 12 |
|
| 13 | 13 |
|
| 14 |
|
|
| 15 | 14 |
<div style="clear:both;"></div> |
| 16 | 15 |
<% if User.current.logged? %> |
| 17 | 16 |
<%= render :partial => 'my_projects' %> |
Also available in: Unified diff