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 / plugins / redmine_tags / app / views / projects / index.html.erb @ 1250:55a62689cc97

History | View | Annotate | Download (2.16 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')).html_safe if User.current.allowed_to?(:add_project, nil, :global => true) %>
11
</div>
12

    
13
<div style="clear:both;"></div>
14
<h2>
15
  <%= l("label_project_all") %>
16
</h2>
17

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

    
21
    <% if @filter_status=="true" %>
22
      <fieldset id="filters_fieldset" class="collapsible">
23
      <legend onclick="toggleFieldsetWithState(this);"><%= l(:label_filter_plural) %></legend>
24
    <%- else -%>
25
      <fieldset id="filters_fieldset" class="collapsible collapsed">
26
      <legend onclick="toggleFieldsetWithState(this);"><%= l(:label_filter_plural) %></legend>
27
      <div style="display: none;">
28
    <%- end -%>
29

    
30
  <div>
31
    <div id='filter_tags'>
32
      <%= render :partial => 'filter_search_tags' -%>
33
    </div>
34

    
35
    <p class='q'>
36
      <%= label_tag 'q', l('project_filtering_q_label') %>
37
      <%= text_field_tag 'q', @question, :size => 30, :id => 'search-input' %>
38
    </p>
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

    
45
    <% unless @filter_status=="true" %>
46
      </div>
47
    <%- end -%>
48

    
49

    
50
<%- end -%>
51
</fieldset>
52

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

    
57

    
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)) -%>