To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / vendor / plugins / redmine_tags / app / views / projects / index.rhtml @ 754:51d6290d3027

History | View | Annotate | Download (1.9 KB)

1 739:b7ac21913927 luis
<% 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 754:51d6290d3027 luis
19 739:b7ac21913927 luis
      <p class='buttons'><%= submit_tag( l(:button_send), :id => 'filter_button') -%></p>
20 754:51d6290d3027 luis
21
      <div id='filter_tags'>
22
        <%= render :partial => 'filter_tags' %>
23
      </div>
24
25
      <%= link_to_remote('Submit', :url => { :controller => :projects, :action => :index, :format => :js }, :method => :get, :class => 'buttons') %>
26
27 739:b7ac21913927 luis
    </div>
28
  </fieldset>
29
<% end %>
30
31
<div id="projects">
32
  <%= render :partial => 'filtered_projects' %>
33
</div>
34
35
36
<div style="clear:both;"></div>
37
38
<% if User.current.logged? %>
39
<p style="text-align:right;">
40
<span class="my-project"><%= l(:label_my_projects) %></span>
41
</p>
42
<% end %>
43
44
45
END
46
47
<% if @user_projects %>
48
  <%= render_my_project_hierarchy(@user_projects)%>
49
<% end %>
50
51
<h2>
52
  <%= l("label_project_all") %>
53
</h2>
54
55 753:7877f25a19d6 luis
<%= render_project_table_with_filtering(@projects, @question) %>
56 739:b7ac21913927 luis
57
<p class="pagination"><%= pagination_links_full @project_pages, @project_count %></p>
58
59
60
<% other_formats_links do |f| %>
61
        <%= f.link_to 'Atom', :url => {:key => User.current.rss_key} %>
62
<% end %>
63
64
<% html_title(l(:label_project_plural)) -%>