Skip to content

Commit

Permalink
don't show "Show more" unless there are actually more shared cases
Browse files Browse the repository at this point in the history
  • Loading branch information
Wesley Brewer committed May 19, 2018
1 parent 299164e commit 531deff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions views/shared.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,12 @@
%end
</table>

% if len(rows) == num_rows:
<form method="get" action="/jobs/shared">
<input type="hidden" name="n" value="{{n+num_rows}}">
<input type="submit" class="btn btn-default btn-block" value="Show more">
</form>
% end

<script>
$(document).ready(function() {
Expand Down

0 comments on commit 531deff

Please sign in to comment.