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 @ 747:ae4054db4f3c
History | View | Annotate | Download (1.98 KB)
| 1 |
<% content_for :header_tags do %>
|
|---|---|
| 2 |
<%= auto_discovery_link_tag(:atom, {:action => 'index', :format => 'atom', :key => User.current.rss_key}) %>
|
| 3 |
<% end %>
|
| 4 |
|
| 5 |
<div class="contextual"> |
| 6 |
<%= link_to l(:label_overall_activity), { :controller => 'activities', :action => 'index' }%>
|
| 7 |
<%= '| ' + link_to(l(:label_project_new), {:controller => 'projects', :action => 'new'}, :class => 'icon icon-add') if User.current.allowed_to?(:add_project, nil, :global => true) %>
|
| 8 |
</div>
|
| 9 |
|
| 10 |
<% form_tag('/projects', :method => :get, :id => :project_filtering) do %>
|
| 11 |
<fieldset id="filters" class="collapsible"> |
| 12 |
<legend onclick="toggleFieldset(this);"><%= l(:label_filter_plural) %></legend> |
| 13 |
<div>
|
| 14 |
<p class='q'> |
| 15 |
<%= label_tag 'q', l('project_filtering_q_label') %>
|
| 16 |
<%= text_field_tag 'q', @question, :size => 30, :id => 'search-input' %>
|
| 17 |
</p>
|
| 18 |
<%= render :partial => 'custom_field', :collection => @custom_fields_used_for_project_filtering %>
|
| 19 |
<p class='buttons'><%= submit_tag( l(:button_send), :id => 'filter_button') -%></p> |
| 20 |
</div>
|
| 21 |
</fieldset>
|
| 22 |
<% end %>
|
| 23 |
|
| 24 |
|
| 25 |
<%= javascript_tag "Field.focus('search-input');" %>
|
| 26 |
<%= javascript_tag "$('filter_button').hide();" %>
|
| 27 |
<%= observe_form( :project_filtering,
|
| 28 |
:frequency => 0.5,
|
| 29 |
:url => { :controller => :projects, :action => :index, :format => :js },
|
| 30 |
:method => :get
|
| 31 |
)
|
| 32 |
%>
|
| 33 |
|
| 34 |
<div id="projects"> |
| 35 |
<%= render :partial => 'filtered_projects' %>
|
| 36 |
</div>
|
| 37 |
|
| 38 |
|
| 39 |
<div style="clear:both;"></div> |
| 40 |
|
| 41 |
<% if User.current.logged? %>
|
| 42 |
<p style="text-align:right;"> |
| 43 |
<span class="my-project"><%= l(:label_my_projects) %></span> |
| 44 |
</p>
|
| 45 |
<% end %>
|
| 46 |
|
| 47 |
|
| 48 |
END |
| 49 |
|
| 50 |
<% if @user_projects %>
|
| 51 |
<%= render_my_project_hierarchy(@user_projects)%>
|
| 52 |
<% end %>
|
| 53 |
|
| 54 |
<h2>
|
| 55 |
<%= l("label_project_all") %>
|
| 56 |
</h2>
|
| 57 |
|
| 58 |
<%= render_project_table(@projects) %>
|
| 59 |
|
| 60 |
<p class="pagination"><%= pagination_links_full @project_pages, @project_count %></p> |
| 61 |
|
| 62 |
|
| 63 |
<% other_formats_links do |f| %>
|
| 64 |
<%= f.link_to 'Atom', :url => {:key => User.current.rss_key} %>
|
| 65 |
<% end %>
|
| 66 |
|
| 67 |
<% html_title(l(:label_project_plural)) -%>
|