diff options
author | Joey Hess <joey@kitenet.net> | 2010-07-22 15:02:04 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2010-07-22 15:02:04 -0400 |
commit | 21fe996544f43ad5cfcdf36388015971b7fc56d1 (patch) | |
tree | 4a18a9be9b238cae183891ea45139144354d1283 | |
parent | e50df5ea7601b6a1fc03994650ddff728aba7b57 (diff) |
Avoid showing 'Add a comment' link at the bottom of the comment post form.
Since misctemplate is called with a page context, the comments plugin
thinks it should add that, as well as the comment link in the actionbar.
I kept the comment link because a quick link back to the comments to a page
is sorta useful.
-rw-r--r-- | debian/changelog | 1 | ||||
-rw-r--r-- | templates/page.tmpl | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog index db828f580..8013e5cdd 100644 --- a/debian/changelog +++ b/debian/changelog @@ -22,6 +22,7 @@ ikiwiki (3.20100705) UNRELEASED; urgency=low conflicting files/directories in the destdir. * Updated French program translation from Philippe Batailler. Closes: #589423 * po: Fix selflink display on tranlsated pages. (intrigeri) + * Avoid showing 'Add a comment' link at the bottom of the comment post form. -- Joey Hess <joeyh@debian.org> Mon, 05 Jul 2010 13:59:42 -0400 diff --git a/templates/page.tmpl b/templates/page.tmpl index 703a6d8de..8659018a0 100644 --- a/templates/page.tmpl +++ b/templates/page.tmpl @@ -117,6 +117,7 @@ <TMPL_VAR CONTENT> <TMPL_IF HTML5></section><TMPL_ELSE></div></TMPL_IF> +<TMPL_UNLESS DYNAMIC> <TMPL_IF COMMENTS> <TMPL_IF HTML5><section id="comments"><TMPL_ELSE><div id="comments"></TMPL_IF> <TMPL_VAR COMMENTS> @@ -129,6 +130,7 @@ </TMPL_IF> <TMPL_IF HTML5></section><TMPL_ELSE></div></TMPL_IF> </TMPL_IF> +</TMPL_UNLESS> </div> |