From f80fcefb16e1abf8a718840c8ba25a7160f49d29 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Mar 18 2015 16:07:53 +0000 Subject: Add hyperlink and anchor to link directly to a comment of an issue --- diff --git a/progit/static/koji.css b/progit/static/koji.css index 13a8f23..493fa6b 100644 --- a/progit/static/koji.css +++ b/progit/static/koji.css @@ -445,3 +445,12 @@ span#loginInfo { .error { color: red; } + +a.headerlink { + color: #666; + visibility: hidden; +} + +header:hover > a.headerlink { + visibility: visible; +} diff --git a/progit/templates/issue.html b/progit/templates/issue.html index 926f675..b6db057 100644 --- a/progit/templates/issue.html +++ b/progit/templates/issue.html @@ -4,13 +4,15 @@ {% block title %}Issue #{{ issueid }} - {{ repo.name }}{% endblock %} {%block tag %}home{% endblock %} -{% macro show_comment(user, date, content) %} +{% macro show_comment(user, date, content, id) %}
-
+
{{ user.user | avatar(16) | safe }} {{ user.user }} - {{ date | humanize}} + ΒΆ
-{{ show_comment(issue.user, issue.date_created, issue.content) }} +{{ show_comment(issue.user, issue.date_created, issue.content, 0) }} {% if issue.comments %} {% for comment in issue.comments %} - {{ show_comment(comment.user, comment.date_created, comment.comment) }} + {{ show_comment(comment.user, comment.date_created, comment.comment, + comment.id) }} {% endfor %} {% endif %}