aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/refinery/blog/shared/_post.html.erb
diff options
context:
space:
mode:
authorPhilip Arndt <parndt@gmail.com>2012-02-01 16:34:06 +1300
committerPhilip Arndt <parndt@gmail.com>2012-02-01 16:34:06 +1300
commit33bfa4dd231e4042456b3a70059c9cf57af858cf (patch)
treed51f175d17423e128cf23b294686fbb361a58189 /app/views/refinery/blog/shared/_post.html.erb
parent30ebf2d338cdd1eff3f78fe4f865c98c02b0ad7e (diff)
downloadrefinerycms-blog-33bfa4dd231e4042456b3a70059c9cf57af858cf.tar.gz
refinerycms-blog-33bfa4dd231e4042456b3a70059c9cf57af858cf.tar.bz2
refinerycms-blog-33bfa4dd231e4042456b3a70059c9cf57af858cf.zip
Added support for new code in Refinery CMS since resolve/refinerycms#1234
Diffstat (limited to 'app/views/refinery/blog/shared/_post.html.erb')
-rw-r--r--app/views/refinery/blog/shared/_post.html.erb8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/views/refinery/blog/shared/_post.html.erb b/app/views/refinery/blog/shared/_post.html.erb
index 279de92..1a52fd4 100644
--- a/app/views/refinery/blog/shared/_post.html.erb
+++ b/app/views/refinery/blog/shared/_post.html.erb
@@ -1,7 +1,7 @@
<% if post.live? %>
<article class="blog_post" id="<%= dom_id(post) %>">
<header>
- <h1><%= link_to post.title, main_app.refinery_blog_post_path(post) %></h1>
+ <h1><%= link_to post.title, refinery.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 => 'refinery.blog.shared.posts', :when => l(post.published_at.to_date, :format => :short)) %>
@@ -10,13 +10,13 @@
<% if (categories = post.categories).any? %>
<aside class='filed_in'>
<%= t('filed_in', :scope => 'refinery.blog.posts.show') %>
- <%=raw categories.collect { |category| link_to category.title, main_app.refinery_blog_category_path(category) }.to_sentence %>
+ <%=raw categories.collect { |category| link_to category.title, refinery.blog_category_path(category) }.to_sentence %>
</aside>
<% end %>
<% if (tags = post.tags).any? %>
<aside class='tagged'>
<%= t('tagged', :scope => 'refinery.blog.posts.show') %>
- <%=raw tags.collect { |tag| link_to tag, main_app.refinery_blog_tagged_posts_path(tag.id, tag.name.parameterize) }.to_sentence %>
+ <%=raw tags.collect { |tag| link_to tag, refinery.blog_tagged_posts_path(tag.id, tag.name.parameterize) }.to_sentence %>
</aside>
<% end %>
</section>
@@ -30,7 +30,7 @@
</section>
<footer>
<p>
- <%= link_to t('read_more', :scope => 'refinery.blog.shared.posts'), main_app.refinery_blog_post_path(post) if blog_post_teaser_enabled? %>
+ <%= link_to t('read_more', :scope => 'refinery.blog.shared.posts'), refinery.blog_post_path(post) if blog_post_teaser_enabled? %>
</p>
<aside class='comment_count'>
<% if Refinery::Blog::Post.comments_allowed? %>