From 85b5974fa9380a0ed355b4d12e2a47d5af277289 Mon Sep 17 00:00:00 2001 From: danielgrippi Date: Sat, 31 Dec 2011 23:24:46 -0500 Subject: [PATCH] removed top-level element delcarations from app templates --- app/views/templates/comment.jst | 56 ++++++----- app/views/templates/comment_stream.jst | 55 +++++------ app/views/templates/feedback.jst | 34 ++++--- app/views/templates/stream_element.jst | 96 +++++++++---------- public/javascripts/app/views/comment_view.js | 10 ++ .../app/views/commment_stream_view.js | 2 + public/javascripts/app/views/feedback_view.js | 2 + public/javascripts/app/views/post_view.js | 5 + .../app/views/stream_object_view.js | 1 - .../javascripts/app/views/stream_view_spec.js | 4 +- 10 files changed, 137 insertions(+), 128 deletions(-) diff --git a/app/views/templates/comment.jst b/app/views/templates/comment.jst index 718034d34..6d52a3c0d 100644 --- a/app/views/templates/comment.jst +++ b/app/views/templates/comment.jst @@ -1,30 +1,28 @@ -
  • -
    - - <% if(author.id === current_user.id) { %> - - Deletelabel - - <% } %> + + + + + + +
    + + + <%= author.name %> + + + +

    + <%= text %> +

    + +
    +
    - - - - - -
    - - - <%= author.name %> - - - -

    - <%= text %> -

    - -
    -
    -
    -
  • + diff --git a/app/views/templates/comment_stream.jst b/app/views/templates/comment_stream.jst index 20e1a25ec..0b7b5128f 100644 --- a/app/views/templates/comment_stream.jst +++ b/app/views/templates/comment_stream.jst @@ -1,32 +1,29 @@ -
    +<% if(typeof(all_comments_loaded) == 'undefined' || !all_comments_loaded) { %> + +<% } %> - <% if(typeof(all_comments_loaded) == 'undefined' || !all_comments_loaded) { %> - - <% } %> + - +<% if(current_user) { %> +
    +
    + + + - <% if(current_user) { %> -
    - - - - - -

    - -