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.html.erb @ 1026:b42553f6df71

History | View | Annotate | Download (2.28 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 806:a42dcc01dfee chris
    <%= stylesheet_link_tag 'redmine_tags', :plugin => 'redmine_tags' %>
4 739:b7ac21913927 luis
<% end %>
5 768:0829e808ec49 luis
<%= javascript_include_tag 'projects_index', :plugin => 'redmine_tags' %>
6
7 739:b7ac21913927 luis
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') if User.current.allowed_to?(:add_project, nil, :global => true) %>
11
</div>
12
13 755:bde9c5bfb559 luis
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 784:4b46e861a43a chris
<h2>
21
  <%= l("label_project_all") %>
22
</h2>
23
24
<div style="clear:both;"></div>
25 805:0b1b94ffb30f luis
  <%- form_remote_tag(:controller => :projects, :action => :index, :method => :get, :html => {:id => :project_filtering_form}) do -%>
26 776:af852d82b00b luis
27 805:0b1b94ffb30f luis
    <% if @filter_status=="true" %>
28
      <fieldset id="filters_fieldset" class="collapsible">
29
      <legend onclick="toggleFieldsetWithState(this);"><%= l(:label_filter_plural) %></legend>
30
    <%- else -%>
31
      <fieldset id="filters_fieldset" class="collapsible collapsed">
32
      <legend onclick="toggleFieldsetWithState(this);"><%= l(:label_filter_plural) %></legend>
33 776:af852d82b00b luis
      <div style="display: none;">
34 805:0b1b94ffb30f luis
    <%- end -%>
35 789:863f447c4d88 chris
36 805:0b1b94ffb30f luis
  <div>
37
    <div id='filter_tags'>
38
      <%= render :partial => 'filter_search_tags' -%>
39
    </div>
40
41
    <p class='q'>
42
      <%= label_tag 'q', l('project_filtering_q_label') %>
43
      <%= text_field_tag 'q', @question, :size => 30, :id => 'search-input' %>
44
    </p>
45
46
    <p style="display: none;"><%= submit_tag( l('button_filter'), :id => 'submitButton') -%></p>
47
    <%= link_to l(:button_apply), {}, :onclick => "$('submitButton').click(); return false;", :class => 'icon icon-checked' -%>
48
    <%= link_to l(:button_clear), {}, :class => 'icon icon-reload'  %>
49
  </div>
50
51
    <% unless @filter_status=="true" %>
52 789:863f447c4d88 chris
      </div>
53 805:0b1b94ffb30f luis
    <%- end -%>
54 789:863f447c4d88 chris
55 754:51d6290d3027 luis
56 805:0b1b94ffb30f luis
<%- end -%>
57
</fieldset>
58 739:b7ac21913927 luis
59 755:bde9c5bfb559 luis
<div id="projects">
60
  <%= render :partial => 'filtered_projects' %>
61
</div>
62 739:b7ac21913927 luis
63 801:c8aec937ea53 luis
64 739:b7ac21913927 luis
65
66
<% other_formats_links do |f| %>
67
        <%= f.link_to 'Atom', :url => {:key => User.current.rss_key} %>
68
<% end %>
69
70
<% html_title(l(:label_project_plural)) -%>