archive/app/views/archives/index.html.erb

13 lines
299 B
Plaintext

<%= render_view %>
<%
data = action_data
total_pages = ArchivesController.get_total_pages
%>
<% if data["categories"].length == 1 %>
<script>
$("#main-content .panel-collapse").addClass("in");
</script>
<% end %>
<% if total_pages > 1 %>
<%= create_pagination(total_pages).html_safe %>
<% end %>