Feature #10485 » 0001-Add-context-menu-to-the-issue-subjects.patch
app/views/gantts/show.html.erb | ||
---|---|---|
153 | 153 |
%> |
154 | 154 |
<%= content_tag(:div, "", :style => style, :class => "gantt_hdr") %> |
155 | 155 |
<%= content_tag(:div, :class => "gantt_subjects") do %> |
156 |
<%= @gantt.subjects.html_safe %> |
|
156 |
<%= form_tag({}, :data => {:cm_url => issues_context_menu_path}) do -%> |
|
157 |
<%= @gantt.subjects.html_safe %> |
|
158 |
<% end %> |
|
157 | 159 |
<% end %> |
158 | 160 |
<% end %> |
159 | 161 |
</td> |
... | ... | |
272 | 274 |
wday = 1 if wday > 7 |
273 | 275 |
%> |
274 | 276 |
<% end %> |
275 |
<% end %>
|
|
277 |
<% end %> |
|
276 | 278 | |
277 | 279 |
<% ###### Days headers ####### %> |
278 | 280 |
<% if show_days %> |
... | ... | |
376 | 378 |
$("#draw_progress_line").change(drawGanttHandler); |
377 | 379 |
}); |
378 | 380 |
<% end %> |
381 |
<%= context_menu %> |
lib/redmine/helpers/gantt.rb | ||
---|---|---|
670 | 670 |
:title => assigned_string).to_s.html_safe |
671 | 671 |
end |
672 | 672 |
s << view.link_to_issue(issue).html_safe |
673 |
s << view.content_tag(:input, nil, :type => 'checkbox', :name => 'ids[]', :value => issue.id, :style => 'display:none;', :class => 'toggle-selection') |
|
673 | 674 |
view.content_tag(:span, s, :class => css_classes).html_safe |
674 | 675 |
when Version |
675 | 676 |
version = object |
... | ... | |
704 | 705 |
case object |
705 | 706 |
when Issue |
706 | 707 |
tag_options[:id] = "issue-#{object.id}" |
707 |
tag_options[:class] = "issue-subject" |
|
708 |
tag_options[:class] = "issue-subject hascontextmenu"
|
|
708 | 709 |
tag_options[:title] = object.subject |
709 | 710 |
when Version |
710 | 711 |
tag_options[:id] = "version-#{object.id}" |
public/stylesheets/application.css | ||
---|---|---|
1151 | 1151 | |
1152 | 1152 |
.gantt_subjects { font-size: 0.8em; } |
1153 | 1153 |
.gantt_subjects div { line-height:16px;height:16px;overflow:hidden;white-space:nowrap;text-overflow: ellipsis; } |
1154 |
.gantt_subjects div.issue-subject:hover { background-color:#ffffdd; } |
|
1154 | 1155 | |
1155 | 1156 |
.task { |
1156 | 1157 |
position: absolute; |