registered-sites/app/views/admin/customization_logs/_index.html.erb

42 lines
1.5 KiB
Plaintext
Raw Normal View History

<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>
2014-12-05 10:39:14 +00:00
<td>
<div style="position:relative;">
<% if site.site_logs.where(:archive.ne => true).count > 0 %>
2014-12-05 10:41:06 +00:00
<a data-toggle="modal" href="/admin/customization_logs/<%= site.id.to_s %>/get_log" data-target="#logModal" class="btn btn-small view_log_btn">View Log</a>
2014-12-05 10:39:14 +00:00
<% end %>
2014-12-05 10:41:06 +00:00
<a href="<%= new_admin_customization_log_path(:id => site.id) %>" class="btn btn-small btn-primary">Add Log</a>
2014-12-05 10:39:14 +00:00
<div class="line" style="position:absolute; top:0; right:0; bottom:0; width:5px; background-color:<%= site.active? ? "green" : "red" %>;"></div>
</div>
</td>
</tr>
<% end %>
</tbody>
2015-01-06 09:32:28 +00:00
</table>
<%=
content_tag :div, class: "bottomnav clearfix" do
content_tag :div, paginate(@registeredsites), class: "pagination pagination-centered"
end
%>