Align-right for search and subscriptions

This commit is contained in:
Omar Roth 2018-03-24 23:14:35 -05:00
parent 15f4d95ab4
commit 7572c1d5ee
2 changed files with 15 additions and 5 deletions

View File

@ -20,6 +20,16 @@
</div>
<% end %>
<p style="text-align:right;">
<div class="pure-g">
<div class="pure-u-1 pure-u-md-1-5">
<% if page > 2 %>
<a href="/search?q=<%= query %>&page=<%= page - 1 %>">Previous page</a>
<% else %>
<a href="/search?q=<%= query %>">Previous page</a>
<% end %>
</div>
<div class="pure-u-1 pure-u-md-3-5"></div>
<div style="text-align:right;" class="pure-u-1 pure-u-md-1-5">
<a href="/search?q=<%= query %>&page=<%= page + 1 %>">Next page</a>
</p>
</div>
</div>

View File

@ -25,14 +25,14 @@
<div class="pure-g">
<div class="pure-u-1 pure-u-md-1-5">
<% if page > 1 %>
<% if page > 2 %>
<a href="/feed/subscriptions?maxResults=<%= max_results %>&page=<%= page - 1 %>">Previous page</a>
<% else %>
<a href="/feed/subscriptions?maxResults=<%= max_results %>">Previous page</a>
<% end %>
</div>
<div class="pure-u-1 pure-u-md-3-5"></div>
<div class="pure-u-1 pure-u-md-1-5">
<div style="text-align:right;" class="pure-u-1 pure-u-md-1-5">
<a href="/feed/subscriptions?maxResults=<%= max_results %>&page=<%= page + 1 %>">Next page</a>
</div>
</div>