use_splitcontent_in_my_page.patch

Marius BALTEANU, 2019-01-14 13:42

Download (1.35 KB)

View differences:

app/views/my/page.html.erb
7 7

  
8 8
<h2><%=l(:label_my_page)%></h2>
9 9

  
10
<div id="my-page">
11
<div class="splitcontent">
10
<div id="my-page" class="splitcontent">
12 11
<% @groups.each do |group| %>
13
  <div id="list-<%= group %>" class="block-receiver">
12
  <div id="list-<%= group %>" class="block-receiver splitcontent<%= group %>">
14 13
    <%= render_blocks(@blocks[group], @user) %>
15 14
  </div>
16 15
<% end %>
17 16
</div>
18
</div>
19 17

  
20 18
<%= context_menu %>
21 19

  
public/stylesheets/application.css
442 442
.message .contextual { margin-top: 0; }
443 443

  
444 444
.splitcontent {overflow: auto; display: flex; flex-wrap: wrap;}
445
.splitcontentleft, #list-left {flex: 1; margin-right: 5px;}
446
.splitcontentright, #list-right {flex: 1; margin-left: 5px;}
447
#list-top {width: 100%;}
445
.splitcontentleft {flex: 1; margin-right: 5px;}
446
.splitcontentright {flex: 1; margin-left: 5px;}
447
.splitcontenttop {flex: 2; flex-basis: 100%;}
448

  
448 449
form {display: inline;}
449 450
input, select {vertical-align: middle; margin-top: 1px; margin-bottom: 1px;}
450 451
input[type="submit"] { -webkit-appearance: button; }