about summary refs log tree commit diff
path: root/app/views/accounts
diff options
context:
space:
mode:
authorMatt Jankowski <mjankowski@thoughtbot.com>2017-04-18 11:15:30 -0400
committerEugen <eugen@zeonfederated.com>2017-04-18 17:15:30 +0200
commit84b5fae8e37b9c1b3766efc047993c69ea046ae3 (patch)
tree13451fed7e9d82750cfce45b269a06d81fc637e9 /app/views/accounts
parentd90b1650d805f4cede5cff255530aa3fb4429864 (diff)
Simplify renders in views (#2084)
* Simplify render in mailer views

* Simplify render in about/more view

* Simplify render in accounts follow views

* Simplify render in recovery code views

* Simplify render in stream entry embed

* Simplify render in stream entries status partial

* Simplify render in authorize follow new view
Diffstat (limited to 'app/views/accounts')
-rw-r--r--app/views/accounts/followers.html.haml2
-rw-r--r--app/views/accounts/following.html.haml2
-rw-r--r--app/views/accounts/show.html.haml2
3 files changed, 3 insertions, 3 deletions
diff --git a/app/views/accounts/followers.html.haml b/app/views/accounts/followers.html.haml
index 4b53aef0c..9e1643b23 100644
--- a/app/views/accounts/followers.html.haml
+++ b/app/views/accounts/followers.html.haml
@@ -5,7 +5,7 @@
 
 .accounts-grid
   - if @followers.empty?
-    = render partial: 'nothing_here'
+    = render 'nothing_here'
   - else
     = render partial: 'grid_card', collection: @followers, as: :account, cached: true
 
diff --git a/app/views/accounts/following.html.haml b/app/views/accounts/following.html.haml
index 4711997d9..19138b0a4 100644
--- a/app/views/accounts/following.html.haml
+++ b/app/views/accounts/following.html.haml
@@ -5,7 +5,7 @@
 
 .accounts-grid
   - if @following.empty?
-    = render partial: 'nothing_here'
+    = render 'nothing_here'
   - else
     = render partial: 'grid_card', collection: @following, as: :account, cached: true
 
diff --git a/app/views/accounts/show.html.haml b/app/views/accounts/show.html.haml
index b01f3c4e3..44d66d471 100644
--- a/app/views/accounts/show.html.haml
+++ b/app/views/accounts/show.html.haml
@@ -24,7 +24,7 @@
 
   - if @statuses.empty?
     .accounts-grid
-      = render partial: 'nothing_here'
+      = render 'nothing_here'
   - else
     .activity-stream
       = render partial: 'stream_entries/status', collection: @statuses, as: :status