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 @ 751:7bf2d69e9aeb

History | View | Annotate | Download (2.06 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

    
22
    <div id='filter_tags'>
23
      <%= render :partial => 'filter_tags' %>
24
    </div>
25

    
26
  </fieldset>
27
<% end %>
28

    
29

    
30
<%= javascript_tag "Field.focus('search-input');" %>
31
<%= javascript_tag "$('filter_button').hide();" %>
32
<%= observe_form( :project_filtering,
33
  :frequency => 0.5,
34
  :url => { :controller => :projects, :action => :index, :format => :js },
35
  :method => :get
36
  )
37
%>
38

    
39
<div id="projects">
40
  <%= render :partial => 'filtered_projects' %>
41
</div>
42

    
43

    
44
<div style="clear:both;"></div>
45

    
46
<% if User.current.logged? %>
47
<p style="text-align:right;">
48
<span class="my-project"><%= l(:label_my_projects) %></span>
49
</p>
50
<% end %>
51

    
52

    
53
END
54

    
55
<% if @user_projects %>  
56
  <%= render_my_project_hierarchy(@user_projects)%>
57
<% end %>
58

    
59
<h2>
60
  <%= l("label_project_all") %>
61
</h2>
62

    
63
<%= render_project_table(@projects) %>
64

    
65
<p class="pagination"><%= pagination_links_full @project_pages, @project_count %></p>
66

    
67

    
68
<% other_formats_links do |f| %>
69
        <%= f.link_to 'Atom', :url => {:key => User.current.rss_key} %>
70
<% end %>
71

    
72
<% html_title(l(:label_project_plural)) -%>