Commit c08d11f7aaea16c2c85348c2afa6bc8316d0e3e6
1 parent
ff47c081
Exists in
master
and in
2 other branches
Modified access and subscribe button to get them aligned center
Showing
1 changed file
with
4 additions
and
1 deletions
Show diff stats
subjects/templates/subjects/subject_card.html
... | ... | @@ -81,10 +81,13 @@ |
81 | 81 | {% if show_buttons %} |
82 | 82 | |
83 | 83 | {% if has_subject_view_permissions %} |
84 | + <div style="text-align:center"> | |
84 | 85 | <a href="{% url 'subjects:view' subject.slug %}" class="btn btn-success btn-raised"> {% trans "Access Subject" %}</a> |
86 | + </div> | |
85 | 87 | {% elif subject.subscribe_end|aftertoday %} |
88 | + <div style="text-align:center"> | |
86 | 89 | <a href="javascript:subscribe_subject.get('{% url 'subjects:subscribe' subject.slug %}?view=index','#subject-subscribe','#modal_subject')" class="subscribe-subject btn btn-primary btn-raised"> {% trans "Subscribe to Subject" %}</a> |
87 | - | |
90 | + </div> | |
88 | 91 | {% else %} |
89 | 92 | <a class="no-subscribe-btn btn btn-danger" disabled="disabled"> {% trans "This subject doesn't allow new subscriptions" %}</a> |
90 | 93 | ... | ... |