From 9fdb26f07b66afa58448a95fc2ce3ef8182252a3 Mon Sep 17 00:00:00 2001 From: Gordon Anderson Date: Sat, 7 Feb 2015 12:30:02 +0700 Subject: [PATCH] MINOR: Extraction of comments form into a separate file for AJAX rendering purposes --- templates/CommentsInterfaceForm.ss | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 templates/CommentsInterfaceForm.ss diff --git a/templates/CommentsInterfaceForm.ss b/templates/CommentsInterfaceForm.ss new file mode 100644 index 0000000..28201c6 --- /dev/null +++ b/templates/CommentsInterfaceForm.ss @@ -0,0 +1,14 @@ +<% if AddCommentForm %> + <% if CanPost %> + <% if ModeratedSubmitted %> +

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

+ <% end_if %> + $AddCommentForm + <% else %> +

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

+ <% end_if %> +<% else %> +

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

+<% end_if %>