forked from spen/seminar
Fix bug.
This commit is contained in:
parent
4ccc1924bd
commit
b876ba797c
|
@ -7,7 +7,7 @@
|
||||||
.layout-footer .layout-footer-inner{
|
.layout-footer .layout-footer-inner{
|
||||||
background: #ffffff;
|
background: #ffffff;
|
||||||
}
|
}
|
||||||
.layout-header{
|
.layout-header > .container{
|
||||||
background: #01538f;
|
background: #01538f;
|
||||||
}
|
}
|
||||||
body{
|
body{
|
||||||
|
|
|
@ -8,9 +8,11 @@
|
||||||
<% if @drag%>
|
<% if @drag%>
|
||||||
<th></th>
|
<th></th>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% @field_name_translations.each_with_index do |trans,i|%>
|
<%
|
||||||
<% next unless @display_field.include?(@field_names[i]) %>
|
@field_name_translations = @field_name_translations.map.with_index{|trans,i| [@field_names[i], trans]}.to_h
|
||||||
<th class="span2" id="<%=@field_names[i]%>"><%= trans %></th>
|
%>
|
||||||
|
<% @display_field.each do |field_name| %>
|
||||||
|
<th class="span2" id="<%= field_name %>"><%= @field_name_translations[field_name] %></th>
|
||||||
<% end %>
|
<% end %>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
|
Loading…
Reference in New Issue