[damned-lies] Move the edit icon at the beginning of the list of branches, to keep it always at the same position
- From: Gil Forcada Codinachs <gforcada src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [damned-lies] Move the edit icon at the beginning of the list of branches, to keep it always at the same position
- Date: Thu, 11 Oct 2012 22:54:13 +0000 (UTC)
commit 223b965bfac40717d9c419db87fc94a8bcaa600f
Author: Gil Forcada <gforcada gnome org>
Date: Fri Oct 12 00:45:01 2012 +0200
Move the edit icon at the beginning of the list of branches, to keep it always at the same position
templates/module_detail.html | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/templates/module_detail.html b/templates/module_detail.html
index 87ba495..b600693 100644
--- a/templates/module_detail.html
+++ b/templates/module_detail.html
@@ -73,7 +73,11 @@ $(document).ready(function() {
{% if branches %}
<!-- Links to branches of module -->
- <p><strong>{% trans "Branches:" %}</strong>
+ <p>
+ <strong>{% trans "Branches:" %}</strong>
+ {% if can_edit_branches %}
+ <a href="{% url 'stats.views.module_edit_branches' module.name %}"><img src="{{ STATIC_URL }}img/edit.png" alt="Edit" /></a>
+ {% endif %}
{% for branch in branches %}
{% if forloop.counter != 1 %} - {% endif %}
<a href="#{{ branch.name }}">{{ branch.name }}</a>
@@ -81,9 +85,6 @@ $(document).ready(function() {
<img src="{{ STATIC_URL }}img/warn.png" title="{{ branch.warnings }}" />
{% endif %}
{% endfor %}
- {% if can_edit_branches %}
- <a href="{% url 'stats.views.module_edit_branches' module.name %}"><img src="{{ STATIC_URL }}img/edit.png" alt="Edit" /></a>
- {% endif %}
</p>
<!-- Main loop through branches -->
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]