Module: DocLog::RawLogHelper
- Defined in:
- app/helpers/doc_log/raw_log_helper.rb
Instance Method Summary collapse
- #aysnc_label(status) ⇒ Object
- #document_type_label(document_type) ⇒ Object
- #javascript_label(status) ⇒ Object
- #status_label(status) ⇒ Object
- #test_label(status) ⇒ Object
Instance Method Details
#aysnc_label(status) ⇒ Object
13 14 15 |
# File 'app/helpers/doc_log/raw_log_helper.rb', line 13 def aysnc_label status '<span class="glyphicon glyphicon-ok-circle" style="color:green"></span>'.html_safe if status end |
#document_type_label(document_type) ⇒ Object
21 22 23 |
# File 'app/helpers/doc_log/raw_log_helper.rb', line 21 def document_type_label document_type document_type.upcase end |
#javascript_label(status) ⇒ Object
8 9 10 11 |
# File 'app/helpers/doc_log/raw_log_helper.rb', line 8 def javascript_label status return '<span class="glyphicon glyphicon-ok-circle" aria-hidden="true" style="color:green"></span>'.html_safe if status '<span class="glyphicon glyphicon-ban-circle" aria-hidden="true" style="color:red"></span>'.html_safe end |
#status_label(status) ⇒ Object
3 4 5 6 |
# File 'app/helpers/doc_log/raw_log_helper.rb', line 3 def status_label status return '<span class="label label-success">Success</span>'.html_safe if status '<span class="label label-danger">Failed</span>'.html_safe end |
#test_label(status) ⇒ Object
17 18 19 |
# File 'app/helpers/doc_log/raw_log_helper.rb', line 17 def test_label status '<span class="glyphicon glyphicon-ok-circle" style="color:green"></span>'.html_safe if status end |