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

13 lines
299 B
Plaintext
Raw Normal View History

<%= render_view %>
2023-01-03 04:07:58 +00:00
<%
data = action_data
total_pages = ArchivesController.get_total_pages
%>
<% if data["categories"].length == 1 %>
<script>
$("#main-content .panel-collapse").addClass("in");
</script>
<% end %>
2023-01-03 04:07:58 +00:00
<% if total_pages > 1 %>
<%= create_pagination(total_pages).html_safe %>
<% end %>