|
|
|
@ -36,37 +36,12 @@ See doc/COPYRIGHT.rdoc for more details. |
|
|
|
|
<% end %> |
|
|
|
|
</li> |
|
|
|
|
<% end %> |
|
|
|
|
<div class="attributes-group"> |
|
|
|
|
<div class="attributes-group--header"> |
|
|
|
|
<div class="attributes-group--header-container"> |
|
|
|
|
<h3 class="attributes-group--header-text"><%= l(:label_information) %></h3> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<dl class="attributes-key-value"> |
|
|
|
|
<dt class="attributes-key-value--key"><%= l(:label_project_count) %></dt> |
|
|
|
|
<dd class="attributes-key-value--value-container"> |
|
|
|
|
<div class="attributes-key-value--value -text"> |
|
|
|
|
<span title="<%= l(:label_project_count) %>"> |
|
|
|
|
<%= l(:label_x_projects, :count => Project.count) %> |
|
|
|
|
</span> |
|
|
|
|
</div> |
|
|
|
|
</dd> |
|
|
|
|
<dt class="attributes-key-value--key"><%= l(:label_required_disk_storage) %></dt> |
|
|
|
|
<dd class="attributes-key-value--value-container"> |
|
|
|
|
<div class="attributes-key-value--value -text"> |
|
|
|
|
<span title="0"> |
|
|
|
|
<%= number_to_human_size(Project.total_projects_size, precision: 2) %> |
|
|
|
|
</span> |
|
|
|
|
</div> |
|
|
|
|
</dd> |
|
|
|
|
</dl> |
|
|
|
|
</div> |
|
|
|
|
<%= form_tag({}, :method => :get) do %> |
|
|
|
|
<fieldset class="simple-filters--container"> |
|
|
|
|
<legend><%= l(:label_filter_plural) %></legend> |
|
|
|
|
<ul class="simple-filters--filters"> |
|
|
|
|
<li class="simple-filters--filter"> |
|
|
|
|
<label for='status'><%= Project.human_attribute_name(:status) %> :</label> |
|
|
|
|
<label for='status'><%= Project.human_attribute_name(:status) %>:</label> |
|
|
|
|
<%= select_tag 'status', project_status_options_for_select(@status), :onchange => "this.form.submit(); return false;" %> |
|
|
|
|
</li> |
|
|
|
|
<li class="simple-filters--filter"> |
|
|
|
@ -80,15 +55,21 @@ See doc/COPYRIGHT.rdoc for more details. |
|
|
|
|
</div> |
|
|
|
|
</fieldset> |
|
|
|
|
<% end %> |
|
|
|
|
|
|
|
|
|
<p class="information-section"> |
|
|
|
|
<i class="icon-info"></i> |
|
|
|
|
<%= l(:label_projects_storage_information, |
|
|
|
|
count: Project.count, |
|
|
|
|
storage: number_to_human_size(Project.total_projects_size, precision: 2)) %> |
|
|
|
|
</p> |
|
|
|
|
<div class="generic-table--container"> |
|
|
|
|
<div class="generic-table--results-container"> |
|
|
|
|
<table role="grid" class="generic-table"> |
|
|
|
|
<table interactive-table role="grid" class="generic-table"> |
|
|
|
|
<colgroup> |
|
|
|
|
<col highlight-col> |
|
|
|
|
<col highlight-col> |
|
|
|
|
<col highlight-col> |
|
|
|
|
<col highlight-col> |
|
|
|
|
<col highlight-col> |
|
|
|
|
<col> |
|
|
|
|
</colgroup> |
|
|
|
|
<thead> |
|
|
|
@ -96,26 +77,23 @@ See doc/COPYRIGHT.rdoc for more details. |
|
|
|
|
<th> |
|
|
|
|
<div class="generic-table--sort-header-outer"> |
|
|
|
|
<div class="generic-table--sort-header"> |
|
|
|
|
<span> |
|
|
|
|
<%= Project.model_name.human %> |
|
|
|
|
</span> |
|
|
|
|
<%= sort_header_tag_with_lsg('name', caption: Project.model_name.human) %> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</th> |
|
|
|
|
<th> |
|
|
|
|
<div class="generic-table--sort-header-outer"> |
|
|
|
|
<div class="generic-table--sort-header"> |
|
|
|
|
<span> |
|
|
|
|
<%= Project.human_attribute_name(:is_public) %> |
|
|
|
|
</span> |
|
|
|
|
<%= sort_header_tag_with_lsg('is_public', |
|
|
|
|
caption: Project.human_attribute_name(:is_public)) %> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</th> |
|
|
|
|
<th> |
|
|
|
|
<div class="generic-table--sort-header-outer"> |
|
|
|
|
<div class="generic-table--sort-header"> |
|
|
|
|
<span> |
|
|
|
|
<%= l(:label_required_disk_storage) %> |
|
|
|
|
<%= sort_header_tag_with_lsg('required_disk_space', |
|
|
|
|
caption: I18n.t(:label_required_disk_storage)) %> |
|
|
|
|
</span> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
@ -123,9 +101,16 @@ See doc/COPYRIGHT.rdoc for more details. |
|
|
|
|
<th> |
|
|
|
|
<div class="generic-table--sort-header-outer"> |
|
|
|
|
<div class="generic-table--sort-header"> |
|
|
|
|
<span> |
|
|
|
|
<%= Project.human_attribute_name(:created_on) %> |
|
|
|
|
</span> |
|
|
|
|
<%= sort_header_tag_with_lsg('created_on', |
|
|
|
|
caption: Project.human_attribute_name(:created_on)) %> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</th> |
|
|
|
|
<th> |
|
|
|
|
<div class="generic-table--sort-header-outer"> |
|
|
|
|
<div class="generic-table--sort-header"> |
|
|
|
|
<%= sort_header_tag_with_lsg('updated_on', |
|
|
|
|
caption: I18n.t(:label_last_activity)) %> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</th> |
|
|
|
@ -133,12 +118,13 @@ See doc/COPYRIGHT.rdoc for more details. |
|
|
|
|
</tr> |
|
|
|
|
</thead> |
|
|
|
|
<tbody> |
|
|
|
|
<% project_tree(@projects) do |project, level| %> |
|
|
|
|
<% project_tree_when_sorted(@projects) do |project, level| %> |
|
|
|
|
<tr class="<%= project.css_classes %> <%= level > 0 ? "idnt idnt-#{level}" : nil %>"> |
|
|
|
|
<td class="name"><span><%= link_to project, settings_project_path(project), :title => project.short_description %></span></td> |
|
|
|
|
<td class="name project--hierarchy"><span><%= link_to project, settings_project_path(project), :title => project.short_description %></span></td> |
|
|
|
|
<td><%= checked_image project.is_public? %></td> |
|
|
|
|
<td><%= number_to_human_size(project.required_disk_space, precision: 2) if project.required_disk_space.to_i > 0 %></td> |
|
|
|
|
<td><%= format_date(project.created_on) %></td> |
|
|
|
|
<td><%= format_date(project.updated_on) %></td> |
|
|
|
|
<td class="buttons"> |
|
|
|
|
<%= link_to(l(:button_archive), |
|
|
|
|
archive_project_path(project, :status => params[:status]), |
|
|
|
@ -161,5 +147,6 @@ See doc/COPYRIGHT.rdoc for more details. |
|
|
|
|
</tbody> |
|
|
|
|
</table> |
|
|
|
|
<div class="generic-table--header-background"></div> |
|
|
|
|
<%= pagination_links_full @projects %> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|