This commit is contained in:
BoHung Chiu 2022-07-07 17:27:52 +08:00
parent 4ccc1924bd
commit b876ba797c
2 changed files with 6 additions and 4 deletions

View File

@ -7,7 +7,7 @@
.layout-footer .layout-footer-inner{
background: #ffffff;
}
.layout-header{
.layout-header > .container{
background: #01538f;
}
body{

View File

@ -8,9 +8,11 @@
<% if @drag%>
<th></th>
<% end %>
<% @field_name_translations.each_with_index do |trans,i|%>
<% next unless @display_field.include?(@field_names[i]) %>
<th class="span2" id="<%=@field_names[i]%>"><%= trans %></th>
<%
@field_name_translations = @field_name_translations.map.with_index{|trans,i| [@field_names[i], trans]}.to_h
%>
<% @display_field.each do |field_name| %>
<th class="span2" id="<%= field_name %>"><%= @field_name_translations[field_name] %></th>
<% end %>
</tr>
</thead>