summaryrefslogtreecommitdiffstats
path: root/app/views
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2018-04-21 12:00:22 +0000
committerGo MAEDA <maeda@farend.jp>2018-04-21 12:00:22 +0000
commita4ffda7b3714076ffd920efeeef86dd8c0e5710c (patch)
tree120e553396c7e9f17039ad397adea8057daec2e7 /app/views
parent07b9ce80f6252fd028c72db382183fdfd367a4b6 (diff)
downloadredmine-a4ffda7b3714076ffd920efeeef86dd8c0e5710c.tar.gz
redmine-a4ffda7b3714076ffd920efeeef86dd8c0e5710c.zip
Use button as additional option for contextmenu (#26655).
Patch by Felix Gliesche. git-svn-id: http://svn.redmine.org/redmine/trunk@17298 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views')
-rw-r--r--app/views/issues/_list.html.erb6
-rw-r--r--app/views/my/blocks/_timelog.html.erb3
-rw-r--r--app/views/timelog/_list.html.erb1
-rw-r--r--app/views/versions/index.html.erb1
-rw-r--r--app/views/versions/show.html.erb1
5 files changed, 10 insertions, 2 deletions
diff --git a/app/views/issues/_list.html.erb b/app/views/issues/_list.html.erb
index 8024a6948..d704a58bb 100644
--- a/app/views/issues/_list.html.erb
+++ b/app/views/issues/_list.html.erb
@@ -14,6 +14,7 @@
<% query.inline_columns.each do |column| %>
<%= column_header(query, column, query_options) %>
<% end %>
+ <th class="buttons"></th>
</tr>
</thead>
<tbody>
@@ -21,7 +22,7 @@
<% if group_name %>
<% reset_cycle %>
<tr class="group open">
- <td colspan="<%= query.inline_columns.size + 1 %>">
+ <td colspan="<%= query.inline_columns.size + 2 %>">
<span class="expander" onclick="toggleRowGroup(this);">&nbsp;</span>
<span class="name"><%= group_name %></span> <span class="count"><%= group_count %></span> <span class="totals"><%= group_totals %></span>
<%= link_to_function("#{l(:button_collapse_all)}/#{l(:button_expand_all)}",
@@ -34,11 +35,12 @@
<% query.inline_columns.each do |column| %>
<%= content_tag('td', column_content(column, issue), :class => column.css_classes) %>
<% end %>
+ <td class="buttons"><%= link_to_context_menu %></td>
</tr>
<% query.block_columns.each do |column|
if (text = column_content(column, issue)) && text.present? -%>
<tr class="<%= current_cycle %>">
- <td colspan="<%= query.inline_columns.size + 1 %>" class="<%= column.css_classes %>">
+ <td colspan="<%= query.inline_columns.size + 2 %>" class="<%= column.css_classes %>">
<% if query.block_columns.count > 1 %>
<span><%= column.caption %></span>
<% end %>
diff --git a/app/views/my/blocks/_timelog.html.erb b/app/views/my/blocks/_timelog.html.erb
index f96ee6c2e..7354c757d 100644
--- a/app/views/my/blocks/_timelog.html.erb
+++ b/app/views/my/blocks/_timelog.html.erb
@@ -35,6 +35,7 @@
<th><%= l(:label_project) %></th>
<th><%= l(:field_comments) %></th>
<th><%= l(:field_hours) %></th>
+<th></th>
</tr></thead>
<tbody>
<% entries_by_day.keys.sort.reverse_each do |day| %>
@@ -42,6 +43,7 @@
<td><strong><%= day == User.current.today ? l(:label_today).titleize : format_date(day) %></strong></td>
<td colspan="2"></td>
<td class="hours"><em><%= html_hours(format_hours(entries_by_day[day].sum(&:hours))) %></em></td>
+ <td></td>
</tr>
<% entries_by_day[day].each do |entry| -%>
<tr id="time-entry-<%= entry.id %>" class="time-entry hascontextmenu">
@@ -52,6 +54,7 @@
<td class="subject"><%= entry.project %> <%= h(' - ') + link_to_issue(entry.issue, :truncate => 50) if entry.issue %></td>
<td class="comments"><%= entry.comments %></td>
<td class="hours"><%= html_hours(format_hours(entry.hours)) %></td>
+ <td class="buttons"><%= link_to_context_menu %></td>
</tr>
<% end -%>
<% end -%>
diff --git a/app/views/timelog/_list.html.erb b/app/views/timelog/_list.html.erb
index 6f126b0f7..019ddbb53 100644
--- a/app/views/timelog/_list.html.erb
+++ b/app/views/timelog/_list.html.erb
@@ -47,6 +47,7 @@
:title => l(:button_delete),
:class => 'icon-only icon-del' %>
<% end -%>
+ <%= link_to_context_menu %>
</td>
</tr>
<% @query.block_columns.each do |column|
diff --git a/app/views/versions/index.html.erb b/app/views/versions/index.html.erb
index 2914a6dbc..eeb9f3f06 100644
--- a/app/views/versions/index.html.erb
+++ b/app/views/versions/index.html.erb
@@ -30,6 +30,7 @@
<tr class="hascontextmenu">
<td class="checkbox"><%= check_box_tag 'ids[]', issue.id, false, :id => nil %></td>
<td class="subject"><%= link_to_issue(issue, :project => (@project != issue.project)) %></td>
+ <td class="buttons"><%= link_to_context_menu %></td>
</tr>
<% end -%>
</table>
diff --git a/app/views/versions/show.html.erb b/app/views/versions/show.html.erb
index a62b0a1d0..677cc1410 100644
--- a/app/views/versions/show.html.erb
+++ b/app/views/versions/show.html.erb
@@ -44,6 +44,7 @@
<tr class="issue hascontextmenu">
<td class="checkbox"><%= check_box_tag 'ids[]', issue.id, false, :id => nil %></td>
<td class="subject"><%= link_to_issue(issue, :project => (@project != issue.project)) %></td>
+ <td class="buttons"><%= link_to_context_menu %></td>
</tr>
<% end %>
</table>