Homogeneize edit buttons UX

This commit is contained in:
numahell 2016-08-08 08:39:24 +02:00 committed by Élie Bouttier
parent ee83c1c69f
commit 56cc558ca4
2 changed files with 5 additions and 2 deletions

View File

@ -9,7 +9,7 @@
<h1>{{ talk.title }}</h1>
{% if edit_perm %}
<a class="btn btn-primary" href="{% url 'edit-talk' talk.slug %}">edit</a><br />
<a class="btn btn-success" href="{% url 'edit-talk' talk.slug %}">{% trans "Edit" %}</a><br />
{% endif %}
<p>{{ talk.get_event_display }}</p>

View File

@ -7,6 +7,10 @@
<h1>{{ profile }}</h1>
{% if request|edit_profile:profile %}
<a href="{% url 'edit-participant' profile.user.username %}" class="btn btn-success">{% trans "Edit" %}</a>
{% endif %}
<img class="pull-right" src="{% avatar_url profile.user 160 %}" />
<h2>{% trans "Biography" %}</h2>
@ -18,7 +22,6 @@
{% if request|edit_profile:profile %}
<h2>{% trans "Notes" %}</h2>
<p>{{ profile.notes }}</p>
<a href="{% url 'edit-participant' profile.user.username %}" class="btn btn-success">{% trans "Edit" %}</a>
{% endif %}