diff --git a/app/views/posts/show.html.haml b/app/views/posts/show.html.haml index a376bc2d5..d32cc8768 100644 --- a/app/views/posts/show.html.haml +++ b/app/views/posts/show.html.haml @@ -5,12 +5,11 @@ - content_for :page_title do = post_page_title @post +#post-author-header + = person_image_tag @post.author + = @post.author.name -#main_stream -%br -%br -%br +#post-content -#post-nav - = link_to 'prev', post_path(@post.id-1) - = link_to 'next', post_path(@post.id+1) += link_to image_tag('arrow-left.png'), post_path(@post.id-1), :class => 'nav-arrow left' += link_to image_tag('arrow-right.png'), post_path(@post.id+1), :class => 'nav-arrow right' diff --git a/public/images/arrow-left.png b/public/images/arrow-left.png new file mode 100644 index 000000000..cb9584ff6 Binary files /dev/null and b/public/images/arrow-left.png differ diff --git a/public/images/arrow-right.png b/public/images/arrow-right.png new file mode 100644 index 000000000..29e1259d0 Binary files /dev/null and b/public/images/arrow-right.png differ diff --git a/public/javascripts/app/router.js b/public/javascripts/app/router.js index 450d4d9bc..4ce547950 100644 --- a/public/javascripts/app/router.js +++ b/public/javascripts/app/router.js @@ -47,7 +47,7 @@ app.Router = Backbone.Router.extend({ templateName : templateName }).render(); - $("#main_stream").html(view.el); + $("#post-content").html(view.el); }}) } }); diff --git a/public/javascripts/app/templates/note.handlebars b/public/javascripts/app/templates/note.handlebars index 584e4c0cc..68442023a 100644 --- a/public/javascripts/app/templates/note.handlebars +++ b/public/javascripts/app/templates/note.handlebars @@ -1,3 +1,10 @@ -
+ {{text}} +