Skip to content

Commit 53fb10f

Browse files
committed
Add older/newer links in front of diary, comment, issue, block pages
1 parent 29cc3d2 commit 53fb10f

File tree

4 files changed

+17
-0
lines changed

4 files changed

+17
-0
lines changed

app/views/diary_comments/_page.html.erb

+4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
<turbo-frame id="pagination" target="_top" data-turbo="false">
2+
<%= render "shared/pagination",
3+
:newer_id => @newer_comments_id,
4+
:older_id => @older_comments_id %>
5+
26
<table class="table table-striped" width="100%">
37
<thead>
48
<tr>

app/views/diary_entries/_page.html.erb

+4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
<turbo-frame id="pagination" target="_top" data-turbo="false">
22
<h4><%= t ".recent_entries" %></h4>
33

4+
<%= render "shared/pagination",
5+
:newer_id => @newer_entries_id,
6+
:older_id => @older_entries_id %>
7+
48
<%= render @entries %>
59

610
<%= render "shared/pagination",

app/views/issues/_page.html.erb

+5
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
<p><%= t ".issues_not_found" %></p>
77
<% end %>
88
<% else %>
9+
<%= render "shared/pagination",
10+
:newer_id => @newer_issues_id,
11+
:older_id => @older_issues_id %>
12+
913
<table class="table table-sm">
1014
<thead>
1115
<tr>
@@ -35,6 +39,7 @@
3539
<% end %>
3640
</tbody>
3741
</table>
42+
3843
<%= render "shared/pagination",
3944
:newer_id => @newer_issues_id,
4045
:older_id => @older_issues_id %>

app/views/user_blocks/_page.html.erb

+4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
<turbo-frame id="pagination" target="_top" data-turbo="false">
2+
<%= render "shared/pagination",
3+
:newer_id => @newer_user_blocks_id,
4+
:older_id => @older_user_blocks_id %>
5+
26
<table id="block_list" class="table table-borderless table-striped table-sm">
37
<thead>
48
<tr>

0 commit comments

Comments
 (0)