@@ -28,7 +28,16 module IssuesHelper | |||||
28 | ancestors << issue unless issue.leaf? |
|
28 | ancestors << issue unless issue.leaf? | |
29 | end |
|
29 | end | |
30 | end |
|
30 | end | |
31 |
|
31 | |||
|
32 | # Renders a HTML/CSS tooltip | |||
|
33 | # | |||
|
34 | # To use, a trigger div is needed. This is a div with the class of "tooltip" | |||
|
35 | # that contains this method wrapped in a span with the class of "tip" | |||
|
36 | # | |||
|
37 | # <div class="tooltip"><%= link_to_issue(issue) %> | |||
|
38 | # <span class="tip"><%= render_issue_tooltip(issue) %></span> | |||
|
39 | # </div> | |||
|
40 | # | |||
32 | def render_issue_tooltip(issue) |
|
41 | def render_issue_tooltip(issue) | |
33 | @cached_label_status ||= l(:field_status) |
|
42 | @cached_label_status ||= l(:field_status) | |
34 | @cached_label_start_date ||= l(:field_start_date) |
|
43 | @cached_label_start_date ||= l(:field_start_date) |
General Comments 0
You need to be logged in to leave comments.
Login now