From 829e6bfe0233e0b2e43d5d3677f0e677f92ec378 Mon Sep 17 00:00:00 2001 From: yystopf Date: Fri, 20 Jun 2025 11:22:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=EF=BC=9A=E6=9C=AA=E6=8B=A5?= =?UTF-8?q?=E6=9C=89=E6=9D=83=E9=99=90=E5=8E=BB=E9=99=A4=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/admins/project_categories/index.html.erb | 2 ++ app/views/admins/project_ignores/index.html.erb | 3 +++ app/views/admins/project_languages/index.html.erb | 2 ++ app/views/admins/project_licenses/index.html.erb | 2 ++ 4 files changed, 9 insertions(+) diff --git a/app/views/admins/project_categories/index.html.erb b/app/views/admins/project_categories/index.html.erb index b635cef43..d80fabab3 100644 --- a/app/views/admins/project_categories/index.html.erb +++ b/app/views/admins/project_categories/index.html.erb @@ -8,7 +8,9 @@ <%= submit_tag('搜索', class: 'btn btn-primary ml-3', 'data-disable-with': '搜索中...') %> <% end %> +<% if current_user.admin? %> <%= link_to "新增", new_admins_project_category_path, remote: true, class: "btn btn-primary pull-right", "data-disabled-with":"...新增" %> +<% end%>
diff --git a/app/views/admins/project_ignores/index.html.erb b/app/views/admins/project_ignores/index.html.erb index a9fc9982e..733f6913e 100644 --- a/app/views/admins/project_ignores/index.html.erb +++ b/app/views/admins/project_ignores/index.html.erb @@ -8,7 +8,10 @@ <%= submit_tag('搜索', class: 'btn btn-primary ml-3', 'data-disable-with': '搜索中...') %> <% end %> + <% if current_user.admin? %> <%= link_to "新增", new_admins_project_ignore_path, remote: true, class: "btn btn-primary pull-right", "data-disabled-with":"...新增" %> + <% end %> +
diff --git a/app/views/admins/project_languages/index.html.erb b/app/views/admins/project_languages/index.html.erb index ae1d81ee4..270260abb 100644 --- a/app/views/admins/project_languages/index.html.erb +++ b/app/views/admins/project_languages/index.html.erb @@ -8,7 +8,9 @@ <%= submit_tag('搜索', class: 'btn btn-primary ml-3', 'data-disable-with': '搜索中...') %> <% end %> + <% if current_user.admin? %> <%= link_to "新增", new_admins_project_language_path, remote: true, class: "btn btn-primary pull-right", "data-disabled-with":"...新增" %> + <% end%>
diff --git a/app/views/admins/project_licenses/index.html.erb b/app/views/admins/project_licenses/index.html.erb index 31e648006..83f53ebab 100644 --- a/app/views/admins/project_licenses/index.html.erb +++ b/app/views/admins/project_licenses/index.html.erb @@ -8,7 +8,9 @@ <%= submit_tag('搜索', class: 'btn btn-primary ml-3', 'data-disable-with': '搜索中...') %> <% end %> + <% if current_user.admin? %> <%= link_to "新增", new_admins_project_license_path, remote: true, class: "btn btn-primary pull-right", "data-disabled-with":"...新增" %> + <% end %>