diff options
author | Uģis Ozols <ugis.ozolss@gmail.com> | 2010-12-03 08:38:30 +0200 |
---|---|---|
committer | Uģis Ozols <ugis.ozolss@gmail.com> | 2010-12-03 08:38:30 +0200 |
commit | 7da21ab480a310b5f6ebd5557b6c28a71b1cb287 (patch) | |
tree | 879db3cb731a45862c97b954e17828e30023f449 /app | |
parent | 75e9940a80602971f5448beb0da13f74ab6f2cb0 (diff) | |
download | refinerycms-blog-7da21ab480a310b5f6ebd5557b6c28a71b1cb287.tar.gz refinerycms-blog-7da21ab480a310b5f6ebd5557b6c28a71b1cb287.tar.bz2 refinerycms-blog-7da21ab480a310b5f6ebd5557b6c28a71b1cb287.zip |
Moved 'no blog posts' text to locale file.
Diffstat (limited to 'app')
-rw-r--r-- | app/views/blog/posts/index.html.erb | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/app/views/blog/posts/index.html.erb b/app/views/blog/posts/index.html.erb index ab0abf0..20d8372 100644 --- a/app/views/blog/posts/index.html.erb +++ b/app/views/blog/posts/index.html.erb @@ -1,11 +1,13 @@ <% content_for :body_content_left do %> <%= @page[Page.default_parts.first.to_sym] %> - <section id="blog_posts"> - <%= render :partial => "/blog/shared/post", :collection => @blog_posts %> - </section> - <%= "<p>There are no blog articles posted yet. Stay tuned.</p>".html_safe unless @blog_posts.any? %> - <%# TODO: Add locale logic here - hubble is a n00b at that %> + <% if @blog_posts.any? %> + <section id="blog_posts"> + <%= render :partial => "/blog/shared/post", :collection => @blog_posts %> + </section> + <% else %> + <p><%= t('.no_blog_articles_yet') %></p> + <% end %> <% end %> <% content_for :body_content_right do %> |