diff options
author | Eric Davis <edavis@littlestreamsoftware.com> | 2010-09-20 18:50:14 +0000 |
---|---|---|
committer | Eric Davis <edavis@littlestreamsoftware.com> | 2010-09-20 18:50:14 +0000 |
commit | 55fbf6836be16f4776449e6bcdc8e029d67bcb66 (patch) | |
tree | 13e2d7eea584be8ed22580337a98ed36c62ea07a | |
parent | a09a39402e879f9a95d44f9990fd901f78a28756 (diff) | |
download | redmine-55fbf6836be16f4776449e6bcdc8e029d67bcb66.tar.gz redmine-55fbf6836be16f4776449e6bcdc8e029d67bcb66.zip |
Document render_issue_tooltip
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4166 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | app/helpers/issues_helper.rb | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/app/helpers/issues_helper.rb b/app/helpers/issues_helper.rb index f1ddcfcbf..d84ec6c97 100644 --- a/app/helpers/issues_helper.rb +++ b/app/helpers/issues_helper.rb @@ -28,7 +28,16 @@ module IssuesHelper ancestors << issue unless issue.leaf? end end - + + # Renders a HTML/CSS tooltip + # + # To use, a trigger div is needed. This is a div with the class of "tooltip" + # that contains this method wrapped in a span with the class of "tip" + # + # <div class="tooltip"><%= link_to_issue(issue) %> + # <span class="tip"><%= render_issue_tooltip(issue) %></span> + # </div> + # def render_issue_tooltip(issue) @cached_label_status ||= l(:field_status) @cached_label_start_date ||= l(:field_start_date) |