From ca0ee268abcb6fc8663e454e13f3d9c05f6c3562 Mon Sep 17 00:00:00 2001 From: nccu Date: Wed, 25 Mar 2015 16:34:18 +0800 Subject: [PATCH] adjust submanage priv --- app/views/admin/news/_form.html.erb | 4 ++-- app/views/admin/news/_index.html.erb | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/app/views/admin/news/_form.html.erb b/app/views/admin/news/_form.html.erb index 08acfb9..d074ef2 100644 --- a/app/views/admin/news/_form.html.erb +++ b/app/views/admin/news/_form.html.erb @@ -157,7 +157,7 @@
※<%= t("news.image_note")%>
- ※如何裁剪新聞刊頭圖片 + ※如何裁剪新聞封面圖片
@@ -228,7 +228,7 @@
※內文裡單一圖片尺寸的最大寬度600px(滿版),如圖片要縮小,請依比例調整。
- ※如何剪裁新聞圖片。 + ※如何剪裁新聞圖片。
<%= f.fields_for :text_translations do |f| %> diff --git a/app/views/admin/news/_index.html.erb b/app/views/admin/news/_index.html.erb index a6a4d37..174f2ba 100644 --- a/app/views/admin/news/_index.html.erb +++ b/app/views/admin/news/_index.html.erb @@ -66,6 +66,11 @@ <% if current_user.is_admin? || current_user.is_manager?(@module_app) %>
  • <%= t(:edit) %>
  • <%= t(:delete_) %>
  • + <% elsif is_user_sub_manager? %> + <% if !b.rejected && !b.approved %> +
  • <%= t(:edit) %>
  • + <% end %> +
  • <%= t(:delete_) %>
  • <% else %> <% if !b.rejected && !b.approved %>
  • <%= t(:edit) %>