Project

General

Profile

Feature #26494 » 26494-switch-project-list-views.patch

Yuichi HARADA, 2018-11-12 06:02

View differences:

app/views/projects/index.html.erb
<% end %>
<div class="contextual">
<label for="show_single_column">
<%= check_box_tag 'show_single_column', 1, false, :onchange => "this.checked ? $('#projects-index').removeClass('multiple') : $('#projects-index').addClass('multiple');" %>
<%= l(:label_show_single_column_projects) %>
</label>
<%= form_tag({}, :method => :get) do %>
<label for="closed">
<%= check_box_tag 'closed', 1, params[:closed], :onchange => "this.form.submit();" %>
......
<h2><%= l(:label_project_plural) %></h2>
<div id="projects-index">
<div id="projects-index" class="multiple">
<%= render_project_hierarchy(@projects) %>
</div>
config/locales/en.yml
label_completed_versions: Completed versions
label_search_for_watchers: Search for watchers to add
label_session_expiration: Session expiration
label_show_single_column_projects: Show on single column
label_show_closed_projects: View closed projects
label_status_transitions: Status transitions
label_fields_permissions: Fields permissions
public/stylesheets/application.css
ul.projects.root {margin:0; padding:0;}
ul.projects li {list-style-type:none;}
#projects-index {
#projects-index.multiple {
column-count: auto;
column-width: 400px;
-webkit-column-count: auto;
(1-1/3)