[ckan-changes] [okfn/ckan] c35450: Fix broken View Profile link on user pages
GitHub
noreply at github.com
Tue Apr 24 11:23:40 UTC 2012
Branch: refs/heads/master
Home: https://github.com/okfn/ckan
Commit: c35450915701e92e008f398dbee3b3ef7a06a509
https://github.com/okfn/ckan/commit/c35450915701e92e008f398dbee3b3ef7a06a509
Author: Sean Hammond <seanhammond at lavabit.com>
Date: 2012-04-24 (Tue, 24 Apr 2012)
Changed paths:
M ckan/templates/user/layout.html
Log Message:
-----------
Fix broken View Profile link on user pages
diff --git a/ckan/templates/user/layout.html b/ckan/templates/user/layout.html
index cf4d02c..2de8d35 100644
--- a/ckan/templates/user/layout.html
+++ b/ckan/templates/user/layout.html
@@ -14,7 +14,7 @@
</py:when>
<py:otherwise>
<py:if test="c.id">
- <li class="${'active' if c.action=='read' else ''}"><a href="${h.url_for(controller='user', action='me')}">View Profile</a></li>
+ <li class="${'active' if c.action=='read' else ''}"><a href="${h.url_for(controller='user', action='read', id=c.user_dict.name)}">View Profile</a></li>
</py:if>
<py:if test="not c.id">
<li class="${'active' if c.action=='login' else ''}"><a href="${h.url_for(controller='user', action='login')}">Login</a></li>
================================================================
More information about the ckan-changes
mailing list