From 6749e80aceee93f18e9c3446f11b14685f898fed Mon Sep 17 00:00:00 2001 From: Gordon Anderson Date: Thu, 7 Mar 2013 12:04:28 +0700 Subject: [PATCH] ENHANCEMENT: Position add comment form either before or after the comments --- templates/CommentsInterface.ss | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/templates/CommentsInterface.ss b/templates/CommentsInterface.ss index 8f18c0a..7064b8c 100755 --- a/templates/CommentsInterface.ss +++ b/templates/CommentsInterface.ss @@ -2,20 +2,7 @@

<% _t('POSTCOM','Post your comment') %>

- <% if AddCommentForm %> - <% if CanPost %> - <% if ModeratedSubmitted %> -

<% _t('AWAITINGMODERATION', 'Your comment has been submitted and is now awaiting moderation.') %>

- <% end_if %> - $AddCommentForm - <% else %> -

<% _t('COMMENTLOGINERROR', 'You cannot post comments until you have logged in') %><% if PostingRequiresPermission %>,<% _t('COMMENTPERMISSIONERROR', 'and that you have an appropriate permission level') %><% end_if %>. - <% _t('COMMENTPOSTLOGIN', 'Login Here') %>. -

- <% end_if %> - <% else %> -

<% _t('COMMENTSDISABLED', 'Posting comments has been disabled') %>.

- <% end_if %> + <% if $FormPosition == 'before' %><% include AddCommentForm %><% end_if %>

<% _t('COMMENTS','Comments') %>

@@ -57,6 +44,9 @@

style='display: none' <% end_if %> ><% _t('NOCOMMENTSYET','No one has commented on this page yet.') %>

+ + <% if $FormPosition == 'after' %><% include AddCommentForm %><% end_if %> + <% if DeleteAllLink %>