Commits

Ezio Melotti committed e783166

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

Comments (0)

Files changed (1)

html/issue.item.html

     <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="python:msg.author.realname.plain(unchecked=1)"
-       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 python:msg.author.realname.plain(unchecked=1)">
+         <a tal:condition="python:msg.author.homepage and msg.author.homepage.is_view_ok()"
+            tal:attributes="href msg/author/homepage" tal:content="author_name">
+         </a><tal:x condition="python: not msg.author.homepage or not msg.author.homepage.is_view_ok()"
+                    replace="author_name" />
+       </tal:block>
+       (<a tal:condition="python:utils.is_coordinator(request)"
+           tal:attributes="href python:'user%s' % msg.author.id"
+           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>
    <th i18n:translate="">Date: <tal:x replace="python:msg.date.pretty('%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 ProjectModifiedEvent.java.
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.