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
3 3
<% end %>
4 4

  
5 5
<div class="contextual">
6
  <label for="show_single_column">
7
    <%= check_box_tag 'show_single_column', 1, false, :onchange => "this.checked ? $('#projects-index').removeClass('multiple') : $('#projects-index').addClass('multiple');" %>
8
    <%= l(:label_show_single_column_projects) %>
9
  </label>
6 10
  <%= form_tag({}, :method => :get) do %>
7 11
    <label for="closed">
8 12
      <%= check_box_tag 'closed', 1, params[:closed], :onchange => "this.form.submit();" %>
......
14 18

  
15 19
<h2><%= l(:label_project_plural) %></h2>
16 20

  
17
<div id="projects-index">
21
<div id="projects-index" class="multiple">
18 22
<%= render_project_hierarchy(@projects) %>
19 23
</div>
20 24

  
config/locales/en.yml
954 954
  label_completed_versions: Completed versions
955 955
  label_search_for_watchers: Search for watchers to add
956 956
  label_session_expiration: Session expiration
957
  label_show_single_column_projects: Show on single column
957 958
  label_show_closed_projects: View closed projects
958 959
  label_status_transitions: Status transitions
959 960
  label_fields_permissions: Fields permissions
public/stylesheets/application.css
577 577
ul.projects.root {margin:0; padding:0;}
578 578
ul.projects li {list-style-type:none;}
579 579

  
580
#projects-index {
580
#projects-index.multiple {
581 581
  column-count: auto;
582 582
  column-width: 400px;
583 583
  -webkit-column-count: auto;
(1-1/3)