Skip to content

Commit

Permalink
[#368] Fix display of action buttons for revisions which broke after …
Browse files Browse the repository at this point in the history
…I merged in the latest master with new bootstrap.
  • Loading branch information
domoritz committed Feb 19, 2013
1 parent d5e0155 commit 87c6938
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions ckan/templates/revision/read.html
Expand Up @@ -17,12 +17,19 @@
action='edit',
id=c.revision.id) }}"
>
{% if rev.state != 'deleted' %}
<button type="submit" name="action" value="delete" class="btn btn-danger icon-trash"> {{ _('Delete') }}</button>
{% endif %}
{% if rev.state == 'deleted' %}
<button type="submit" name="action" value="undelete" class="btn btn-danger icon-trash"> {{ _('Undelete') }}</button>
{% endif %}
<li>
{% if rev.state != 'deleted' %}
<button type="submit" name="action" value="delete" class="btn btn-danger">
<i class="icon-trash"></i> {{ _('Delete') }}
</button>
{% endif %}
{% if rev.state == 'deleted' %}
<button type="submit" name="action" value="undelete" class="btn btn-danger">
<i class="icon-trash"></i>
{{ _('Undelete') }}
</button>
{% endif %}
</li>
</form>
{% endif %}
{% endblock %}
Expand Down

0 comments on commit 87c6938

Please sign in to comment.