diff options
author | 2014-08-03 11:41:28 -0700 | |
---|---|---|
committer | 2014-08-03 11:41:28 -0700 | |
commit | 032d028cb3dcca4ae7cf2f2faf624fdd205160d0 (patch) | |
tree | d7fe922ed3081adc503bf0fe7f7ad56a8638d275 /lib | |
parent | Refactor to find a nil. (diff) | |
download | infra-status-032d028cb3dcca4ae7cf2f2faf624fdd205160d0.tar.gz infra-status-032d028cb3dcca4ae7cf2f2faf624fdd205160d0.tar.bz2 infra-status-032d028cb3dcca4ae7cf2f2faf624fdd205160d0.zip |
More refactoring.
Signed-off-by: Robin H. Johnson <robbat2@orbis-terrarum.net>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/helpers.rb | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/helpers.rb b/lib/helpers.rb index 4ef27d4..c6081bb 100644 --- a/lib/helpers.rb +++ b/lib/helpers.rb @@ -22,14 +22,16 @@ helpers do content = '<div class="list-group">' services.each do |service| - service_info_txt = service_info(service) + _service_status = service_status(service) + _status_text = status_text(_service_status) + _service_info = service_info(service) service_name = ServiceRegistry.instance.services[service][:name] data_service_name = service_name.gsub('"', "'") content << " - <a class=\"list-group-item has-tooltip notice-link\" href=\"#notices\" title=\"#{status_text(service_status(service))}\" + <a class=\"list-group-item has-tooltip notice-link\" href=\"#notices\" title=\"#{_status_text)}\" data-toggle=\"tooltip\" data-placement=\"top\" data-container=\"body\" data-service=\"#{service}\" data-service-name=\"#{data_service_name}\"> - #{service_info_txt} + #{_service_info} #{service_name} </a>" end |