summaryrefslogtreecommitdiffstats
path: root/app/helpers/trackers_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/helpers/trackers_helper.rb')
-rw-r--r--app/helpers/trackers_helper.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/helpers/trackers_helper.rb b/app/helpers/trackers_helper.rb
index dd305c91e..468fe610f 100644
--- a/app/helpers/trackers_helper.rb
+++ b/app/helpers/trackers_helper.rb
@@ -20,4 +20,10 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
module TrackersHelper
+
+ def tracker_name_tag(tracker)
+ title = tracker.description.presence
+ css = title ? "field-description" : nil
+ content_tag 'span', tracker.name, :class => css, :title => title
+ end
end