diff options
Diffstat (limited to 'app/views/refinery')
-rw-r--r-- | app/views/refinery/admin/blog/posts/_form.html.erb | 4 | ||||
-rw-r--r-- | app/views/refinery/blog/posts/_comments.html.erb | 4 | ||||
-rw-r--r-- | app/views/refinery/blog/posts/_nav.html.erb | 12 |
3 files changed, 13 insertions, 7 deletions
diff --git a/app/views/refinery/admin/blog/posts/_form.html.erb b/app/views/refinery/admin/blog/posts/_form.html.erb index a452c13..f8c6ba3 100644 --- a/app/views/refinery/admin/blog/posts/_form.html.erb +++ b/app/views/refinery/admin/blog/posts/_form.html.erb @@ -14,10 +14,10 @@ <div id='page-tabs' class='clearfix ui-tabs ui-widget ui-widget-content ui-corner-all'> <ul id='page_parts'> <li class='ui-state-default ui-state-active'> - <%= link_to t('body', :scope => 'activerecord.attributes.refinery.blog_post'), "#page_part_body" %> + <%= link_to t('body', :scope => 'activerecord.attributes.refinery/blog_post'), "#page_part_body" %> </li> <li class='ui-state-default'> - <%= link_to t('teaser', :scope => 'activerecord.attributes.refinery.blog_post'), "#page_part_teaser" %> + <%= link_to t('teaser', :scope => 'activerecord.attributes.refinery/blog_post'), "#page_part_teaser" %> </li> <% Refinery::Blog.tabs.each_with_index do |tab, tab_index| %> <li class='ui-state-default' id="custom_<%= tab.name %>_tab"> diff --git a/app/views/refinery/blog/posts/_comments.html.erb b/app/views/refinery/blog/posts/_comments.html.erb index 5157ed9..b177389 100644 --- a/app/views/refinery/blog/posts/_comments.html.erb +++ b/app/views/refinery/blog/posts/_comments.html.erb @@ -1,5 +1,5 @@ <aside id="comments"> - <h2><%= t('.comments.title') %></h2> + <h2><%= t('title', :scope => 'refinery.blog.posts.show.comments') %></h2> <% if (comments = @blog_post.comments.approved).any? %> <%= render :partial => "comment", :collection => comments %> <% else %> @@ -14,7 +14,7 @@ </div> <% end %> - <h2><%= t('.comments.add') %></h2> + <h2><%= t('add', :scope => 'refinery.blog.posts.show.comments') %></h2> <%= form_for [main_app, :blog_post, @blog_comment] do |f| %> <%= render :partial => "/refinery/admin/error_messages", :locals => { diff --git a/app/views/refinery/blog/posts/_nav.html.erb b/app/views/refinery/blog/posts/_nav.html.erb index df4b435..67aed14 100644 --- a/app/views/refinery/blog/posts/_nav.html.erb +++ b/app/views/refinery/blog/posts/_nav.html.erb @@ -1,11 +1,17 @@ <nav id="next_prev_article"> <% if @blog_post.next.present? -%> - <%= link_to (truncate(@blog_post.next.title) + " »").html_safe, @blog_post.next, :class => 'next' %> + <%= link_to (truncate(@blog_post.next.title) + " »").html_safe, + main_app.url_for(@blog_post.next), + :class => 'next' %> <% end -%> - <%= link_to t('blog_home', :scope => 'blog.posts.show'), blog_root_path, :class => 'home' %> + <%= link_to t('blog_home', :scope => 'refinery.blog.posts.show'), + main_app.blog_root_path, + :class => 'home' %> <% if @blog_post.prev.present? -%> - <%= link_to ("« " + truncate(@blog_post.prev.title)).html_safe, @blog_post.prev, :class => 'prev' %> + <%= link_to ("« " + truncate(@blog_post.prev.title)).html_safe, + main_app.url_for(@blog_post.prev), + :class => 'prev' %> <% end -%> </nav><!-- /next_prev_article --> |