Revision 823:73057b65abcb vendor/plugins/redmine_tags/app/views
| vendor/plugins/redmine_tags/app/views/auto_completes/_search_tag_list.html.erb | ||
|---|---|---|
| 1 |
<ul> |
|
| 2 |
<% @tags.each do |tag| -%> |
|
| 3 |
<%= content_tag 'li', h('%s (%d)' % [tag.name, tag.count]), :name => tag.name %>
|
|
| 4 |
<% end -%> |
|
| 5 |
</ul> |
|
| vendor/plugins/redmine_tags/app/views/auto_completes/_tag_list.html.erb | ||
|---|---|---|
| 2 | 2 |
<% @tags.each do |tag| -%> |
| 3 | 3 |
<%= content_tag 'li', h('%s (%d)' % [tag.name, tag.count]), :name => tag.name %>
|
| 4 | 4 |
<% end -%> |
| 5 |
<%= content_tag 'li', l(:auto_complete_new_tag) % @name, :name => @name %> |
|
| 5 |
<%= content_tag 'li', l(:auto_complete_new_tag) % @name, :name => @name %>
|
|
| 6 | 6 |
</ul> |
| vendor/plugins/redmine_tags/app/views/projects/_filter_search_tags.html.erb | ||
|---|---|---|
| 1 |
<p class='tag'> |
|
| 2 |
<%- fields_for @project, :builder => TabularFormBuilder do |f| -%> |
|
| 3 |
<div> |
|
| 4 |
<p id="project_tags"> |
|
| 5 |
<%= f.text_field :tag_list, :label => :label_tags_search, :size => 60, :class => 'hol' -%> |
|
| 6 |
</p> |
|
| 7 |
<div id="project_tag_candidates" class="autocomplete"></div> |
|
| 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)" -%>
|
|
| 10 |
</div> |
|
| 11 |
<%- end -%> |
|
| 12 |
</p> |
|
| vendor/plugins/redmine_tags/app/views/projects/_filter_tags.rhtml | ||
|---|---|---|
| 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')}')" %>
|
|
| 10 |
<%= javascript_tag "observeProjectTagsField('#{url_for(:controller => 'auto_completes', :action => 'project_tags', :project_id => Project.first.id)}')" %>
|
|
| 11 | 11 |
</div> |
| 12 | 12 |
<% end -%> |
| 13 | 13 |
</p> |
| vendor/plugins/redmine_tags/app/views/projects/_filtered_projects.rhtml | ||
|---|---|---|
| 1 |
<%= render_project_table_with_filtering(@filtered_projects, @question) %> |
|
| 1 |
<% if @projects.empty? %> |
|
| 2 |
<p><b><%= l(:project_filter_no_results) %></b></p> |
|
| 3 |
<% else %> |
|
| 4 |
<%= render_project_table_with_filtering(@projects, @question) %> |
|
| 5 |
<% end %> |
|
| 6 |
|
|
| 7 |
<p class="pagination"><%= pagination_links_full @project_pages, @project_count %></p> |
|
| vendor/plugins/redmine_tags/app/views/projects/_my_projects.rhtml | ||
|---|---|---|
| 1 |
<fieldset id="filters" class="collapsible"> |
|
| 2 |
<legend onclick="toggleFieldset(this);"><%= l(:label_my_projects) %></legend> |
|
| 3 |
<% if @user_projects %> |
|
| 1 |
<% if !@user_projects.empty? %> |
|
| 2 |
<% if @myproj_status=="true" %> |
|
| 3 |
<fieldset id="my_projects_fieldset" class="collapsible"> |
|
| 4 |
<legend onclick="toggleFieldsetWithState(this);"><h2><%= l(:label_my_project_plural) %></h2></legend> |
|
| 5 |
<% else %> |
|
| 6 |
<fieldset id="my_projects_fieldset" class="collapsible collapsed"> |
|
| 7 |
<legend onclick="toggleFieldsetWithState(this);"><h2><%= l(:label_my_project_plural) %></h2></legend> |
|
| 8 |
<div style="display: none;"> |
|
| 9 |
<% end %> |
|
| 4 | 10 |
<div> |
| 5 |
<%= render_my_project_hierarchy(@user_projects)%> |
|
| 11 |
<%= render_my_project_hierarchy_with_tags(@user_projects)%>
|
|
| 6 | 12 |
</div> |
| 7 |
<% end %> |
|
| 8 |
</fieldset> |
|
| 13 |
<% unless @myproj_status=="true" %> |
|
| 14 |
</div> |
|
| 15 |
<%- end -%> |
|
| 16 |
</fieldset> |
|
| 17 |
<% end %> |
|
| vendor/plugins/redmine_tags/app/views/projects/_tags.html.erb | ||
|---|---|---|
| 1 | 1 |
<% unless @project.tag_list.empty? %> |
| 2 |
<tr> |
|
| 3 |
<td><b><%=l(:tags)%>:</b></td> |
|
| 4 |
<td><%= @project.tag_counts.collect{ |t| render_project_tag_link(t) }.join(', ') %></td>
|
|
| 5 |
</tr> |
|
| 2 |
<%= stylesheet_link_tag 'redmine_tags', :plugin => 'redmine_tags' %> |
|
| 3 |
<dl class="tags"> |
|
| 4 |
<dt class="tags-title"><%=l(:tags)%></dt> |
|
| 5 |
<dd class="tags"><%= @project.tag_counts.collect{ |t| render_project_tag_link(t) }.join(', ') %></dd>
|
|
| 6 |
</dl> |
|
| 6 | 7 |
<% end %> |
| vendor/plugins/redmine_tags/app/views/projects/_tags_form.html.erb | ||
|---|---|---|
| 3 | 3 |
<p id="project_tags"><%= f.text_field :tag_list, :label => :tags, :size => 60, :class => 'hol' %></p> |
| 4 | 4 |
<div id="project_tag_candidates" class="autocomplete"></div> |
| 5 | 5 |
<%= javascript_include_tag 'tags_input', :plugin => 'redmine_tags' %> |
| 6 |
<%= javascript_tag "observeProjectTagsField('#{url_for(:controller => 'auto_completes', :action => 'project_tags', :project_id => project)}')" %>
|
|
| 6 |
<%= javascript_tag "observeProjectTagsField('#{url_for(:controller => 'auto_completes', :action => 'project_tags', :project_id => project)}', false)" %>
|
|
| 7 | 7 |
</div> |
| 8 | 8 |
<% end -%> |
| vendor/plugins/redmine_tags/app/views/projects/index.rhtml | ||
|---|---|---|
| 1 | 1 |
<% content_for :header_tags do %> |
| 2 | 2 |
<%= auto_discovery_link_tag(:atom, {:action => 'index', :format => 'atom', :key => User.current.rss_key}) %>
|
| 3 |
<%= stylesheet_link_tag 'redmine_tags', :plugin => 'redmine_tags' %> |
|
| 3 | 4 |
<% end %> |
| 5 |
<%= javascript_include_tag 'projects_index', :plugin => 'redmine_tags' %> |
|
| 6 |
|
|
| 4 | 7 |
|
| 5 | 8 |
<div class="contextual"> |
| 6 | 9 |
<%= link_to l(:label_overall_activity), { :controller => 'activities', :action => 'index' }%>
|
| ... | ... | |
| 14 | 17 |
<%= render :partial => 'my_projects' %> |
| 15 | 18 |
<% end %> |
| 16 | 19 |
|
| 17 |
|
|
| 18 |
<div style="clear:both;"></div> |
|
| 19 |
<% form_tag('/projects', :method => :get, :id => :project_filtering) do %>
|
|
| 20 |
<fieldset id="filters" class="collapsible"> |
|
| 21 |
<legend onclick="toggleFieldset(this);"><%= l(:label_filter_plural) %></legend> |
|
| 22 |
<div> |
|
| 23 |
<p class='q'> |
|
| 24 |
<%= label_tag 'q', l('project_filtering_q_label') %>
|
|
| 25 |
<%= text_field_tag 'q', @question, :size => 30, :id => 'search-input' %> |
|
| 26 |
</p> |
|
| 27 |
|
|
| 28 |
<div id='filter_tags'> |
|
| 29 |
<%= render :partial => 'filter_tags' %> |
|
| 30 |
</div> |
|
| 31 |
|
|
| 32 |
<p class='buttons'><%= submit_tag( l('button_filter'), :id => 'filter_button') -%></p>
|
|
| 33 |
</div> |
|
| 34 |
</fieldset> |
|
| 35 |
<% end %> |
|
| 36 |
|
|
| 37 | 20 |
<div style="clear:both;"></div> |
| 38 | 21 |
<h2> |
| 39 | 22 |
<%= l("label_project_all") %>
|
| 40 | 23 |
</h2> |
| 41 | 24 |
|
| 25 |
<div style="clear:both;"></div> |
|
| 26 |
<%- form_remote_tag(:controller => :projects, :action => :index, :method => :get, :html => {:id => :project_filtering_form}) do -%>
|
|
| 27 |
|
|
| 28 |
<% if @filter_status=="true" %> |
|
| 29 |
<fieldset id="filters_fieldset" class="collapsible"> |
|
| 30 |
<legend onclick="toggleFieldsetWithState(this);"><%= l(:label_filter_plural) %></legend> |
|
| 31 |
<%- else -%> |
|
| 32 |
<fieldset id="filters_fieldset" class="collapsible collapsed"> |
|
| 33 |
<legend onclick="toggleFieldsetWithState(this);"><%= l(:label_filter_plural) %></legend> |
|
| 34 |
<div style="display: none;"> |
|
| 35 |
<%- end -%> |
|
| 36 |
|
|
| 37 |
<div> |
|
| 38 |
<div id='filter_tags'> |
|
| 39 |
<%= render :partial => 'filter_search_tags' -%> |
|
| 40 |
</div> |
|
| 41 |
|
|
| 42 |
<p class='q'> |
|
| 43 |
<%= label_tag 'q', l('project_filtering_q_label') %>
|
|
| 44 |
<%= text_field_tag 'q', @question, :size => 30, :id => 'search-input' %> |
|
| 45 |
</p> |
|
| 46 |
|
|
| 47 |
<p style="display: none;"><%= submit_tag( l('button_filter'), :id => 'submitButton') -%></p>
|
|
| 48 |
<%= link_to l(:button_apply), {}, :onclick => "$('submitButton').click(); return false;", :class => 'icon icon-checked' -%>
|
|
| 49 |
<%= link_to l(:button_clear), {}, :class => 'icon icon-reload' %>
|
|
| 50 |
</div> |
|
| 51 |
|
|
| 52 |
<% unless @filter_status=="true" %> |
|
| 53 |
</div> |
|
| 54 |
<%- end -%> |
|
| 55 |
|
|
| 56 |
|
|
| 57 |
<%- end -%> |
|
| 58 |
</fieldset> |
|
| 59 |
|
|
| 42 | 60 |
<div id="projects"> |
| 43 | 61 |
<%= render :partial => 'filtered_projects' %> |
| 44 | 62 |
</div> |
| 45 | 63 |
|
| 46 |
<p class="pagination"><%= pagination_links_full @project_pages, @project_count %></p> |
|
| 64 |
|
|
| 47 | 65 |
|
| 48 | 66 |
|
| 49 | 67 |
<% other_formats_links do |f| %> |
Also available in: Unified diff