From 7bb1b8bc97f8f567b66f4d4f634cf9ded6e7d1b1 Mon Sep 17 00:00:00 2001 From: riking Date: Tue, 9 Sep 2014 11:20:25 -0700 Subject: [PATCH] Handlebars structure tweaks to post.handlebars - Combine bind-attrs on the
(seriously that made no sense) - Hoist a bind-attr class to the view, allowing more fancy styling - Hoist a
outside a conditional - Change href='#' to unvalued hrefs --- .../discourse/templates/post.js.handlebars | 18 ++++++++---------- .../javascripts/discourse/views/post_view.js | 1 + 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/app/assets/javascripts/discourse/templates/post.js.handlebars b/app/assets/javascripts/discourse/templates/post.js.handlebars index cb16bd9fee4..e22822e55b4 100644 --- a/app/assets/javascripts/discourse/templates/post.js.handlebars +++ b/app/assets/javascripts/discourse/templates/post.js.handlebars @@ -4,10 +4,10 @@ {{view 'reply-history' content=replyHistory}}
-
+
{{#if showUserReplyTab}} - + {{#if loadingReplyHistory}} {{i18n loading}} {{else}} @@ -18,15 +18,13 @@ {{/if}}
- {{#unless userDeleted}} -
+
+ {{#unless userDeleted}} {{poster-avatar action="expandPostUser" post=this classNames="main-avatar"}} -
- {{else}} -
+ {{else}} -
- {{/unless}} + {{/unless}} +
{{#if wiki}}
{{/if}} @@ -44,7 +42,7 @@ {{#if hasHistory}}