diff options
author | Philip Arndt <parndt@gmail.com> | 2010-08-26 20:53:46 +1200 |
---|---|---|
committer | Philip Arndt <parndt@gmail.com> | 2010-08-26 20:53:46 +1200 |
commit | c343dd2889402a5e0eca4d490fbd0fbf3c892b70 (patch) | |
tree | c3cf5ddf4759c86107e89296faf47d86bda20c04 /app/views | |
parent | 5cb85902866dfc0f64885a76ce38f23dd1f89d53 (diff) | |
download | refinerycms-blog-c343dd2889402a5e0eca4d490fbd0fbf3c892b70.tar.gz refinerycms-blog-c343dd2889402a5e0eca4d490fbd0fbf3c892b70.tar.bz2 refinerycms-blog-c343dd2889402a5e0eca4d490fbd0fbf3c892b70.zip |
display more frontend, create separate css for frontend and backend, namespace the js in the same fashion, now has full English support..
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/admin/blog/_submenu.html.erb | 9 | ||||
-rw-r--r-- | app/views/admin/blog/categories/index.html.erb | 4 | ||||
-rw-r--r-- | app/views/admin/blog/comments/index.html.erb | 2 | ||||
-rw-r--r-- | app/views/admin/blog/posts/_form.html.erb | 2 | ||||
-rw-r--r-- | app/views/admin/blog/posts/index.html.erb | 4 | ||||
-rw-r--r-- | app/views/blog_posts/_side_bar.html.erb (renamed from app/views/blog_posts/_sidebar.html.erb) | 0 | ||||
-rw-r--r-- | app/views/blog_posts/index.html.erb | 5 | ||||
-rw-r--r-- | app/views/blog_posts/show.html.erb | 23 |
8 files changed, 26 insertions, 23 deletions
diff --git a/app/views/admin/blog/_submenu.html.erb b/app/views/admin/blog/_submenu.html.erb index db3064f..246488a 100644 --- a/app/views/admin/blog/_submenu.html.erb +++ b/app/views/admin/blog/_submenu.html.erb @@ -74,11 +74,6 @@ </nav> <% content_for :head do %> - <!-- uses famfamfam icons and a couple Dave made --> - <style type='text/css'> - <%= File.open(File.expand_path('../../../../../public/stylesheets/refinerycms-blog.css', __FILE__), 'r').read %> - </style> - <script type='text/javascript'> - <%= File.open(File.expand_path('../../../../../public/javascripts/refinerycms-blog.js', __FILE__), 'r').read %> - </script> + <%= stylesheet_link_tag 'refinery/refinerycms-blog' %> + <%= javascript_include_tag 'refinery/refinerycms-blog' %> <% end %>
\ No newline at end of file diff --git a/app/views/admin/blog/categories/index.html.erb b/app/views/admin/blog/categories/index.html.erb index 824b1c3..9bd50a8 100644 --- a/app/views/admin/blog/categories/index.html.erb +++ b/app/views/admin/blog/categories/index.html.erb @@ -1,7 +1,7 @@ <%= render :partial => '/admin/blog/submenu' %> <div id='records'> <% if searching? %> - <h2><%= t('admin.search_results_for', :query => params[:search]) %></h2> + <h2><%= t('shared.admin.search.results_for', :query => params[:search]) %></h2> <% if @blog_categories.any? %> <%= render :partial => "blog_categories", :collection => @blog_categories %> @@ -22,7 +22,7 @@ <% else %> <p> <strong> - <%= t('.no_items_yet') %> + <%= t('.no_items_yet', :create => t('admin.blog.submenu.categories.new')) %> </strong> </p> <% end %> diff --git a/app/views/admin/blog/comments/index.html.erb b/app/views/admin/blog/comments/index.html.erb index 20fceb8..c5e911b 100644 --- a/app/views/admin/blog/comments/index.html.erb +++ b/app/views/admin/blog/comments/index.html.erb @@ -1,7 +1,7 @@ <%= render :partial => '/admin/blog/submenu' %> <div id='records'> <% if searching? %> - <h2><%= t('admin.search_results_for', :query => params[:search]) %></h2> + <h2><%= t('shared.admin.search.results_for', :query => params[:search]) %></h2> <% if @blog_comments.any? %> <%= will_paginate @blog_comments %> diff --git a/app/views/admin/blog/posts/_form.html.erb b/app/views/admin/blog/posts/_form.html.erb index f4322df..f6f332f 100644 --- a/app/views/admin/blog/posts/_form.html.erb +++ b/app/views/admin/blog/posts/_form.html.erb @@ -44,7 +44,7 @@ :locals => { :f => f, :continue_editing => true, - :delete_title => t('admin.blogs.blogs.delete') + :delete_title => t('admin.blog.posts.post.delete') } %> <% end -%> <% content_for :head do %> diff --git a/app/views/admin/blog/posts/index.html.erb b/app/views/admin/blog/posts/index.html.erb index 5b65962..ae825eb 100644 --- a/app/views/admin/blog/posts/index.html.erb +++ b/app/views/admin/blog/posts/index.html.erb @@ -1,7 +1,7 @@ <%= render :partial => '/admin/blog/submenu' %> <div id='records'> <% if searching? %> - <h2><%= t('admin.search_results_for', :query => params[:search]) %></h2> + <h2><%= t('shared.admin.search.results_for', :query => params[:search]) %></h2> <% if @blog_posts.any? %> <%= render :partial => "blog_posts", :collection => @blog_posts %> @@ -22,7 +22,7 @@ <% else %> <p> <strong> - <%= t('.no_items_yet') %> + <%= t('.no_items_yet', :create => t('admin.blog.submenu.posts.new')) %> </strong> </p> <% end %> diff --git a/app/views/blog_posts/_sidebar.html.erb b/app/views/blog_posts/_side_bar.html.erb index 56bd825..56bd825 100644 --- a/app/views/blog_posts/_sidebar.html.erb +++ b/app/views/blog_posts/_side_bar.html.erb diff --git a/app/views/blog_posts/index.html.erb b/app/views/blog_posts/index.html.erb index 7832a66..4e0cdbb 100644 --- a/app/views/blog_posts/index.html.erb +++ b/app/views/blog_posts/index.html.erb @@ -18,7 +18,10 @@ <% content_for :body_content_right do %> <%= @page[Page.default_parts.second.to_sym] %> - <%= render :partial => "sidebar" %> + <%= render :partial => "side_bar" %> <% end %> <%= render :partial => "/shared/content_page" %> +<% content_for :head do %> + <%= stylesheet_link_tag 'refinerycms-blog' %> +<% 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 index 7a4c9c3..2a6fa12 100644 --- a/app/views/blog_posts/show.html.erb +++ b/app/views/blog_posts/show.html.erb @@ -4,21 +4,23 @@ <%= @blog_post.body %> <% if (categories = @blog_post.categories).any? %> - <%= t('.filed_in') %> - <ul> - <% categories.each do |category| %> - <li> - <%= link_to category.title, blog_category_url(category) %> - </li> - <% end %> - </ul> + <div class='post_categories'> + <span class='filed_in'><%= t('.filed_in') %></span> + <ul> + <% categories.each_with_index do |category, index| %> + <li> + <%= link_to category.title, blog_category_url(category) -%><%= ',' if index < ((categories.length) - 1) %> + </li> + <% end %> + </ul> + </div> <% end %> <% end %> <% content_for :body_content_right do %> <h2><%= t('.created_at_title') %></h2> <%= t('.created_at', :when => @blog_post.created_at.strftime('%d %B %Y')) %> - <%= render :partial => "sidebar" %> + <%= render :partial => "side_bar" %> <h2><%= t('.other') %></h2> <ul id="blog_post"> @@ -31,3 +33,6 @@ <% end %> <%= render :partial => "/shared/content_page" %> +<% content_for :head do %> + <%= stylesheet_link_tag 'refinerycms-blog' %> +<% end %>
\ No newline at end of file |