Skip to content

Commit

Permalink
Merge pull request #97 from hhorak/no-downloads
Browse files Browse the repository at this point in the history
Do not show downloads if there are none
  • Loading branch information
misli authored Mar 16, 2018
2 parents ac03fbe + 51c4064 commit 42aa894
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,9 @@ <h2>Yum Repositories
{% else %}
<span class="btn btn-default btn-sm disabled"><span class="glyphicon glyphicon-refresh"> {{ repo.arch }} <small>not synced</small></span></span>
{% endif %}
<small class="text-muted">({{ repo.download_count }} downloads)</small>
{% if scl.download_count > 0 %}
<small class="text-muted">({{ repo.download_count }} downloads)</small>
{% endif %}
{% endfor %}
</td>
<td>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,13 @@ <h2><a href='{{ scl.get_absolute_url }}'>{{ scl.title }}</a>
<div class='row'>
<div class='col-md-12 preview_footer'>
<p>
{{ scl.policy | policy_name }} |
{{ scl.policy | policy_name }}
{% if scl.approved %}
<span data-toggle="tooltip" data-placement="bottom" data-original-title="This collection has passed a review by a professional to ensure it works properly." class="approved"><span class="glyphicon glyphicon-ok"></span> approved </span> |
| <span data-toggle="tooltip" data-placement="bottom" data-original-title="This collection has passed a review by a professional to ensure it works properly." class="approved"><span class="glyphicon glyphicon-ok"></span> approved </span>
{% endif %}
{% if scl.download_count > 0 %}
| {{ scl.download_count }} downloads
{% endif %}
{{ scl.download_count }} downloads
</p>
</div>
</div>
Expand Down

0 comments on commit 42aa894

Please sign in to comment.