green bar moved to right

This commit is contained in:
Harry Bomrah 2014-12-05 18:30:24 +08:00
parent 42a7f1a192
commit 2a5938ed2b
1 changed files with 2 additions and 6 deletions

View File

@ -21,18 +21,14 @@
</span>
<% end %>
</td>
<td>
<td style="position:relative;">
<% if site.site_logs.where(:archive.ne => true).count > 0 %>
<a data-toggle="modal" href="/admin/customization_logs/<%= site.id.to_s %>/get_log" data-target="#logModal" class="btn view_log_btn">View Log</a>
<% end %>
<a href="<%= new_admin_customization_log_path(:id => site.id) %>" class="btn btn-primary">Add Log</a>
<div class="line pull-right" style="position:absolute; top:0; right:0; bottom:0; width:5px; background-color:<%= site.active? ? "green" : "red" %>;"></div>
</td>
</tr>
<tr>
<td colspan="<%= @table_fields.length %>" style="padding:0; border:0;">
<div class="line" style="width:auto; height:2px; background-color:<%= site.active? ? "green" : "red" %>;"></div>
</td>
</tr>
<% end %>
</tbody>
</table>