aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/refinery/blog
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/refinery/blog')
-rw-r--r--app/views/refinery/blog/categories/show.html.erb17
-rw-r--r--app/views/refinery/blog/posts/show.html.erb19
-rw-r--r--app/views/refinery/blog/posts/tagged.html.erb17
3 files changed, 53 insertions, 0 deletions
diff --git a/app/views/refinery/blog/categories/show.html.erb b/app/views/refinery/blog/categories/show.html.erb
new file mode 100644
index 0000000..6228c7a
--- /dev/null
+++ b/app/views/refinery/blog/categories/show.html.erb
@@ -0,0 +1,17 @@
+<% content_for :body_content_title, @category.title %>
+
+<% 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_posts') %>
+ </p>
+ <% end %>
+<% end %>
+
+<%= render "/refinery/content_page", :hide_sections => [:side_body, :body_content_right] %>
+<% content_for :stylesheets, stylesheet_link_tag('refinery/blog/frontend') %>
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') %>