Fix chain details switches.

This commit is contained in:
2013-04-02 01:33:18 +01:00
parent d7aa11a16b
commit f277fb7173

View File

@@ -36,7 +36,7 @@
<div class="span12">
{% if user.is_authenticated or not store.editor or user.is_superuser %}
<p>
{% switch claim_support %}{% if not chain.editor %}<a href="{% url "chain-claim" chain.slug %}" class="btn btn-small">Claim Chain</a>{% endif %}{% switchflag %}
{% switch claim_support %}{% if not chain.editor %}<a href="{% url "chain-claim" chain.slug %}" class="btn btn-small">Claim Chain</a>{% endif %}{% endswitch %}
{% if is_editor %}<a href="#" class="btn btn-small">Edit Chain</a>{% endif %}
{% if user.is_superuser %}<a href="{% url "admin:stores_chain_change" chain.pk %}" class="btn btn-small">Edit in Admin</a>{% endif %}
</p>