Skip to content

Commit

Permalink
fix incorrect paginate variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
JackBlackLight committed Sep 4, 2024
1 parent 784900c commit c95cf9c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
4 changes: 2 additions & 2 deletions app/views/admin/agreements/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<%= link_to('Download CSV File', '/admin/agreements.csv') %>
</p>

<div class="pagination"> <%= will_paginate @posts %></div>
<div class="pagination"> <%= will_paginate @agreements %></div>
<table class="table">
<thead>
<tr>
Expand Down Expand Up @@ -36,4 +36,4 @@
<% end %>
</tbody>
</table>
<div class="pagination"> <%= will_paginate @posts %></div>
<div class="pagination"> <%= will_paginate @agreements %></div>
12 changes: 1 addition & 11 deletions app/views/admin/deposits/index.html.erb
Original file line number Diff line number Diff line change
@@ -1,16 +1,6 @@
<h2>Self-Deposits <%= @posts %>
</h2>
<%= form_with url: admin_site_options_path, method: :patch do |form| %>
<% if deposits_enabled? %>
<% deposit_action = "Disable" %>
<% enable = false %>
<% else %>
<% deposit_action = "Enable" %>
<% enable = true %>
<% end %>
<%= form.hidden_field :enable_deposits, value: enable %>
<%= form.submit "#{deposit_action} Deposits" %>
<% end %>
<%= render :partial=>'enable_deposits_form' %>
<div class="pagination"> <%= will_paginate @deposits %></div>
<table class="table">
<thead>
Expand Down

0 comments on commit c95cf9c

Please sign in to comment.