remove bootstrap_class_for helper function and related usage
This commit is contained in:
parent
33b9a2b93b
commit
37fb336af7
2 changed files with 1 additions and 24 deletions
|
|
@ -133,21 +133,6 @@ module ApplicationHelper
|
||||||
result
|
result
|
||||||
end
|
end
|
||||||
|
|
||||||
def bootstrap_class_for(flash_type)
|
|
||||||
case flash_type
|
|
||||||
when 'success'
|
|
||||||
'alert-success'
|
|
||||||
when 'error'
|
|
||||||
'alert-danger'
|
|
||||||
when 'alert'
|
|
||||||
'alert-warning'
|
|
||||||
when 'notice'
|
|
||||||
'alert-info'
|
|
||||||
else
|
|
||||||
'alert-warning'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
def label_for(event_state)
|
def label_for(event_state)
|
||||||
result = ''
|
result = ''
|
||||||
case event_state
|
case event_state
|
||||||
|
|
|
||||||
|
|
@ -7,11 +7,3 @@
|
||||||
JavaScript is not enabled
|
JavaScript is not enabled
|
||||||
%p
|
%p
|
||||||
OSEM requires JavaScript to be enabled to function. Please turn on JavaScript in your browser's settings and reload the page to continue.
|
OSEM requires JavaScript to be enabled to function. Please turn on JavaScript in your browser's settings and reload the page to continue.
|
||||||
- flash.each do |type, message|
|
|
||||||
.row
|
|
||||||
.col-md-12
|
|
||||||
%div{:class=>"alert alert-dismissable #{bootstrap_class_for(type)}", :id=>"flash"}
|
|
||||||
.button.close{"data-dismiss" => "alert", "aria-hidden"=>"true"}
|
|
||||||
×
|
|
||||||
%p
|
|
||||||
= message
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue