diff options
author | Joey Hess <joey@gnu.kitenet.net> | 2008-12-18 20:58:16 -0500 |
---|---|---|
committer | Joey Hess <joey@gnu.kitenet.net> | 2008-12-18 20:58:16 -0500 |
commit | 7521dd6c7571cba4a3b882ecffc02dbcbed2805e (patch) | |
tree | ee9ca6225ca64319d67e27ba71d974c33c630c0e /templates | |
parent | d7855474fdf6002711ef3d0411ece375ce44015d (diff) |
jump to comment after posting
Jumping to the just posted comment was the imputus, but I killed a number
of birds here.
Added a INLINEPAGE template variable, which can be used to add anchors to
any inline template.
To keep that sufficiently general, it is the full page name, so the
comment anchors and links changed form.
Got rid of the FIXMEd hardcoded html anchor div.
More importantly, the anchor is now to the very top of the comment, not the
text below. So you can see the title, and how it attributes you.
Avoid changing the permalink of pages that are not really comments, but
happen to contain the _comment directive. I think that behavior was a bug,
though not a likely one to occur since _comment should only really be used
on comment pages.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/comments_display.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/comments_display.tmpl b/templates/comments_display.tmpl index bc4b70273..e7e283bbf 100644 --- a/templates/comments_display.tmpl +++ b/templates/comments_display.tmpl @@ -1,4 +1,4 @@ -<div class="comments-display"> +<div class="comments-display" id="<TMPL_VAR NAME=INLINEPAGE>"> <div class="comments-header"> Posted by |