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 @ 782:eb3e9e1ffc13

History | View | Annotate | Download (2.21 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
<%= javascript_include_tag 'projects_index', :plugin => 'redmine_tags' %>
5

    
6

    
7
<div class="contextual">
8
    <%= link_to l(:label_overall_activity), { :controller => 'activities', :action => 'index' }%>
9
    <%= '| ' + link_to(l(:label_project_new), {:controller => 'projects', :action => 'new'}, :class => 'icon icon-add') if User.current.allowed_to?(:add_project, nil, :global => true) %>
10
</div>
11

    
12

    
13

    
14
<div style="clear:both;"></div>
15
<% if User.current.logged? %>
16
  <%= render :partial => 'my_projects' %>
17
<% end %>
18

    
19
<div style="clear:both;"></div>
20
<% form_remote_tag(:controller => :projects, :action => :index, :method => :get, :html => {:id => :project_filtering_form}) do %>
21

    
22
<% if @filter_status=="true" %>
23
<fieldset id="filters_fieldset" class="collapsible">
24
  <legend onclick="toggleFieldsetWithState(this);"><%= l(:label_filter_plural) %></legend>
25
<% else %>
26
  <fieldset id="filters_fieldset" class="collapsible collapsed">
27
    <legend onclick="toggleFieldsetWithState(this);"><%= l(:label_filter_plural) %></legend>
28
      <div style="display: none;">
29
<% end %>
30
    <div>
31
      <p class='q'>
32
        <%= label_tag 'q', l('project_filtering_q_label') %>
33
        <%= text_field_tag 'q', @question, :size => 30, :id => 'search-input' %>
34
      </p>
35

    
36
      <div id='filter_tags'>
37
        <%= render :partial => 'filter_search_tags' %>
38
      </div>
39

    
40
      <p style="display: none;"><%= submit_tag( l('button_filter'), :id => 'submitButton') -%></p>
41
      <%= link_to l(:button_apply), {}, :onclick => "$('submitButton').click(); return false;", :class => 'icon icon-checked' %>      
42
      <%= link_to l(:button_clear), {}, :class => 'icon icon-reload'  %>                         
43
    </div>
44
  </fieldset>
45
<% end %>
46

    
47
<div style="clear:both;"></div>
48
<h2>
49
  <%= l("label_project_all") %>
50
</h2>
51

    
52
<div id="projects">
53
  <%= render :partial => 'filtered_projects' %>
54
</div>
55

    
56
<p class="pagination"><%= pagination_links_full @project_pages, @project_count %></p>
57

    
58

    
59
<% other_formats_links do |f| %>
60
        <%= f.link_to 'Atom', :url => {:key => User.current.rss_key} %>
61
<% end %>
62

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