aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/refinery/blog/posts/show.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/refinery/blog/posts/show.html.erb')
-rw-r--r--app/views/refinery/blog/posts/show.html.erb67
1 files changed, 67 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..cc763a8
--- /dev/null
+++ b/app/views/refinery/blog/posts/show.html.erb
@@ -0,0 +1,67 @@
+<% content_for :body_content_left do %>
+ <div id="show_blog_post">
+ <%= render 'post' %>
+ </div>
+
+ <% if BlogPost.comments_allowed? %>
+ <aside id="comments">
+ <h2><%= t('.comments.title') %></h2>
+ <% if (comments = @blog_post.comments.approved).any? %>
+ <%= render :partial => "comment", :collection => comments %>
+ <% else %>
+ <p>
+ <%= t('none', :scope => 'blog.shared.comments') %>.
+ </p>
+ <% end %>
+
+ <% flash.each do |key, value| %>
+ <div id='flash' class="flash flash_<%= key %>">
+ <%= value %>
+ </div>
+ <% end %>
+
+ <h2><%= t('.comments.add') %></h2>
+ <%= form_for [:blog_post, @blog_comment] do |f| %>
+ <%= render :partial => "/shared/admin/error_messages",
+ :locals => {
+ :object => f.object,
+ :include_object_name => true
+ } %>
+ <div class='field'>
+ <%= f.label :name %>
+ <%= f.text_field :name %>
+ </div>
+ <div class='field'>
+ <%= f.label :email %>
+ <%= f.email_field :email %>
+ </div>
+ <div class='field message_field'>
+ <%= f.label :message %>
+ <%= f.text_area :message, :rows => 6 %>
+ </div>
+ <div class='field form-actions'>
+ <%= f.submit t('.submit') %>
+ </div>
+ <% end %>
+ </aside>
+ <% end %>
+<% end %>
+
+<% content_for :body_content_right do %>
+ <%= render :partial => "/blog/shared/categories" %>
+ <%= render :partial => "/blog/shared/tags" %>
+ <%= render :partial => "/blog/shared/posts" %>
+ <%= render :partial => "/blog/shared/rss_feed" %>
+ <%= blog_archive_list %>
+<% end %>
+
+<%= render :partial => "/shared/content_page", :locals => { :remove_automatic_sections => true } %>
+
+<% content_for :stylesheets, stylesheet_link_tag('refinerycms-blog') %>
+<% content_for :before_javascript_libraries, jquery_include_tags(:jquery_ui => false) %>
+<% content_for :javascripts do %>
+ <%# enable AJAX'd post nav at your own risk until html5 history API implemented. %>
+ <%#= javascript_include_tag('refinerycms-blog') %>
+ <script src="http://w.sharethis.com/button/buttons.js"></script>
+ <script>stLight.options({publisher:'<%= BlogPost::ShareThis.key %>'});</script>
+<% end if BlogPost::ShareThis.enabled? %>