diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/helpers/widget_helper.rb | 3 | ||||
-rw-r--r-- | app/views/widgets/show.html.erb | 4 |
2 files changed, 3 insertions, 4 deletions
diff --git a/app/helpers/widget_helper.rb b/app/helpers/widget_helper.rb index f188f6b08..e604954fe 100644 --- a/app/helpers/widget_helper.rb +++ b/app/helpers/widget_helper.rb @@ -1,6 +1,5 @@ module WidgetHelper - def status_description(info_request) - status = info_request.calculate_status + def status_description(info_request, status) case status when 'waiting_classification' _('Awaiting classification') diff --git a/app/views/widgets/show.html.erb b/app/views/widgets/show.html.erb index fd2391035..1dd8969b6 100644 --- a/app/views/widgets/show.html.erb +++ b/app/views/widgets/show.html.erb @@ -8,9 +8,9 @@ <div class="alaveteli-widget__title"> <%= link_to @info_request.title, request_path(@info_request), :target => "_top" %> </div> - <div class="alaveteli-widget__status <%= @info_request.calculate_status %>"> + <div class="alaveteli-widget__status <%= @status %>"> <p class="alaveteli-widget__status__status-label">Status</p> - <%= status_description(@info_request) %> + <%= status_description(@info_request, @status) %> </div> </div> <div class="alaveteli-widget__people-count"> |