Fix bug.
This commit is contained in:
parent
4ccc1924bd
commit
b876ba797c
|
@ -7,7 +7,7 @@
|
|||
.layout-footer .layout-footer-inner{
|
||||
background: #ffffff;
|
||||
}
|
||||
.layout-header{
|
||||
.layout-header > .container{
|
||||
background: #01538f;
|
||||
}
|
||||
body{
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue