Skip to content

Commit

Permalink
adding deleted&draft badges #356
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandru-m-g committed May 26, 2014
1 parent 43b82f4 commit cab75ed
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@
<h1>
{% block page_heading %}
{{ pkg.title or pkg.name }}
{% if pkg.state.startswith('draft') %}
[{{ _('Draft') }}]
{% if pkg.state.startswith('draft') %}
<span style="vertical-align: middle;" class="label label-info">{{ _('Draft') }}</span>
{% elif pkg.state.startswith('deleted') %}
<span style="vertical-align: middle;" class="label label-important">{{ _('Deleted') }}</span>
{% endif %}
{% endblock %}
</h1>
Expand Down

0 comments on commit cab75ed

Please sign in to comment.