@@ -1,48 +1,48 | |||||
1 | <div class="contextual"> |
|
1 | <div class="contextual"> | |
2 | <%= link_to l(:label_project_new), new_project_path, :class => 'icon icon-add' %> |
|
2 | <%= link_to l(:label_project_new), new_project_path, :class => 'icon icon-add' %> | |
3 | </div> |
|
3 | </div> | |
4 |
|
4 | |||
5 | <%= title l(:label_project_plural) %> |
|
5 | <%= title l(:label_project_plural) %> | |
6 |
|
6 | |||
7 | <%= form_tag({}, :method => :get) do %> |
|
7 | <%= form_tag({}, :method => :get) do %> | |
8 | <fieldset><legend><%= l(:label_filter_plural) %></legend> |
|
8 | <fieldset><legend><%= l(:label_filter_plural) %></legend> | |
9 |
<label for='status'><%= l(:field_status) %> |
|
9 | <label for='status'><%= l(:field_status) %>:</label> | |
10 | <%= select_tag 'status', project_status_options_for_select(@status), :class => "small", :onchange => "this.form.submit(); return false;" %> |
|
10 | <%= select_tag 'status', project_status_options_for_select(@status), :class => "small", :onchange => "this.form.submit(); return false;" %> | |
11 | <label for='name'><%= l(:label_project) %>:</label> |
|
11 | <label for='name'><%= l(:label_project) %>:</label> | |
12 | <%= text_field_tag 'name', params[:name], :size => 30 %> |
|
12 | <%= text_field_tag 'name', params[:name], :size => 30 %> | |
13 | <%= submit_tag l(:button_apply), :class => "small", :name => nil %> |
|
13 | <%= submit_tag l(:button_apply), :class => "small", :name => nil %> | |
14 | <%= link_to l(:button_clear), admin_projects_path, :class => 'icon icon-reload' %> |
|
14 | <%= link_to l(:button_clear), admin_projects_path, :class => 'icon icon-reload' %> | |
15 | </fieldset> |
|
15 | </fieldset> | |
16 | <% end %> |
|
16 | <% end %> | |
17 | |
|
17 | | |
18 |
|
18 | |||
19 | <% if @projects.any? %> |
|
19 | <% if @projects.any? %> | |
20 | <div class="autoscroll"> |
|
20 | <div class="autoscroll"> | |
21 | <table class="list"> |
|
21 | <table class="list"> | |
22 | <thead><tr> |
|
22 | <thead><tr> | |
23 | <th><%=l(:label_project)%></th> |
|
23 | <th><%=l(:label_project)%></th> | |
24 | <th><%=l(:field_is_public)%></th> |
|
24 | <th><%=l(:field_is_public)%></th> | |
25 | <th><%=l(:field_created_on)%></th> |
|
25 | <th><%=l(:field_created_on)%></th> | |
26 | <th></th> |
|
26 | <th></th> | |
27 | </tr></thead> |
|
27 | </tr></thead> | |
28 | <tbody> |
|
28 | <tbody> | |
29 | <% project_tree(@projects, :init_level => true) do |project, level| %> |
|
29 | <% project_tree(@projects, :init_level => true) do |project, level| %> | |
30 | <tr class="<%= cycle("odd", "even") %> <%= project.css_classes %> <%= level > 0 ? "idnt idnt-#{level}" : nil %>"> |
|
30 | <tr class="<%= cycle("odd", "even") %> <%= project.css_classes %> <%= level > 0 ? "idnt idnt-#{level}" : nil %>"> | |
31 | <td class="name"><span><%= link_to_project_settings(project, {}, :title => project.short_description) %></span></td> |
|
31 | <td class="name"><span><%= link_to_project_settings(project, {}, :title => project.short_description) %></span></td> | |
32 | <td><%= checked_image project.is_public? %></td> |
|
32 | <td><%= checked_image project.is_public? %></td> | |
33 | <td><%= format_date(project.created_on) %></td> |
|
33 | <td><%= format_date(project.created_on) %></td> | |
34 | <td class="buttons"> |
|
34 | <td class="buttons"> | |
35 | <%= link_to(l(:button_archive), archive_project_path(project, :status => params[:status]), :data => {:confirm => l(:text_are_you_sure)}, :method => :post, :class => 'icon icon-lock') unless project.archived? %> |
|
35 | <%= link_to(l(:button_archive), archive_project_path(project, :status => params[:status]), :data => {:confirm => l(:text_are_you_sure)}, :method => :post, :class => 'icon icon-lock') unless project.archived? %> | |
36 | <%= link_to(l(:button_unarchive), unarchive_project_path(project, :status => params[:status]), :method => :post, :class => 'icon icon-unlock') if project.archived? && (project.parent.nil? || !project.parent.archived?) %> |
|
36 | <%= link_to(l(:button_unarchive), unarchive_project_path(project, :status => params[:status]), :method => :post, :class => 'icon icon-unlock') if project.archived? && (project.parent.nil? || !project.parent.archived?) %> | |
37 | <%= link_to(l(:button_copy), copy_project_path(project), :class => 'icon icon-copy') %> |
|
37 | <%= link_to(l(:button_copy), copy_project_path(project), :class => 'icon icon-copy') %> | |
38 | <%= link_to(l(:button_delete), project_path(project), :method => :delete, :class => 'icon icon-del') %> |
|
38 | <%= link_to(l(:button_delete), project_path(project), :method => :delete, :class => 'icon icon-del') %> | |
39 | </td> |
|
39 | </td> | |
40 | </tr> |
|
40 | </tr> | |
41 | <% end %> |
|
41 | <% end %> | |
42 | </tbody> |
|
42 | </tbody> | |
43 | </table> |
|
43 | </table> | |
44 | </div> |
|
44 | </div> | |
45 | <span class="pagination"><%= pagination_links_full @project_pages, @project_count %></span> |
|
45 | <span class="pagination"><%= pagination_links_full @project_pages, @project_count %></span> | |
46 | <% else %> |
|
46 | <% else %> | |
47 | <p class="nodata"><%= l(:label_no_data) %></p> |
|
47 | <p class="nodata"><%= l(:label_no_data) %></p> | |
48 | <% end %> |
|
48 | <% end %> |
@@ -1,53 +1,53 | |||||
1 | <p><%= link_to l(:label_version_new), new_project_version_path(@project, :back_url => ''), :class => 'icon icon-add' if User.current.allowed_to?(:manage_versions, @project) %></p> |
|
1 | <p><%= link_to l(:label_version_new), new_project_version_path(@project, :back_url => ''), :class => 'icon icon-add' if User.current.allowed_to?(:manage_versions, @project) %></p> | |
2 |
|
2 | |||
3 | <%= form_tag(settings_project_path(@project, :tab => 'versions'), :method => :get) do %> |
|
3 | <%= form_tag(settings_project_path(@project, :tab => 'versions'), :method => :get) do %> | |
4 | <fieldset><legend><%= l(:label_filter_plural) %></legend> |
|
4 | <fieldset><legend><%= l(:label_filter_plural) %></legend> | |
5 |
<label for='status'><%= l(:field_status) %> |
|
5 | <label for='status'><%= l(:field_status) %>:</label> | |
6 | <%= select_tag 'version_status', options_for_select([[l(:label_all), '']] + Version::VERSION_STATUSES.collect {|s| [l("version_status_#{s}"), s]}, @version_status), :onchange => "this.form.submit(); return false;" %> |
|
6 | <%= select_tag 'version_status', options_for_select([[l(:label_all), '']] + Version::VERSION_STATUSES.collect {|s| [l("version_status_#{s}"), s]}, @version_status), :onchange => "this.form.submit(); return false;" %> | |
7 | <label for='name'><%= l(:label_version) %>:</label> |
|
7 | <label for='name'><%= l(:label_version) %>:</label> | |
8 | <%= text_field_tag 'version_name', @version_name, :size => 30 %> |
|
8 | <%= text_field_tag 'version_name', @version_name, :size => 30 %> | |
9 | <%= submit_tag l(:button_apply), :name => nil %> |
|
9 | <%= submit_tag l(:button_apply), :name => nil %> | |
10 | <%= link_to l(:button_clear), settings_project_path(@project, :tab => 'versions'), :class => 'icon icon-reload' %> |
|
10 | <%= link_to l(:button_clear), settings_project_path(@project, :tab => 'versions'), :class => 'icon icon-reload' %> | |
11 | </fieldset> |
|
11 | </fieldset> | |
12 | <% end %> |
|
12 | <% end %> | |
13 | |
|
13 | | |
14 |
|
14 | |||
15 | <% if @versions.present? %> |
|
15 | <% if @versions.present? %> | |
16 | <table class="list versions"> |
|
16 | <table class="list versions"> | |
17 | <thead><tr> |
|
17 | <thead><tr> | |
18 | <th><%= l(:label_version) %></th> |
|
18 | <th><%= l(:label_version) %></th> | |
19 | <th><%= l(:field_effective_date) %></th> |
|
19 | <th><%= l(:field_effective_date) %></th> | |
20 | <th><%= l(:field_description) %></th> |
|
20 | <th><%= l(:field_description) %></th> | |
21 | <th><%= l(:field_status) %></th> |
|
21 | <th><%= l(:field_status) %></th> | |
22 | <th><%= l(:field_sharing) %></th> |
|
22 | <th><%= l(:field_sharing) %></th> | |
23 | <th><%= l(:label_wiki_page) %></th> |
|
23 | <th><%= l(:label_wiki_page) %></th> | |
24 | <th style="width:15%"></th> |
|
24 | <th style="width:15%"></th> | |
25 | </tr></thead> |
|
25 | </tr></thead> | |
26 | <tbody> |
|
26 | <tbody> | |
27 | <% @versions.sort.each do |version| %> |
|
27 | <% @versions.sort.each do |version| %> | |
28 | <tr class="version <%= cycle 'odd', 'even' %> <%=h version.status %> <%= 'shared' if version.project != @project %>"> |
|
28 | <tr class="version <%= cycle 'odd', 'even' %> <%=h version.status %> <%= 'shared' if version.project != @project %>"> | |
29 | <td class="name <%= 'icon icon-shared' if version.project != @project %>"><%= link_to_version version %></td> |
|
29 | <td class="name <%= 'icon icon-shared' if version.project != @project %>"><%= link_to_version version %></td> | |
30 | <td class="date"><%= format_date(version.effective_date) %></td> |
|
30 | <td class="date"><%= format_date(version.effective_date) %></td> | |
31 | <td class="description"><%= version.description %></td> |
|
31 | <td class="description"><%= version.description %></td> | |
32 | <td class="status"><%= l("version_status_#{version.status}") %></td> |
|
32 | <td class="status"><%= l("version_status_#{version.status}") %></td> | |
33 | <td class="sharing"><%=h format_version_sharing(version.sharing) %></td> |
|
33 | <td class="sharing"><%=h format_version_sharing(version.sharing) %></td> | |
34 | <td><%= link_to_if_authorized(version.wiki_page_title, {:controller => 'wiki', :action => 'show', :project_id => version.project, :id => Wiki.titleize(version.wiki_page_title)}) || h(version.wiki_page_title) unless version.wiki_page_title.blank? || version.project.wiki.nil? %></td> |
|
34 | <td><%= link_to_if_authorized(version.wiki_page_title, {:controller => 'wiki', :action => 'show', :project_id => version.project, :id => Wiki.titleize(version.wiki_page_title)}) || h(version.wiki_page_title) unless version.wiki_page_title.blank? || version.project.wiki.nil? %></td> | |
35 | <td class="buttons"> |
|
35 | <td class="buttons"> | |
36 | <% if version.project == @project && User.current.allowed_to?(:manage_versions, @project) %> |
|
36 | <% if version.project == @project && User.current.allowed_to?(:manage_versions, @project) %> | |
37 | <%= link_to l(:button_edit), edit_version_path(version), :class => 'icon icon-edit' %> |
|
37 | <%= link_to l(:button_edit), edit_version_path(version), :class => 'icon icon-edit' %> | |
38 | <%= delete_link version_path(version) %> |
|
38 | <%= delete_link version_path(version) %> | |
39 | <% end %> |
|
39 | <% end %> | |
40 | </td> |
|
40 | </td> | |
41 | </tr> |
|
41 | </tr> | |
42 | <% end; reset_cycle %> |
|
42 | <% end; reset_cycle %> | |
43 | </tbody> |
|
43 | </tbody> | |
44 | </table> |
|
44 | </table> | |
45 | <% else %> |
|
45 | <% else %> | |
46 | <p class="nodata"><%= l(:label_no_data) %></p> |
|
46 | <p class="nodata"><%= l(:label_no_data) %></p> | |
47 | <% end %> |
|
47 | <% end %> | |
48 |
|
48 | |||
49 | <div class="contextual"> |
|
49 | <div class="contextual"> | |
50 | <% if @versions.any? %> |
|
50 | <% if @versions.any? %> | |
51 | <%= link_to l(:label_close_versions), close_completed_project_versions_path(@project), :method => :put %> |
|
51 | <%= link_to l(:label_close_versions), close_completed_project_versions_path(@project), :method => :put %> | |
52 | <% end %> |
|
52 | <% end %> | |
53 | </div> |
|
53 | </div> |
General Comments 0
You need to be logged in to leave comments.
Login now