From 19be50733db089b6602f64168d3281e8ecbb300a Mon Sep 17 00:00:00 2001 From: Will Rossiter Date: Fri, 1 Jul 2011 00:54:20 +0000 Subject: [PATCH] Tweaks to documentation theme - do not include comment on 404 pages git-svn-id: http://svn.silverstripe.com/projects/ss2doc/branches/v2@119988 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- themes/docs/css/DocumentationViewer.css | 1 + themes/docs/templates/DocumentationViewer.ss | 17 +++++------------ themes/docs/templates/Includes/Comments.ss | 11 +++++++++++ 3 files changed, 17 insertions(+), 12 deletions(-) create mode 100644 themes/docs/templates/Includes/Comments.ss diff --git a/themes/docs/css/DocumentationViewer.css b/themes/docs/css/DocumentationViewer.css index c7438a5..0a6a8a1 100644 --- a/themes/docs/css/DocumentationViewer.css +++ b/themes/docs/css/DocumentationViewer.css @@ -90,6 +90,7 @@ p { font-size: 12px; line-height: 18px; margin-bottom: 18px; } /* Comments */ #comments { clear: both; + padding-top: 20px; } #comments .notice { diff --git a/themes/docs/templates/DocumentationViewer.ss b/themes/docs/templates/DocumentationViewer.ss index c1ce244..f2fd78b 100644 --- a/themes/docs/templates/DocumentationViewer.ss +++ b/themes/docs/templates/DocumentationViewer.ss @@ -46,7 +46,7 @@ $DocumentationSearchForm - - + <% end_if %>
$Layout
-
-

- Comment policy: Please use comments for tips and corrections about the described - functionality.
- Comments are moderated, we reserve the right to remove comments that are inappropriate or are no longer relevant. Use the Silverstripe Forum to ask questions. -

- -
blog comments powered by Disqus -
+ <% if Content %> + <% include Comments %> + <% end_if %> diff --git a/themes/docs/templates/Includes/Comments.ss b/themes/docs/templates/Includes/Comments.ss new file mode 100644 index 0000000..434765f --- /dev/null +++ b/themes/docs/templates/Includes/Comments.ss @@ -0,0 +1,11 @@ +
+

Comments

+ +

+ Comment policy: Please use comments for tips and corrections about the described + functionality.
+ Comments are moderated, we reserve the right to remove comments that are inappropriate or are no longer relevant. Use the Silverstripe Forum to ask questions. +

+ +
blog comments powered by Disqus +
\ No newline at end of file