Ezio Melotti committed e783166

#493: make usernames clickable for Coordinators in the the issue.item.html page.

Comments (0)

Files changed (1)


     <th tal:define="mid string:msg${msg/id}">
      <a tal:content="mid" tal:attributes="id mid;
         href string:#$mid;"></a> - <a tal:attributes="href mid">(view)</a></th>
-   <th i18n:translate="">Author: <tal:x replace=""
-       i18n:name="author" /> (<a tal:condition="msg/author/homepage"
-             tal:attributes="href msg/author/homepage"
-             tal:content="msg/author"/><tal:x
-                     condition="not:msg/author/homepage" content="msg/author"/>)
-       <tal:if condition="msg/author/contrib_form"><span title="Contributor form received">*</span></tal:if>
-       <tal:if condition="msg/author/iscommitter">
-         <img src="@@file/committer.png" title="Python committer" alt="(Python committer)"/>
-       </tal:if>
+   <th i18n:translate="">Author:
+       <tal:block define="author_name">
+         <a tal:condition=" and"
+            tal:attributes="href msg/author/homepage" tal:content="author_name">
+         </a><tal:x condition="python: not or not"
+                    replace="author_name" />
+       </tal:block>
+       (<a tal:condition="python:utils.is_coordinator(request)"
+           tal:attributes="href python:'user%s' %"
+           tal:content="msg/author"/><tal:x condition="python:not utils.is_coordinator(request)" content="msg/author"/>)
+       <span tal:condition="msg/author/contrib_form" title="Contributor form received">*</span>
+       <img tal:condition="msg/author/iscommitter" src="@@file/committer.png"
+            title="Python committer" alt="(Python committer)"/>
    <th i18n:translate="">Date: <tal:x replace="'%Y-%m-%d %H:%M')"
        i18n:name="date" /></th>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.