Revision 918:04114f36670d vendor/plugins/redmine_tags

View differences:

vendor/plugins/redmine_tags/app/views/projects/_filter_tags.erb
1
<p class='tag'>
2
  <% fields_for @project, :builder => TabularFormBuilder do |f| -%>
3
    <div>
4
      <p id="project_tags">
5
        <%= f.text_field :tag_list, :label => :tags, :size => 60, :class => 'hol' %>
6
      </p>
7
      <div id="project_tag_candidates" class="autocomplete"></div>
8
      <%= javascript_include_tag 'tags_input', :plugin => 'redmine_tags' %>
9

  
10
      <%= javascript_tag "observeProjectTagsField('#{url_for(:controller => 'auto_completes', :action => 'project_tags', :project_id => Project.first.id)}')" %>
11
    </div>
12
  <% end -%>
13
</p>
vendor/plugins/redmine_tags/app/views/projects/_filter_tags.html.erb
1
<p class='tag'>
2
  <% fields_for @project, :builder => TabularFormBuilder do |f| -%>
3
    <div>
4
      <p id="project_tags">
5
        <%= f.text_field :tag_list, :label => :tags, :size => 60, :class => 'hol' %>
6
      </p>
7
      <div id="project_tag_candidates" class="autocomplete"></div>
8
      <%= javascript_include_tag 'tags_input', :plugin => 'redmine_tags' %>
9

  
10
      <%= javascript_tag "observeProjectTagsField('#{url_for(:controller => 'auto_completes', :action => 'project_tags', :project_id => Project.first.id)}')" %>
11
    </div>
12
  <% end -%>
13
</p>
vendor/plugins/redmine_tags/app/views/projects/index.erb
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') if User.current.allowed_to?(:add_project, nil, :global => true) %>
11
</div>
12

  
13

  
14

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

  
20
<div style="clear:both;"></div>
21
<h2>
22
  <%= l("label_project_all") %>
23
</h2>
24

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

  
28
    <% if @filter_status=="true" %>
29
      <fieldset id="filters_fieldset" class="collapsible">
30
      <legend onclick="toggleFieldsetWithState(this);"><%= l(:label_filter_plural) %></legend>
31
    <%- else -%>
32
      <fieldset id="filters_fieldset" class="collapsible collapsed">
33
      <legend onclick="toggleFieldsetWithState(this);"><%= l(:label_filter_plural) %></legend>
34
      <div style="display: none;">
35
    <%- end -%>
36

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

  
42
    <p class='q'>
43
      <%= label_tag 'q', l('project_filtering_q_label') %>
44
      <%= text_field_tag 'q', @question, :size => 30, :id => 'search-input' %>
45
    </p>
46

  
47
    <p style="display: none;"><%= submit_tag( l('button_filter'), :id => 'submitButton') -%></p>
48
    <%= link_to l(:button_apply), {}, :onclick => "$('submitButton').click(); return false;", :class => 'icon icon-checked' -%>
49
    <%= link_to l(:button_clear), {}, :class => 'icon icon-reload'  %>                         
50
  </div>
51
  
52
    <% unless @filter_status=="true" %>
53
      </div>
54
    <%- end -%>
55

  
56

  
57
<%- end -%>
58
</fieldset>
59

  
60
<div id="projects">
61
  <%= render :partial => 'filtered_projects' %>
62
</div>
63

  
64

  
65

  
66

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

  
71
<% html_title(l(:label_project_plural)) -%>
vendor/plugins/redmine_tags/app/views/projects/index.html.erb
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') if User.current.allowed_to?(:add_project, nil, :global => true) %>
11
</div>
12

  
13

  
14

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

  
20
<div style="clear:both;"></div>
21
<h2>
22
  <%= l("label_project_all") %>
23
</h2>
24

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

  
28
    <% if @filter_status=="true" %>
29
      <fieldset id="filters_fieldset" class="collapsible">
30
      <legend onclick="toggleFieldsetWithState(this);"><%= l(:label_filter_plural) %></legend>
31
    <%- else -%>
32
      <fieldset id="filters_fieldset" class="collapsible collapsed">
33
      <legend onclick="toggleFieldsetWithState(this);"><%= l(:label_filter_plural) %></legend>
34
      <div style="display: none;">
35
    <%- end -%>
36

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

  
42
    <p class='q'>
43
      <%= label_tag 'q', l('project_filtering_q_label') %>
44
      <%= text_field_tag 'q', @question, :size => 30, :id => 'search-input' %>
45
    </p>
46

  
47
    <p style="display: none;"><%= submit_tag( l('button_filter'), :id => 'submitButton') -%></p>
48
    <%= link_to l(:button_apply), {}, :onclick => "$('submitButton').click(); return false;", :class => 'icon icon-checked' -%>
49
    <%= link_to l(:button_clear), {}, :class => 'icon icon-reload'  %>                         
50
  </div>
51
  
52
    <% unless @filter_status=="true" %>
53
      </div>
54
    <%- end -%>
55

  
56

  
57
<%- end -%>
58
</fieldset>
59

  
60
<div id="projects">
61
  <%= render :partial => 'filtered_projects' %>
62
</div>
63

  
64

  
65

  
66

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

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

Also available in: Unified diff