OSDN Git Service

Use simplified render syntax
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Sat, 22 Jun 2013 12:04:49 +0000 (15:04 +0300)
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Sat, 22 Jun 2013 12:04:49 +0000 (15:04 +0300)
app/views/snippets/_snippets.html.haml
app/views/wikis/edit.html.haml
app/views/wikis/git_access.html.haml
app/views/wikis/history.html.haml
app/views/wikis/pages.html.haml
app/views/wikis/show.html.haml

index 636bf37..6c72b33 100644 (file)
@@ -1,5 +1,5 @@
 %ul.bordered-list
-  = render partial: 'snippet', collection: @snippets
+  = render @snippets
   - if @snippets.empty?
     %li
       %h3.nothing_here_message Nothing here.
index 7441cef..cd74a73 100644 (file)
@@ -1,7 +1,7 @@
 = render 'wikis/nav'
 %h3.page_title
   Editing page
-  = render partial: 'main_links'
+  = render 'main_links'
 = render 'form'
 
 .pull-right
index 462d483..0b363cb 100644 (file)
@@ -2,7 +2,7 @@
 %h3.page_title
   Git Access
   %strong= @gollum_wiki.path_with_namespace
-  = render partial: 'main_links'
+  = render 'main_links'
 
 %br
 .content
index f4946ed..243c5c7 100644 (file)
@@ -2,7 +2,7 @@
 %h3.page_title
   %span.light History for
   = @wiki.title.titleize
-  = render partial: 'main_links'
+  = render 'main_links'
 %br
 %table
   %thead
index 95d5eef..48c11b8 100644 (file)
@@ -1,7 +1,7 @@
 = render 'wikis/nav'
 %h3.page_title
   All Pages
-  = render partial: 'main_links'
+  = render 'main_links'
 %br
 %table
   %thead
index b237bc5..b40bbcb 100644 (file)
@@ -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