From f3732fa946f21c1e7455569ecee109faefac99bc Mon Sep 17 00:00:00 2001 From: Carlos Barberis Date: Fri, 10 Jan 2014 10:31:10 +1300 Subject: [PATCH] BUGFIX: Add Layout folder and move templates to it --- templates/Layout/CommentsInterface.ss | 73 +++++++++++++++++++ .../CommentsInterface_pendingcomment.ss | 3 + .../Layout/CommentsInterface_singlecomment.ss | 31 ++++++++ 3 files changed, 107 insertions(+) create mode 100755 templates/Layout/CommentsInterface.ss create mode 100644 templates/Layout/CommentsInterface_pendingcomment.ss create mode 100755 templates/Layout/CommentsInterface_singlecomment.ss diff --git a/templates/Layout/CommentsInterface.ss b/templates/Layout/CommentsInterface.ss new file mode 100755 index 0000000..3dd1983 --- /dev/null +++ b/templates/Layout/CommentsInterface.ss @@ -0,0 +1,73 @@ +<% if CommentsEnabled %> +
+

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

+ + <% 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 %> + +

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

+ +
+ <% if Comments %> +
    + <% loop Comments %> +
  • + <% include CommentsInterface_singlecomment %> +
  • + <% end_loop %> +
+ + <% if Comments.MoreThanOnePage %> +
+

+ <% if Comments.PrevLink %> + + <% end_if %> + + <% if Comments.Pages %> + <% loop Comments.Pages %> + <% if CurrentBool %> + $PageNum + <% else %> + $PageNum + <% end_if %> + <% end_loop %> + <% end_if %> + + <% if Comments.NextLink %> + + <% end_if %> +

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

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

+ +
+ + <% if DeleteAllLink %> +

+ <% _t('CommentsInterface_ss.PageCommentInterface.DELETEALLCOMMENTS','Delete all comments on this page') %> +

+ <% end_if %> + +

+ <% _t('CommentsInterface_ss.RSSFEEDCOMMENTS', 'RSS feed for comments on this page') %> | + <% _t('CommentsInterface_ss.RSSFEEDALLCOMMENTS', 'RSS feed for all comments') %> +

+
+<% end_if %> + diff --git a/templates/Layout/CommentsInterface_pendingcomment.ss b/templates/Layout/CommentsInterface_pendingcomment.ss new file mode 100644 index 0000000..3f19313 --- /dev/null +++ b/templates/Layout/CommentsInterface_pendingcomment.ss @@ -0,0 +1,3 @@ +
+

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

+
\ No newline at end of file diff --git a/templates/Layout/CommentsInterface_singlecomment.ss b/templates/Layout/CommentsInterface_singlecomment.ss new file mode 100755 index 0000000..f4266d6 --- /dev/null +++ b/templates/Layout/CommentsInterface_singlecomment.ss @@ -0,0 +1,31 @@ +
+<% if $Gravatar %>Gravatar for $Name<% end_if %> + $EscapedComment +
+ +<% if not isPreview %> +

+ <% if $URL %> + <% _t('CommentsInterface_singlecomment_ss.PBY','Posted by') %> $AuthorName.XML, $Created.Nice ($Created.Ago) + <% else %> + <% _t('CommentsInterface_singlecomment_ss.PBY','Posted by') %> $AuthorName.XML, $Created.Nice ($Created.Ago) + <% end_if %> +

+ + <% if $ApproveLink || $SpamLink || $HamLink || $DeleteLink %> + + <% end_if %> +<% end_if %>