aboutsummaryrefslogtreecommitdiffstats
path: root/app/views
diff options
context:
space:
mode:
authorUģis Ozols <ugis.ozolss@gmail.com>2012-04-10 23:09:04 +0300
committerUģis Ozols <ugis.ozolss@gmail.com>2012-04-10 23:09:04 +0300
commitd36af516eac3acf24f3ad0ea439e52691323a7a5 (patch)
treeff9bd78e14c9e67285c270c25a72651462b8e0be /app/views
parent14cd410324e062a6d4f6ef13d95e9ce14a8ddc75 (diff)
downloadrefinerycms-blog-d36af516eac3acf24f3ad0ea439e52691323a7a5.tar.gz
refinerycms-blog-d36af516eac3acf24f3ad0ea439e52691323a7a5.tar.bz2
refinerycms-blog-d36af516eac3acf24f3ad0ea439e52691323a7a5.zip
Use shorter syntax for render :partial => ...
Diffstat (limited to 'app/views')
-rw-r--r--app/views/refinery/blog/admin/categories/edit.html.erb2
-rw-r--r--app/views/refinery/blog/admin/categories/index.html.erb4
-rw-r--r--app/views/refinery/blog/admin/categories/new.html.erb2
-rw-r--r--app/views/refinery/blog/admin/comments/index.html.erb4
-rw-r--r--app/views/refinery/blog/admin/posts/edit.html.erb2
-rw-r--r--app/views/refinery/blog/admin/posts/index.html.erb4
-rw-r--r--app/views/refinery/blog/admin/posts/new.html.erb2
-rw-r--r--app/views/refinery/blog/admin/posts/uncategorized.html.erb4
-rw-r--r--app/views/refinery/blog/categories/show.html.erb4
-rw-r--r--app/views/refinery/blog/posts/_post.html.erb2
-rw-r--r--app/views/refinery/blog/posts/archive.html.erb4
-rw-r--r--app/views/refinery/blog/posts/index.html.erb4
-rw-r--r--app/views/refinery/blog/posts/show.html.erb2
-rw-r--r--app/views/refinery/blog/posts/tagged.html.erb4
-rw-r--r--app/views/refinery/blog/shared/_body_content_right.html.erb8
15 files changed, 26 insertions, 26 deletions
diff --git a/app/views/refinery/blog/admin/categories/edit.html.erb b/app/views/refinery/blog/admin/categories/edit.html.erb
index 2872e82..e0f80e7 100644
--- a/app/views/refinery/blog/admin/categories/edit.html.erb
+++ b/app/views/refinery/blog/admin/categories/edit.html.erb
@@ -1 +1 @@
-<%= render :partial => "form" %>
+<%= render "form" %>
diff --git a/app/views/refinery/blog/admin/categories/index.html.erb b/app/views/refinery/blog/admin/categories/index.html.erb
index 2e4313e..451abc5 100644
--- a/app/views/refinery/blog/admin/categories/index.html.erb
+++ b/app/views/refinery/blog/admin/categories/index.html.erb
@@ -1,4 +1,4 @@
-<%= render :partial => '/refinery/blog/admin/submenu' %>
+<%= render '/refinery/blog/admin/submenu' %>
<div id='records'>
<% if searching? %>
<h2><%= t('results_for', :scope => 'refinery.admin.search',
@@ -13,7 +13,7 @@
<% if @categories.any? %>
<%= will_paginate @categories %>
- <%= render :partial => "sortable_list" %>
+ <%= render "sortable_list" %>
<%= will_paginate @categories %>
<% else %>
diff --git a/app/views/refinery/blog/admin/categories/new.html.erb b/app/views/refinery/blog/admin/categories/new.html.erb
index 2872e82..e0f80e7 100644
--- a/app/views/refinery/blog/admin/categories/new.html.erb
+++ b/app/views/refinery/blog/admin/categories/new.html.erb
@@ -1 +1 @@
-<%= render :partial => "form" %>
+<%= render "form" %>
diff --git a/app/views/refinery/blog/admin/comments/index.html.erb b/app/views/refinery/blog/admin/comments/index.html.erb
index dd84e9d..53c368e 100644
--- a/app/views/refinery/blog/admin/comments/index.html.erb
+++ b/app/views/refinery/blog/admin/comments/index.html.erb
@@ -1,4 +1,4 @@
-<%= render :partial => '/refinery/blog/admin/submenu' %>
+<%= render '/refinery/blog/admin/submenu' %>
<div id='records'>
<% if searching? %>
<h2><%= t('results_for', :scope => 'shared.admin.search', :query => params[:search]) %></h2>
@@ -18,7 +18,7 @@
<% if @comments.any? %>
<%= will_paginate @comments %>
- <%= render :partial => "sortable_list" %>
+ <%= render "sortable_list" %>
<%= will_paginate @comments %>
<% else %>
diff --git a/app/views/refinery/blog/admin/posts/edit.html.erb b/app/views/refinery/blog/admin/posts/edit.html.erb
index 2872e82..e0f80e7 100644
--- a/app/views/refinery/blog/admin/posts/edit.html.erb
+++ b/app/views/refinery/blog/admin/posts/edit.html.erb
@@ -1 +1 @@
-<%= render :partial => "form" %>
+<%= render "form" %>
diff --git a/app/views/refinery/blog/admin/posts/index.html.erb b/app/views/refinery/blog/admin/posts/index.html.erb
index 4a4dc66..19c4ccf 100644
--- a/app/views/refinery/blog/admin/posts/index.html.erb
+++ b/app/views/refinery/blog/admin/posts/index.html.erb
@@ -1,4 +1,4 @@
-<%= render :partial => '/refinery/blog/admin/submenu' %>
+<%= render '/refinery/blog/admin/submenu' %>
<div id='records'>
<% if searching? %>
<h2><%= t('results_for', :scope => 'refinery.admin.search', :query => params[:search]) %></h2>
@@ -13,7 +13,7 @@
<% if @posts.any? %>
<%= will_paginate @posts %>
- <%= render :partial => "sortable_list" %>
+ <%= render "sortable_list" %>
<%= will_paginate @posts %>
<% else %>
diff --git a/app/views/refinery/blog/admin/posts/new.html.erb b/app/views/refinery/blog/admin/posts/new.html.erb
index 2872e82..e0f80e7 100644
--- a/app/views/refinery/blog/admin/posts/new.html.erb
+++ b/app/views/refinery/blog/admin/posts/new.html.erb
@@ -1 +1 @@
-<%= render :partial => "form" %>
+<%= render "form" %>
diff --git a/app/views/refinery/blog/admin/posts/uncategorized.html.erb b/app/views/refinery/blog/admin/posts/uncategorized.html.erb
index 1b3a512..21e7c04 100644
--- a/app/views/refinery/blog/admin/posts/uncategorized.html.erb
+++ b/app/views/refinery/blog/admin/posts/uncategorized.html.erb
@@ -1,4 +1,4 @@
-<%= render :partial => '/refinery/blog/admin/submenu' %>
+<%= render '/refinery/blog/admin/submenu' %>
<div id='records'>
<% if searching? %>
<h2><%= t('results_for', :scope => 'refinery.admin.search',
@@ -13,7 +13,7 @@
<% if @posts.any? %>
<%= will_paginate @posts %>
- <%= render :partial => "sortable_list" %>
+ <%= render "sortable_list" %>
<%= will_paginate @posts %>
<% else %>
diff --git a/app/views/refinery/blog/categories/show.html.erb b/app/views/refinery/blog/categories/show.html.erb
index 51206c8..3a4a617 100644
--- a/app/views/refinery/blog/categories/show.html.erb
+++ b/app/views/refinery/blog/categories/show.html.erb
@@ -14,8 +14,8 @@
<% end %>
<% content_for :side_body do %>
- <%= render :partial => "/refinery/blog/shared/categories" %>
+ <%= render "/refinery/blog/shared/categories" %>
<% end %>
-<%= render :partial => "/refinery/content_page" %>
+<%= render "/refinery/content_page" %>
<% content_for :stylesheets, stylesheet_link_tag('refinery/blog/frontend') %>
diff --git a/app/views/refinery/blog/posts/_post.html.erb b/app/views/refinery/blog/posts/_post.html.erb
index c3ae924..9811dd2 100644
--- a/app/views/refinery/blog/posts/_post.html.erb
+++ b/app/views/refinery/blog/posts/_post.html.erb
@@ -33,5 +33,5 @@
<span class="st_sharethis" displayText="ShareThis"></span>
<% end %>
</article>
-<%= render :partial => '/refinery/draft_page_message' unless @post.nil? or @post.live? -%>
+<%= render '/refinery/draft_page_message' unless @post.nil? or @post.live? -%>
<%= render 'nav' if next_or_previous?(@post) %>
diff --git a/app/views/refinery/blog/posts/archive.html.erb b/app/views/refinery/blog/posts/archive.html.erb
index 1c3342c..31b5c1e 100644
--- a/app/views/refinery/blog/posts/archive.html.erb
+++ b/app/views/refinery/blog/posts/archive.html.erb
@@ -11,7 +11,7 @@
<% end %>
<% end %>
-<%= render :partial => '/refinery/blog/shared/body_content_right' %>
+<%= render '/refinery/blog/shared/body_content_right' %>
-<%= render :partial => "/refinery/content_page" %>
+<%= render "/refinery/content_page" %>
<% content_for :stylesheets, stylesheet_link_tag('refinery/blog/frontend') %>
diff --git a/app/views/refinery/blog/posts/index.html.erb b/app/views/refinery/blog/posts/index.html.erb
index ec19d26..772f2ec 100644
--- a/app/views/refinery/blog/posts/index.html.erb
+++ b/app/views/refinery/blog/posts/index.html.erb
@@ -14,7 +14,7 @@
<% content_for :side_body_prepend do -%>
<%= raw @page.content_for(Refinery::Pages.default_parts.second.to_sym) %>
<% end if Refinery::Pages.default_parts.many? -%>
-<%= render :partial => '/refinery/blog/shared/body_content_right' %>
+<%= render '/refinery/blog/shared/body_content_right' %>
-<%= render :partial => "/refinery/content_page" %>
+<%= render "/refinery/content_page" %>
<% content_for :stylesheets, stylesheet_link_tag('refinery/blog/frontend') %>
diff --git a/app/views/refinery/blog/posts/show.html.erb b/app/views/refinery/blog/posts/show.html.erb
index 95c2241..d7abd1e 100644
--- a/app/views/refinery/blog/posts/show.html.erb
+++ b/app/views/refinery/blog/posts/show.html.erb
@@ -8,7 +8,7 @@
<% end %>
<% end %>
-<%= render :partial => '/refinery/blog/shared/body_content_right' %>
+<%= render '/refinery/blog/shared/body_content_right' %>
<%= render :partial => "/refinery/content_page", :locals => { :remove_automatic_sections => true } %>
diff --git a/app/views/refinery/blog/posts/tagged.html.erb b/app/views/refinery/blog/posts/tagged.html.erb
index 80547ee..c22e55b 100644
--- a/app/views/refinery/blog/posts/tagged.html.erb
+++ b/app/views/refinery/blog/posts/tagged.html.erb
@@ -13,7 +13,7 @@
<% end %>
<% end %>
-<%= render :partial => '/refinery/blog/shared/body_content_right' %>
+<%= render '/refinery/blog/shared/body_content_right' %>
-<%= render :partial => "/refinery/content_page" %>
+<%= render "/refinery/content_page" %>
<% content_for :stylesheets, stylesheet_link_tag('refinery/blog/frontend') %>
diff --git a/app/views/refinery/blog/shared/_body_content_right.html.erb b/app/views/refinery/blog/shared/_body_content_right.html.erb
index 2b2e76d..b614dca 100644
--- a/app/views/refinery/blog/shared/_body_content_right.html.erb
+++ b/app/views/refinery/blog/shared/_body_content_right.html.erb
@@ -1,9 +1,9 @@
<% content_for :side_body do %>
<%= yield(:side_body_prepend) %>
- <%= render :partial => "/refinery/blog/shared/rss_feed" %>
- <%= render :partial => "/refinery/blog/shared/categories" %>
- <%= render :partial => "/refinery/blog/shared/tags" %>
- <%= render :partial => "/refinery/blog/shared/posts" %>
+ <%= render "/refinery/blog/shared/rss_feed" %>
+ <%= render "/refinery/blog/shared/categories" %>
+ <%= render "/refinery/blog/shared/tags" %>
+ <%= render "/refinery/blog/shared/posts" %>
<%= blog_archive_widget %>
<%= yield(:side_body_append) %>
<% end %>