Skip to content
This repository has been archived by the owner on Aug 18, 2020. It is now read-only.

Commit

Permalink
Merge branch 'feature/moderation' of https://github.com/praekelt/oneplus
Browse files Browse the repository at this point in the history
 into feature/moderation
  • Loading branch information
msinovcic committed May 7, 2015
2 parents a4d9a35 + 1bfad69 commit bdc7afb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions oneplus/templates/admin/communication/app_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,14 @@ <h2>
{% trans app.name %}
{% endif %}
</h2>

{% for model in app.models %}
<div class="grp-row">
{% if model.perms.change %}<a href="{{ model.admin_url }}"><strong>{{ model.name }}</strong></a>{% else %}<span><strong>{{ model.name }}</strong></span>{% endif %}
{% if model.perms.add or model.perms.change %}
<ul class="grp-actions">
{% if model.name == "Queued Smses" %}
{% if model.perms.add %}<li class="grp-add-link"><a href="/smsqueue/add/">{% trans 'Add' %}</a></li>{% endif %}
{% elif model.name == "Messages"%}
{% elif model.name == "Messages" %}
{% if model.perms.add %}<li class="grp-add-link"><a href="/message/add/">{% trans 'Add' %}</a></li>{% endif %}
{% else %}
{% if model.perms.add %}<li class="grp-add-link"><a href="{{ model.admin_url }}add/">{% trans 'Add' %}</a></li>{% endif %}
Expand Down

0 comments on commit bdc7afb

Please sign in to comment.