From 84b5fae8e37b9c1b3766efc047993c69ea046ae3 Mon Sep 17 00:00:00 2001 From: Matt Jankowski Date: Tue, 18 Apr 2017 11:15:30 -0400 Subject: 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 --- app/views/accounts/followers.html.haml | 2 +- app/views/accounts/following.html.haml | 2 +- app/views/accounts/show.html.haml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'app/views/accounts') 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 -- cgit