incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john...@apache.org
Subject git commit: [#7097] Don't show Send Message button if not logged in
Date Fri, 14 Feb 2014 15:10:51 GMT
Updated Branches:
  refs/heads/cj/7097 1c10ec496 -> f44a98a88


[#7097] Don't show Send Message button if not logged in

Signed-off-by: Cory Johns <cjohns@slashdotmedia.com>


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

Branch: refs/heads/cj/7097
Commit: f44a98a88718c7d12f4e740f69295546730718a0
Parents: 1c10ec4
Author: Cory Johns <cjohns@slashdotmedia.com>
Authored: Fri Feb 14 15:10:40 2014 +0000
Committer: Cory Johns <cjohns@slashdotmedia.com>
Committed: Fri Feb 14 15:10:40 2014 +0000

----------------------------------------------------------------------
 Allura/allura/ext/user_profile/templates/user_index.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/f44a98a8/Allura/allura/ext/user_profile/templates/user_index.html
----------------------------------------------------------------------
diff --git a/Allura/allura/ext/user_profile/templates/user_index.html b/Allura/allura/ext/user_profile/templates/user_index.html
index 3e4ed44..05cf7a3 100644
--- a/Allura/allura/ext/user_profile/templates/user_index.html
+++ b/Allura/allura/ext/user_profile/templates/user_index.html
@@ -33,7 +33,7 @@
 {% endblock %}
 
 {% block nav_menu %}
-    {% if user != c.user %}
+    {% if user != c.user and not c.user.is_anonymous() %}
     <a id="user-message" href="send_message" class="btn">
         <b data-icon="{{g.icons['mail'].char}}" class="ico {{g.icons['mail'].css}}"></b>
         <span>Send Message</span>


Mime
View raw message