Project

General

Profile

Feature #10485 » 0002-Add-context-menu-to-the-task-bar.patch

Mizuki ISHIKAWA, 2017-07-13 07:59

View differences:

app/views/gantts/show.html.erb
307 307
  <% end %>
308 308
<% end %>
309 309

  
310
<%= @gantt.lines.html_safe %>
310
<%= form_tag({}, :data => {:cm_url => issues_context_menu_path}) do -%>
311
  <%= @gantt.lines.html_safe %>
312
<% end %>
311 313

  
312 314
<% ###### Today red line (excluded from cache) ###### %>
313 315
<% if User.current.today >= @gantt.date_from and User.current.today <= @gantt.date_to %>
lib/redmine/helpers/gantt.rb
842 842
          s = view.content_tag(:span,
843 843
                               view.render_issue_tooltip(object).html_safe,
844 844
                               :class => "tip")
845
          s += view.content_tag(:input, nil, :type => 'checkbox', :name => 'ids[]', :value => object.id, :style => 'display:none;', :class => 'toggle-selection')
845 846
          style = ""
846 847
          style << "position: absolute;"
847 848
          style << "top:#{params[:top]}px;"
......
850 851
          style << "height:12px;"
851 852
          output << view.content_tag(:div, s.html_safe,
852 853
                                     :style => style,
853
                                     :class => "tooltip")
854
                                     :class => "tooltip hascontextmenu")
854 855
        end
855 856
        @lines << output
856 857
        output
public/stylesheets/context_menu.css
54 54
.context-menu-selection { background-color:#507AAA !important; color:#f8f8f8 !important; }
55 55
.context-menu-selection a, .context-menu-selection a:hover { color:#f8f8f8 !important; }
56 56
.context-menu-selection:hover { background-color:#507AAA !important; color:#f8f8f8  !important; }
57
div#gantt_area .context-menu-selection { background-color: rgba(80, 122, 170, 0.48) !important; }
58
div#gantt_area .context-menu-selection:hover { background-color: rgba(80, 122, 170, 0.48) !important; }
59
div#gantt_area .context-menu-selection a { color: #169 !important; }
(2-2/6)