aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/refinery/blog/posts
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2013-12-25 20:11:09 +0100
committerHarald Eilertsen <haraldei@anduin.net>2013-12-25 20:11:09 +0100
commita6302289c005e96520969a8abff3d5b262dfffb9 (patch)
treead91b3b857ca462cf5f2b5f5e747f595e0e399dd /app/views/refinery/blog/posts
parentc481bc81f38dc72d1293e27c74e9d1314472233c (diff)
downloadhmnoweb-a6302289c005e96520969a8abff3d5b262dfffb9.tar.gz
hmnoweb-a6302289c005e96520969a8abff3d5b262dfffb9.tar.bz2
hmnoweb-a6302289c005e96520969a8abff3d5b262dfffb9.zip
Update blog main views to not render body_content right.
Diffstat (limited to 'app/views/refinery/blog/posts')
-rw-r--r--app/views/refinery/blog/posts/show.html.erb19
-rw-r--r--app/views/refinery/blog/posts/tagged.html.erb17
2 files changed, 36 insertions, 0 deletions
diff --git a/app/views/refinery/blog/posts/show.html.erb b/app/views/refinery/blog/posts/show.html.erb
new file mode 100644
index 0000000..42229cf
--- /dev/null
+++ b/app/views/refinery/blog/posts/show.html.erb
@@ -0,0 +1,19 @@
+<% content_for :body do %>
+ <div id="show_blog_post">
+ <%= render 'post' %>
+ </div>
+
+ <% if Refinery::Blog::Post.comments_allowed? %>
+ <%= render 'comments'%>
+ <% end %>
+<% end %>
+
+<%= render "/refinery/content_page", :remove_automatic_sections => true %>
+
+<% content_for :stylesheets, stylesheet_link_tag('refinery/blog/frontend') %>
+<% content_for :javascripts do %>
+ <%# enable AJAX'd post nav at your own risk until html5 history API implemented. %>
+ <%#= javascript_include_tag('refinery/blog/frontend') %>
+ <script src="http://w.sharethis.com/button/buttons.js"></script>
+ <script>stLight.options({publisher:'<%= Blog::Post::ShareThis.key %>'});</script>
+<% end if Refinery::Blog::Post::ShareThis.enabled? %>
diff --git a/app/views/refinery/blog/posts/tagged.html.erb b/app/views/refinery/blog/posts/tagged.html.erb
new file mode 100644
index 0000000..ed31107
--- /dev/null
+++ b/app/views/refinery/blog/posts/tagged.html.erb
@@ -0,0 +1,17 @@
+<% content_for :title, "#{t('.posts_tagged')} '#{@tag_name.titleize}'" %>
+
+<% content_for :body_content_title, "#{t('.posts_tagged')} &#8220;#{@tag_name.titleize}&#8221;".html_safe -%>
+
+<% content_for :body do %>
+ <% if @posts.any? %>
+ <section id="blog_posts">
+ <%= render :partial => "/refinery/blog/shared/post", :collection => @posts %>
+ <%= will_paginate @posts %>
+ </section>
+ <% else %>
+ <p><%= t('.no_blog_articles_yet') %></p>
+ <% end %>
+<% end %>
+
+<%= render "/refinery/content_page", :hide_sections => [:side_body, :body_content_right] %>
+<% content_for :stylesheets, stylesheet_link_tag('refinery/blog/frontend') %>