Skip to content

Commit

Permalink
Very unDRY solution to issue #1 that popped up in prod.
Browse files Browse the repository at this point in the history
  • Loading branch information
jsnshrmn committed Mar 24, 2017
1 parent 3180e39 commit 451ff34
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions TWLight/resources/templates/resources/partner_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ <h1>{{ object }}</h1>
{% endblocktrans %}
</div>
{% else %}
{% url 'applications:apply_single' object.pk as app_url %}
<a href="{{ app_url }}" class="btn btn-primary text-center visible-xs z-index-100">{% trans "Apply for access" %}</a>
{% endif %}
{% if user|coordinators_only %}
Expand All @@ -45,6 +46,7 @@ <h1>{{ object }}</h1>

<div class="col-sm-5 col-md-4 pull-right timeline-right-overlay">
{% if object.is_waitlisted %}
{% url 'applications:apply_single' object.pk as app_url %}
<div class="hidden-xs alert alert-warning">
{% blocktrans trimmed %}
<strong>Waitlisted</strong> &mdash; There are no access grants available
Expand All @@ -53,6 +55,7 @@ <h1>{{ object }}</h1>
{% endblocktrans %}
</div>
{% else %}
{% url 'applications:apply_single' object.pk as app_url %}
<a href="{{ app_url }}" class="btn btn-primary btn-lg hidden-xs btn-block">{% trans "Apply for access" %}</a><br/>
{% endif %}

Expand Down

0 comments on commit 451ff34

Please sign in to comment.