Revision 809:7429d10cc491 vendor/plugins/redmine_tags/app/views/projects

View differences:

vendor/plugins/redmine_tags/app/views/projects/_filter_search_tags.html.erb
1 1
<p class='tag'>
2
  <% fields_for @project, :builder => TabularFormBuilder do |f| -%>
2
  <%- fields_for @project, :builder => TabularFormBuilder do |f| -%>
3 3
    <div>
4 4
      <p id="project_tags">
5
        <%= f.text_field :tag_list, :label => :label_tags_search, :size => 60, :class => 'hol' %>
5
        <%= f.text_field :tag_list, :label => :label_tags_search, :size => 60, :class => 'hol' -%>
6 6
      </p>
7 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_search_tags', :project_id => Project.first.id)}', true)" %>
8
      <%= javascript_include_tag 'tags_input', :plugin => 'redmine_tags' -%>
9
      <%= javascript_tag "observeProjectTagsField('#{url_for(:controller => 'auto_completes', :action => 'project_search_tags', :project_id => Project.first.id)}', true)" -%>
11 10
    </div>
12
  <% end -%>
11
  <%- end -%>
13 12
</p>
vendor/plugins/redmine_tags/app/views/projects/_my_projects.rhtml
1
<% if !@user_projects.empty? %>
1 2
<% if @myproj_status=="true" %>
2 3
<fieldset id="my_projects_fieldset" class="collapsible">
3 4
    <legend onclick="toggleFieldsetWithState(this);"><h2><%= l(:label_my_project_plural) %></h2></legend>
......
5 6
<fieldset id="my_projects_fieldset" class="collapsible collapsed">
6 7
    <legend onclick="toggleFieldsetWithState(this);"><h2><%= l(:label_my_project_plural) %></h2></legend>
7 8
    <div style="display: none;">    
8
<%  end%>
9
    <% if @user_projects %>  
9
<% end %>
10 10
    <div>
11 11
      <%= render_my_project_hierarchy_with_tags(@user_projects)%>
12 12
    </div>
13
  <% end %>
13
  <% unless @myproj_status=="true" %>
14
    </div>
15
  <%- end -%>
14 16
</fieldset>
17
<% end %>
vendor/plugins/redmine_tags/app/views/projects/index.rhtml
1 1
<% content_for :header_tags do %>
2 2
    <%= auto_discovery_link_tag(:atom, {:action => 'index', :format => 'atom', :key => User.current.rss_key}) %>
3
    <%= stylesheet_link_tag 'redmine_tags', :plugin => 'redmine_tags' %>
3 4
<% end %>
4 5
<%= javascript_include_tag 'projects_index', :plugin => 'redmine_tags' %>
5 6

  
......
22 23
</h2>
23 24

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

  
27
<% 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>
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>
33 34
      <div style="display: none;">
34
<% end %>
35
    <div>
35
    <%- end -%>
36 36

  
37
      <div id='filter_tags'>
38
        <%= render :partial => 'filter_search_tags' %>
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" %>
39 53
      </div>
54
    <%- end -%>
40 55

  
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 56

  
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
  </fieldset>
51
<% end %>
57
<%- end -%>
58
</fieldset>
52 59

  
53 60
<div id="projects">
54 61
  <%= render :partial => 'filtered_projects' %>

Also available in: Unified diff