2014-12-04 13:59:49 +00:00
|
|
|
|
|
|
|
<table class="table main-list">
|
|
|
|
<thead>
|
|
|
|
<tr class="sort-header">
|
|
|
|
<% @table_fields.each do |f| %>
|
|
|
|
<%= thead(f) %>
|
|
|
|
<% end %>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<% @registeredsites.each do |site| %>
|
|
|
|
<tr>
|
|
|
|
<td class="domain_title_block">
|
|
|
|
<a href="http://<%= site.site_domain %>/" target="_blank"><%= site.title.nil? ? site.site_domain : site.title %></a>
|
|
|
|
</td>
|
|
|
|
<td><%= site.category.nil? ? "Category not assigned." : "<span class='label label-info'>#{site.category.title}</span>".html_safe %></td>
|
|
|
|
<td>
|
|
|
|
<% site.tags.each do |tag| %>
|
|
|
|
<span class="label">
|
|
|
|
<%= tag.name %>
|
|
|
|
</span>
|
|
|
|
<% end %>
|
|
|
|
</td>
|
|
|
|
<td>
|
2014-12-05 10:08:10 +00:00
|
|
|
<% if site.site_logs.where(:archive.ne => true).count > 0 %>
|
2014-12-04 13:59:49 +00:00
|
|
|
<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>
|
|
|
|
</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>
|