To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / vendor / plugins / redmine_tags / app / views / projects / index.rhtml @ 895:a03b3813028a
History | View | Annotate | Download (2.28 KB)
| 1 |
<% content_for :header_tags do %>
|
|---|---|
| 2 |
<%= auto_discovery_link_tag(:atom, {:action => 'index', :format => 'atom', :key => User.current.rss_key}) %>
|
| 3 |
<%= stylesheet_link_tag 'redmine_tags', :plugin => 'redmine_tags' %>
|
| 4 |
<% end %>
|
| 5 |
<%= javascript_include_tag 'projects_index', :plugin => 'redmine_tags' %>
|
| 6 |
|
| 7 |
|
| 8 |
<div class="contextual"> |
| 9 |
<%= link_to l(:label_overall_activity), { :controller => 'activities', :action => 'index' }%>
|
| 10 |
<%= '| ' + link_to(l(:label_project_new), {:controller => 'projects', :action => 'new'}, :class => 'icon icon-add') if User.current.allowed_to?(:add_project, nil, :global => true) %>
|
| 11 |
</div>
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
<div style="clear:both;"></div> |
| 16 |
<% if User.current.logged? %>
|
| 17 |
<%= render :partial => 'my_projects' %>
|
| 18 |
<% end %>
|
| 19 |
|
| 20 |
<div style="clear:both;"></div> |
| 21 |
<h2>
|
| 22 |
<%= l("label_project_all") %>
|
| 23 |
</h2>
|
| 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 |
|
| 60 |
<div id="projects"> |
| 61 |
<%= render :partial => 'filtered_projects' %>
|
| 62 |
</div>
|
| 63 |
|
| 64 |
|
| 65 |
|
| 66 |
|
| 67 |
<% other_formats_links do |f| %>
|
| 68 |
<%= f.link_to 'Atom', :url => {:key => User.current.rss_key} %>
|
| 69 |
<% end %>
|
| 70 |
|
| 71 |
<% html_title(l(:label_project_plural)) -%>
|