Index: ow/templates/profile.pt
===================================================================
--- ow/templates/profile.pt	(revision 6edc36713ea2421dce15b738a7277974435b245d)
+++ ow/templates/profile.pt	(revision bddf042a37868bbfc94dcfcb533ec5ca46f2796e)
@@ -17,28 +17,31 @@
       <div class="user-profile-account">
         <div>
-          <tal:c tal:condition="getattr(context, 'picture', None)">
-            <img tal:attributes="src request.resource_path(context, 'picture')"
+          <tal:c tal:condition="getattr(user, 'picture', None)">
+            <img tal:attributes="src request.resource_path(user, 'picture')"
                  width="450" />
           </tal:c>
           <div>
             <h2>
-                <tal:fullname tal:content="context.fullname"></tal:fullname>
+                <tal:fullname tal:content="user.fullname"></tal:fullname>
             </h2>
             <p>
-              <tal:has-nickname tal:condition="context.nickname">
-                  <tal:nickname tal:content="context.nickname"></tal:nickname>
-              </tal:has-nickname> |
-              <span><tal:email tal:content="context.email"></tal:email></span>
+              <tal:has-nickname tal:condition="user.nickname">
+                <a href=""
+                   tal:attributes="href request.resource_url(request.root, 'profile', user.nickname)"
+                   tal:content="request.resource_url(request.root, 'profile', user.nickname)">
+                </a> |
+              </tal:has-nickname>
+              <span><tal:email tal:content="user.email"></tal:email></span>
             </p>
             <div class="profile-bio">
-              <p tal:repeat="paragraph getattr(context, 'bio', '').split('\n')"
+              <p tal:repeat="paragraph getattr(user, 'bio', '').split('\n')"
                  tal:content="paragraph"></p>
             </div>
             <ul class="workout-options">
               <li><a href=""
-                     tal:attributes="href request.resource_url(context, 'edit')"
+                     tal:attributes="href request.resource_url(user, 'edit')"
                      i18n:translate="">edit profile</a></li>
               <li><a href=""
-                     tal:attributes="href request.resource_url(context, 'passwd')"
+                     tal:attributes="href request.resource_url(user, 'passwd')"
                      i18n:translate="">change password</a></li>
             </ul>
@@ -103,5 +106,5 @@
               <ul class="workout-info">
                 <li>
-                  <tal:c tal:content="workout.start_in_timezone(context.timezone)"></tal:c>
+                  <tal:c tal:content="workout.start_in_timezone(user.timezone)"></tal:c>
                 </li>
                 <li>
@@ -155,7 +158,7 @@
             <li>
               <span><tal:t i18n:translate="">Gender:</tal:t></span>
-              <tal:c tal:content="getattr(context, 'gender', '-')"></tal:c>
-            </li>
-            <li tal:define="birth_date getattr(context, 'birth_date', None)">
+              <tal:c tal:content="getattr(user, 'gender', '-')"></tal:c>
+            </li>
+            <li tal:define="birth_date getattr(user, 'birth_date', None)">
               <span><tal:t i18n:translate="">Birth date:</tal:t></span>
               <tal:c tal:condition="birth_date"
@@ -165,9 +168,9 @@
             <li>
               <span><tal:t i18n:translate="">Height:</tal:t></span>
-              <tal:c tal:content="getattr(context, 'height', '-')"></tal:c> meters
+              <tal:c tal:content="getattr(user, 'height', '-')"></tal:c> meters
             </li>
             <li>
               <span><tal:t i18n:translate="">Weight:</tal:t></span>
-              <tal:c tal:content="getattr(context, 'weight', '-')"></tal:c> kg
+              <tal:c tal:content="getattr(user, 'weight', '-')"></tal:c> kg
             </li>
           </ul>
@@ -195,6 +198,6 @@
          switcher_selector: '.js-month-stats .js-switcher a',
          is_active_class: 'is-active',
-         urls: {"monthly": "${request.resource_url(context, 'monthly')}",
-                "weekly": "${request.resource_url(context, 'weekly')}"},
+         urls: {"monthly": "${request.resource_url(user, 'monthly')}",
+                "weekly": "${request.resource_url(user, 'weekly')}"},
          current_month: "${current_month}",
          current_week: "${current_week}",
