aboutsummaryrefslogtreecommitdiffstats
path: root/app/helpers/referentials_helper.rb
diff options
context:
space:
mode:
authorTeddy Wing2017-11-21 14:19:13 +0100
committerTeddy Wing2017-11-21 14:19:13 +0100
commit4815be1302c6d9d2b7aedfa4010e936a0f3e8e77 (patch)
treee71a70631a7b29f3f31c66dde65ba5bc2cff1ba3 /app/helpers/referentials_helper.rb
parent706fb9e315eceaa778cbbdafc315a1465f220e20 (diff)
downloadchouette-core-4815be1302c6d9d2b7aedfa4010e936a0f3e8e77.tar.bz2
referentials_helper.rb#line_status: Add documentation comment
Replace the existing comment, which seemed redundant, with a description of what the helper method does. Refs #5005
Diffstat (limited to 'app/helpers/referentials_helper.rb')
-rw-r--r--app/helpers/referentials_helper.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/helpers/referentials_helper.rb b/app/helpers/referentials_helper.rb
index d9fb48d01..01e5a5879 100644
--- a/app/helpers/referentials_helper.rb
+++ b/app/helpers/referentials_helper.rb
@@ -1,5 +1,6 @@
module ReferentialsHelper
- # Line statuses helper
+ # Outputs a green check icon and the text "Oui" or a red exclamation mark
+ # icon and the text "Non" based on `status`
def line_status(status)
if status
content_tag(:span, nil, class: 'fa fa-exclamation-circle fa-lg text-danger') +