aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2008-12-19 14:20:07 -0500
committerJoey Hess <joey@gnu.kitenet.net>2008-12-19 14:20:07 -0500
commit091c7fd25bcc39069df9dd81941c5329f26b8988 (patch)
tree591fd75be16aed82f75fc4507f67ca183f2afb0e
parent29cb9027f464b2cd17ecc7dd161acb062828824d (diff)
downloadikiwiki-091c7fd25bcc39069df9dd81941c5329f26b8988.tar
ikiwiki-091c7fd25bcc39069df9dd81941c5329f26b8988.tar.gz
add link from comment subject to its permalink
-rw-r--r--doc/todo/comments.mdwn2
-rw-r--r--templates/comment.tmpl2
2 files changed, 3 insertions, 1 deletions
diff --git a/doc/todo/comments.mdwn b/doc/todo/comments.mdwn
index ee2ba7ea0..a429be525 100644
--- a/doc/todo/comments.mdwn
+++ b/doc/todo/comments.mdwn
@@ -53,6 +53,8 @@ Known issues with the [[plugins/comments]] plugin:
(BTW, the rss feed in this situation seems ok; there the link element
points back to the parent page.
+ > done --[[Joey]]
+
* It would be useful to have a pagespec that always matches all comments on
pages matching a glob. Something like `comment(blog/*)`.
Perhaps postcomment could also be folded into this? Then the pagespec
diff --git a/templates/comment.tmpl b/templates/comment.tmpl
index 9d223bd7f..19698cd33 100644
--- a/templates/comment.tmpl
+++ b/templates/comment.tmpl
@@ -27,7 +27,7 @@ unknown IP address
(<TMPL_VAR CTIME>)
</div>
-<div class="comment-subject"><TMPL_VAR TITLE></div>
+<div class="comment-subject"><a href="<TMPL_VAR PERMALINK>"><TMPL_VAR TITLE></a></div>
<div class="inlinecontent">
<TMPL_VAR CONTENT>