From: Dmitriy Zaporozhets Date: Sat, 22 Jun 2013 12:04:49 +0000 (+0300) Subject: Use simplified render syntax X-Git-Tag: v6.0.0~215^2~83 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=edcd46599b8363c3447c07ae4dcf320af8bfd4c1;p=wvm%2Fgitlab.git Use simplified render syntax --- diff --git a/app/views/snippets/_snippets.html.haml b/app/views/snippets/_snippets.html.haml index 636bf37f6..6c72b335f 100644 --- a/app/views/snippets/_snippets.html.haml +++ b/app/views/snippets/_snippets.html.haml @@ -1,5 +1,5 @@ %ul.bordered-list - = render partial: 'snippet', collection: @snippets + = render @snippets - if @snippets.empty? %li %h3.nothing_here_message Nothing here. diff --git a/app/views/wikis/edit.html.haml b/app/views/wikis/edit.html.haml index 7441ceff5..cd74a738f 100644 --- a/app/views/wikis/edit.html.haml +++ b/app/views/wikis/edit.html.haml @@ -1,7 +1,7 @@ = render 'wikis/nav' %h3.page_title Editing page - = render partial: 'main_links' + = render 'main_links' = render 'form' .pull-right diff --git a/app/views/wikis/git_access.html.haml b/app/views/wikis/git_access.html.haml index 462d483fd..0b363cbb8 100644 --- a/app/views/wikis/git_access.html.haml +++ b/app/views/wikis/git_access.html.haml @@ -2,7 +2,7 @@ %h3.page_title Git Access %strong= @gollum_wiki.path_with_namespace - = render partial: 'main_links' + = render 'main_links' %br .content diff --git a/app/views/wikis/history.html.haml b/app/views/wikis/history.html.haml index f4946ed00..243c5c7c2 100644 --- a/app/views/wikis/history.html.haml +++ b/app/views/wikis/history.html.haml @@ -2,7 +2,7 @@ %h3.page_title %span.light History for = @wiki.title.titleize - = render partial: 'main_links' + = render 'main_links' %br %table %thead diff --git a/app/views/wikis/pages.html.haml b/app/views/wikis/pages.html.haml index 95d5eef16..48c11b8e3 100644 --- a/app/views/wikis/pages.html.haml +++ b/app/views/wikis/pages.html.haml @@ -1,7 +1,7 @@ = render 'wikis/nav' %h3.page_title All Pages - = render partial: 'main_links' + = render 'main_links' %br %table %thead diff --git a/app/views/wikis/show.html.haml b/app/views/wikis/show.html.haml index b237bc524..b40bbcb49 100644 --- a/app/views/wikis/show.html.haml +++ b/app/views/wikis/show.html.haml @@ -1,7 +1,7 @@ = render 'wikis/nav' %h3.page_title = @wiki.title.titleize - = render partial: 'main_links' + = render 'main_links' %br - if @wiki.historical? .warning_message