diff options
author | Jamie Winsor <jamie@enmasse.com> | 2011-07-28 17:22:26 -0700 |
---|---|---|
committer | Jamie Winsor <jamie@enmasse.com> | 2011-07-28 17:29:34 -0700 |
commit | a70ea17038b510df7dfea0997d92d051e6cc65e5 (patch) | |
tree | 899bfbde240f3636064ee85bb37fb9c53b328098 /app/views/refinery/blog/shared/_post.html.erb | |
parent | 17f08ab5cb47e7d4d90385f1150e2373ed1abfa9 (diff) | |
download | refinerycms-blog-a70ea17038b510df7dfea0997d92d051e6cc65e5.tar.gz refinerycms-blog-a70ea17038b510df7dfea0997d92d051e6cc65e5.tar.bz2 refinerycms-blog-a70ea17038b510df7dfea0997d92d051e6cc65e5.zip |
Update translation scopes
Update url helpers in public views
Various uninitialized constant fixes for public views & controllers
Add some request specs to test what was fixed in this commit
Diffstat (limited to 'app/views/refinery/blog/shared/_post.html.erb')
-rw-r--r-- | app/views/refinery/blog/shared/_post.html.erb | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/app/views/refinery/blog/shared/_post.html.erb b/app/views/refinery/blog/shared/_post.html.erb index b5a4af1..18271ec 100644 --- a/app/views/refinery/blog/shared/_post.html.erb +++ b/app/views/refinery/blog/shared/_post.html.erb @@ -4,18 +4,18 @@ <h1><%= link_to post.title, main_app.blog_post_path(post) %></h1> <section class='details'> <time datetime="<%=l post.published_at.to_date, :format => :default %>" class='posted_at'> - <%= t('created_at', :scope => 'blog.shared.posts', :when => l(post.published_at.to_date, :format => :short)) %> + <%= t('created_at', :scope => 'refinery.blog.shared.posts', :when => l(post.published_at.to_date, :format => :short)) %> </time> - <%= "#{t('by', :scope => 'blog.posts.show')} #{post.author.username}" if post.author.present? %>. + <%= "#{t('by', :scope => 'refinery.blog.posts.show')} #{post.author.username}" if post.author.present? %>. <% if (categories = post.categories).any? %> <aside class='filed_in'> - <%= t('filed_in', :scope => 'blog.posts.show') %> + <%= t('filed_in', :scope => 'refinery.blog.posts.show') %> <%=raw categories.collect { |category| link_to category.title, main_app.blog_category_path(category) }.to_sentence %> </aside> <% end %> <% if (tags = post.tags).any? %> <aside class='tagged'> - <%= t('tagged', :scope => 'blog.posts.show') %> + <%= t('tagged', :scope => 'refinery.blog.posts.show') %> <%=raw tags.collect { |tag| link_to tag, main_app.tagged_posts_path(tag.id, tag.name.parameterize) }.to_sentence %> </aside> <% end %> @@ -30,14 +30,14 @@ </section> <footer> <p> - <%= link_to t('read_more', :scope => 'blog.shared.posts'), main_app.blog_post_path(post) if blog_post_teaser_enabled? %> + <%= link_to t('read_more', :scope => 'refinery.blog.shared.posts'), main_app.blog_post_path(post) if blog_post_teaser_enabled? %> </p> <aside class='comment_count'> <% if Refinery::BlogPost.comments_allowed? %> <% if post.comments.any? %> - (<%= pluralize(post.comments.approved.count, t('singular', :scope => 'blog.shared.comments')) %>) + (<%= pluralize(post.comments.approved.count, t('singular', :scope => 'refinery.blog.shared.comments')) %>) <% else %> - (<%= t('none', :scope => 'blog.shared.comments') %>) + (<%= t('none', :scope => 'refinery.blog.shared.comments') %>) <% end %> <% end %> </aside> |