summaryrefslogtreecommitdiffstats
path: root/app/views
diff options
context:
space:
mode:
authorMarius Balteanu <marius.balteanu@zitec.com>2022-04-01 15:30:23 +0000
committerMarius Balteanu <marius.balteanu@zitec.com>2022-04-01 15:30:23 +0000
commitb1e4411c497161eca7a977db5243ff92bff88d82 (patch)
tree70dfcf05c3c7eeb527a57b9b248bba042395673d /app/views
parentc431606e3ee5e471a0c4703ca0fb6678f7ceeb30 (diff)
downloadredmine-b1e4411c497161eca7a977db5243ff92bff88d82.tar.gz
redmine-b1e4411c497161eca7a977db5243ff92bff88d82.zip
Add missing partial view (33422).
git-svn-id: https://svn.redmine.org/redmine/trunk@21521 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views')
-rw-r--r--app/views/context_menus/projects.html.erb16
1 files changed, 16 insertions, 0 deletions
diff --git a/app/views/context_menus/projects.html.erb b/app/views/context_menus/projects.html.erb
new file mode 100644
index 000000000..d6a1177c7
--- /dev/null
+++ b/app/views/context_menus/projects.html.erb
@@ -0,0 +1,16 @@
+<ul>
+ <% if @project %>
+ <% if @project.archived? %>
+ <li><%= context_menu_link l(:button_unarchive), unarchive_project_path(@project), method: :post, class: 'icon icon-unlock' %></li>
+ <% else %>
+ <li><%= context_menu_link l(:button_archive), archive_project_path(@project), data: {confirm: l(:text_are_you_sure)}, method: :post, class: 'icon icon-lock' %></li>
+ <% end %>
+ <li>
+ <%= context_menu_link l(:button_copy), copy_project_path(@projects), class: 'icon icon-copy' %>
+ </li>
+ <li>
+ <%= context_menu_link l(:button_delete), project_path(@project, back_url: @back),
+ method: :delete, data: {confirm: l(:text_project_destroy_confirmation)}, class: 'icon icon-del' %>
+ </li>
+ <% end %>
+</ul>