Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(358)

Unified Diff: templates/main.html

Issue 84943003: chromium-status: automatically linkify usernames/status messages (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/chromium-status
Patch Set: address Vadim's feedback in status.py Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « stylesheets/style.css ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: templates/main.html
diff --git a/templates/main.html b/templates/main.html
index 276d3db38862319c533498634d7a884df0378e84..6eea667593968d4162cf17663a39499b48e98955 100644
--- a/templates/main.html
+++ b/templates/main.html
@@ -31,9 +31,25 @@
</tr>
{% for a_status in status %}
<tr class="{{ a_status.general_state }}">
- <td class="username">{{ a_status.username }}</td>
+ <td class="username">
+ {% for a_link in a_status.username_links.links %}
+ {% if a_link.target %}
+ <a href="{% if a_link.is_email %}mailto:{% endif %}{{ a_link.target }}">{{ a_link.text }}</a>
+ {% else %}
+ {{ a_link.text }}
+ {% endif %}
+ {% endfor %}
+ </td>
<td class="date">{{ a_status.date|date:"D, d M H:i" }}</td>
- <td class="message">{{ a_status.message }}</td>
+ <td class="message">
+ {% for a_link in a_status.message_links.links %}
+ {% if a_link.target %}
+ <a href="{% if a_link.is_email %}mailto:{% endif %}{{ a_link.target }}">{{ a_link.text }}</a>
+ {% else %}
+ {{ a_link.text }}
+ {% endif %}
+ {% endfor %}
+ </td>
</tr>
{% endfor %}
« no previous file with comments | « stylesheets/style.css ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698