<%= t('search_no_results', :scope => 'admin') %>
- <% end %> - <% else %> - <% if @blog_categories.any? %> - <%= will_paginate @blog_categories %> - - <%= render :partial => "sortable_list" %> - - <%= will_paginate @blog_categories %> - <% else %> -- - <%= t('.no_items_yet', :create => t('new', :scope => 'admin.blog.submenu.categories')) %> - -
- <% end %> - <% end %> -<%= t('search_no_results', :scope => 'admin') %>
- <% end %> - <% else %> - <% if @blog_comments.any? %> - <%=# will_paginate @blog_comments - %> - - <%= render :partial => "sortable_list" %> - - <%=# will_paginate @blog_comments - %> - <% else %> -- <%= t('.age') %>: <%= time_ago_in_words(@blog_comment.created_at) %> -
-- <%= t('.blog_post') %> - | -- <%= link_to @blog_comment.post.title, - blog_post_url(@blog_comment.post, :anchor => "comment-#{@blog_comment.to_param}"), - :target => '_blank' %> - | -
- <%= t('.from') %> - | -- <%= @blog_comment.name %> [<%= mail_to @blog_comment.email, @blog_comment.email, {:title => t('.click_to_email')} %>] - | -
- <%= t('.date') %> - | -- <%= l(Date.parse(@blog_comment.created_at.to_s), :format => :long) %> - | -
- <%= t('.message') %> - | -
- - <%= @blog_comment.message.gsub("\r\n\r\n", "\r\n").gsub("\r\n", " ") %> - - |
-
<%= t('no_results', :scope => 'shared.admin.search') %>
- <% end %> - <% else %> - <% if @blog_posts.any? %> - <%= will_paginate @blog_posts %> - - <%= render :partial => "sortable_list" %> - - <%= will_paginate @blog_posts %> - <% else %> -- - <%= t('.no_items_yet', :create => t('new', :scope => 'admin.blog.submenu.posts')) %> - -
- <% end %> - <% end %> -<%= t('search_no_results', :scope => 'admin') %>
- <% end %> - <% else %> - <% if @blog_posts.any? %> - <%= will_paginate @blog_posts %> - - <%= render :partial => "sortable_list" %> - - <%= will_paginate @blog_posts %> - <% else %> -- - <%= t('.no_items_yet', :create => t('new', :scope => 'admin.blog.submenu.posts')) %> - -
- <% end %> - <% end %> -- <%= t('.no_posts') %> -
- <% end %> -<% end %> - -<% content_for :body_content_right do %> - <%= render :partial => "/blog/shared/categories" %> -<% end %> - -<%= render :partial => "/shared/content_page" %> -<% content_for :stylesheets, stylesheet_link_tag('refinerycms-blog') %> diff --git a/app/views/blog/posts/_nav.html.erb b/app/views/blog/posts/_nav.html.erb deleted file mode 100644 index df4b435..0000000 --- a/app/views/blog/posts/_nav.html.erb +++ /dev/null @@ -1,11 +0,0 @@ - diff --git a/app/views/blog/posts/_post.html.erb b/app/views/blog/posts/_post.html.erb deleted file mode 100644 index 12978d3..0000000 --- a/app/views/blog/posts/_post.html.erb +++ /dev/null @@ -1,31 +0,0 @@ -<% flash.each do |key, value| %> -<%= t('.no_blog_articles_posted', :date => @archive_date.strftime('%B %Y')) %>
- <% end %> -<% end %> - -<% content_for :body_content_right do %> - <%= render :partial => "/blog/shared/categories" %> - <%= render :partial => "/blog/shared/tags" %> - <%= render :partial => "/blog/shared/rss_feed" %> - <%= blog_archive_list %> -<% end %> - -<%= render :partial => "/shared/content_page" %> -<% content_for :stylesheets, stylesheet_link_tag('refinerycms-blog') %> diff --git a/app/views/blog/posts/index.html.erb b/app/views/blog/posts/index.html.erb deleted file mode 100644 index 8c3801a..0000000 --- a/app/views/blog/posts/index.html.erb +++ /dev/null @@ -1,24 +0,0 @@ -<% content_for :body_content_left do %> - <%=raw @page[Page.default_parts.first.to_sym] if Page.default_parts.any? %> - - <% if @blog_posts.any? %> -<%= t('.no_blog_articles_yet') %>
- <% end %> -<% end %> - -<% content_for :body_content_right do %> - <%=raw @page[Page.default_parts.second.to_sym] if Page.default_parts.many? %> - - <%= render :partial => "/blog/shared/categories" %> - <%= render :partial => "/blog/shared/tags" %> - <%= render :partial => "/blog/shared/rss_feed" %> - <%= blog_archive_list %> -<% end %> - -<%= render :partial => "/shared/content_page" %> -<% content_for :stylesheets, stylesheet_link_tag('refinerycms-blog') %> diff --git a/app/views/blog/posts/index.rss.builder b/app/views/blog/posts/index.rss.builder deleted file mode 100644 index 51fa4da..0000000 --- a/app/views/blog/posts/index.rss.builder +++ /dev/null @@ -1,17 +0,0 @@ -xml.instruct! :xml, :version => "1.0" -xml.rss :version => "2.0" do - xml.channel do - xml.title RefinerySetting.find_or_set(:site_name, "Company Name") - xml.description RefinerySetting.find_or_set(:site_name, "Company Name") + " Blog Posts" - xml.link blog_root_url - - @blog_posts.each do |post| - xml.item do - xml.title post.title - xml.description post.body - xml.pubDate post.published_at.to_s(:rfc822) - xml.link blog_post_url(post) - end - end - end -end \ No newline at end of file diff --git a/app/views/blog/posts/show.html.erb b/app/views/blog/posts/show.html.erb deleted file mode 100644 index cc763a8..0000000 --- a/app/views/blog/posts/show.html.erb +++ /dev/null @@ -1,67 +0,0 @@ -<% content_for :body_content_left do %> -<%= t('.no_blog_articles_yet') %>
- <% end %> -<% end %> - -<% content_for :body_content_right do %> - <%= render :partial => "/blog/shared/categories" %> - <%= render :partial => "/blog/shared/tags" %> - <%= render :partial => "/blog/shared/rss_feed" %> - <%= blog_archive_list %> -<% end %> - -<%= render :partial => "/shared/content_page" %> -<% content_for :stylesheets, stylesheet_link_tag('refinerycms-blog') %> diff --git a/app/views/blog/shared/_post.html.erb b/app/views/blog/shared/_post.html.erb deleted file mode 100644 index 6cda22d..0000000 --- a/app/views/blog/shared/_post.html.erb +++ /dev/null @@ -1,46 +0,0 @@ -<% if post.live? %> -<%= t('no_results', :scope => 'refinery.admin.search') %>
+ <% end %> + <% else %> + <% if @categories.any? %> + <%= will_paginate @categories %> + + <%= render "sortable_list" %> + + <%= will_paginate @categories %> + <% else %> ++ + <%= t('.no_items_yet', :create => t('new', :scope => 'refinery.blog.admin.submenu.categories')) %> + +
+ <% end %> + <% end %> +<%= t('search_no_results', :scope => 'admin') %>
+ <% end %> + <% else %> + <% if @comments.any? %> + <%= will_paginate @comments %> + + <%= render "sortable_list" %> + + <%= will_paginate @comments %> + <% else %> ++ <%= t('.age') %>: <%= time_ago_in_words(@comment.created_at) %> +
++ <%= t('.blog_post') %> + | ++ <%= link_to @comment.post.title, + refinery.blog_post_path(@comment.post, :anchor => "comment-#{@comment.to_param}"), + :target => '_blank' %> + | +
+ <%= t('.from') %> + | ++ <%= @comment.name %> [<%= mail_to @comment.email, @comment.email, {:title => t('.click_to_email')} %>] + | +
+ <%= t('.date') %> + | ++ <%= l(Date.parse(@comment.created_at.to_s), :format => :long) %> + | +
+ <%= t('.message') %> + | +
+ + <%= @comment.message.gsub("\r\n\r\n", "\r\n").gsub("\r\n", " ") %> + + |
+
+ <%= f.check_box :draft %> + <%= f.label :draft, t('.save_as_draft'), :class => "stripped" %> +
+<%= link_to t('.advanced_options'), "#", :id => 'toggle_advanced_options', :title => t('.toggle_advanced_options') %>
- - <%= f.check_box :draft %> - <%= f.label :draft, t('.save_as_draft'), :class => "stripped" %> -- <%= link_to t('copy_body', :scope => 'admin.blog.posts.form'), "#", + <%= link_to t('copy_body', :scope => 'refinery.blog.admin.posts.form'), "#", :id => 'copy_body_link', - :title => t('copy_body_help', :scope => 'admin.blog.posts.form') %> + :title => t('copy_body_help', :scope => 'refinery.blog.admin.posts.form') %>
diff --git a/app/views/refinery/blog/admin/posts/edit.html.erb b/app/views/refinery/blog/admin/posts/edit.html.erb new file mode 100644 index 0000000..e0f80e7 --- /dev/null +++ b/app/views/refinery/blog/admin/posts/edit.html.erb @@ -0,0 +1 @@ +<%= render "form" %> diff --git a/app/views/refinery/blog/admin/posts/index.html.erb b/app/views/refinery/blog/admin/posts/index.html.erb new file mode 100644 index 0000000..19c4ccf --- /dev/null +++ b/app/views/refinery/blog/admin/posts/index.html.erb @@ -0,0 +1,27 @@ +<%= render '/refinery/blog/admin/submenu' %> +<%= t('no_results', :scope => 'refinery.admin.search') %>
+ <% end %> + <% else %> + <% if @posts.any? %> + <%= will_paginate @posts %> + + <%= render "sortable_list" %> + + <%= will_paginate @posts %> + <% else %> ++ + <%= t('.no_items_yet', :create => t('new', :scope => 'refinery.blog.admin.submenu.posts')) %> + +
+ <% end %> + <% end %> +<%= t('no_results', :scope => 'refinery.admin.search') %>
+ <% end %> + <% else %> + <% if @posts.any? %> + <%= will_paginate @posts %> + + <%= render "sortable_list" %> + + <%= will_paginate @posts %> + <% else %> ++ + <%= t('.no_items_yet') %> + +
+ <% end %> + <% end %> +