Skip to content

Commit 867f953

Browse files
committed
cleanup: remove deprecated show_progress_bar logic #1583
1 parent 1f67aca commit 867f953

File tree

2 files changed

+0
-26
lines changed

2 files changed

+0
-26
lines changed

BrainPortal/app/models/portal_task.rb

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -347,12 +347,6 @@ def progress_info
347347
return {:color => color, :progress => progress, :message => nil, :show_percentage => false }
348348
end
349349

350-
# Returns true if progress bar has to be shown. Task must override this method
351-
# when the progress bar has to be shown.
352-
def show_progress_bar?
353-
false
354-
end
355-
356350
######################################################
357351
# Task properties directives
358352
######################################################

BrainPortal/app/views/tasks/show.html.erb

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -24,26 +24,6 @@
2424

2525
<% title(@task.name + ' Task Information') %>
2626

27-
<!-- PROGRESS BAR -->
28-
<% if @task.show_progress_bar? %>
29-
<% progress_info = @task.progress_info %>
30-
<strong>Progress</strong>
31-
<% if progress_info[:message].present? || progress_info[:show_percentage] %>
32-
:
33-
<% end %>
34-
<% if progress_info[:show_percentage] %>
35-
<%= progress_info[:percentage].to_i %>%
36-
<% end %>
37-
<%= progress_info[:message] %>
38-
<div id="container" style="width: 40%; height: 2em; border: 1px solid black;">
39-
<div id="progress-bar" style="width: <%= progress_info[:percentage] %>%;
40-
background-color: <%= progress_info[:color] %>;
41-
height: 2em">
42-
<br>
43-
</div>
44-
</div>
45-
<% end %>
46-
4727
<div class="menu_bar">
4828

4929
<% if @task.bourreau&.online? %>

0 commit comments

Comments
 (0)