From edcd46599b8363c3447c07ae4dcf320af8bfd4c1 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Sat, 22 Jun 2013 15:04:49 +0300 Subject: [PATCH] Use simplified render syntax --- app/views/snippets/_snippets.html.haml | 2 +- app/views/wikis/edit.html.haml | 2 +- app/views/wikis/git_access.html.haml | 2 +- app/views/wikis/history.html.haml | 2 +- app/views/wikis/pages.html.haml | 2 +- app/views/wikis/show.html.haml | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/views/snippets/_snippets.html.haml b/app/views/snippets/_snippets.html.haml index 636bf37f6d..6c72b335f3 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 7441ceff5c..cd74a738f8 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 462d483fd8..0b363cbb8c 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 f4946ed000..243c5c7c2c 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 95d5eef16f..48c11b8e39 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 b237bc524e..b40bbcb492 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