incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tvansteenbu...@apache.org
Subject [13/13] git commit: [#4723] ticket:500 Minor code style fix
Date Wed, 27 Nov 2013 17:31:07 GMT
[#4723] ticket:500 Minor code style fix


Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/4b015dd3
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/4b015dd3
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/4b015dd3

Branch: refs/heads/master
Commit: 4b015dd3268862921dc8dcbf1e60aa27bc18df02
Parents: 008346f
Author: Igor Bondarenko <jetmind2@gmail.com>
Authored: Wed Nov 27 10:49:06 2013 +0000
Committer: Tim Van Steenburgh <tvansteenburgh@gmail.com>
Committed: Wed Nov 27 17:30:27 2013 +0000

----------------------------------------------------------------------
 Allura/allura/templates/jinja_master/lib.html | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/4b015dd3/Allura/allura/templates/jinja_master/lib.html
----------------------------------------------------------------------
diff --git a/Allura/allura/templates/jinja_master/lib.html b/Allura/allura/templates/jinja_master/lib.html
index ea6129b..94fa653 100644
--- a/Allura/allura/templates/jinja_master/lib.html
+++ b/Allura/allura/templates/jinja_master/lib.html
@@ -74,15 +74,13 @@
 {% macro user_link(user, avatar=False, size=16) -%}
     {% if user %}
         {% if not user.is_anonymous() %}
-            {% if avatar %}
-                <a href="{{user.url()}}">
+            <a href="{{user.url()}}">
+                {% if avatar %}
                     {{ gravatar_or_name(user, size) }}
-                </a>
-            {% else %}
-                <a href="{{user.url()}}">
+                {% else %}
                     {{ h.really_unicode(user.display_name) }}
-                </a>
-            {% endif %}
+                {% endif %}
+            </a>
         {% else %}
             {{ h.really_unicode(user.display_name) }}
         {% endif %}


Mime
View raw message