From c0a4bb6b51192c82b2c16ed10291148212eccc78 Mon Sep 17 00:00:00 2001 From: chiu Date: Fri, 17 Sep 2021 14:20:02 +0800 Subject: [PATCH] fix error --- app/views/admin/event_news/_index.html.erb | 5 +++-- app/views/admin/event_news/index.html.erb | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/views/admin/event_news/_index.html.erb b/app/views/admin/event_news/_index.html.erb index f8ea6c0..65f3d34 100644 --- a/app/views/admin/event_news/_index.html.erb +++ b/app/views/admin/event_news/_index.html.erb @@ -93,6 +93,7 @@ <%= content_tag :div, class: "bottomnav clearfix" do - content_tag :div, paginate(@event_news), class: "pagination pagination-centered" + content_tag(:div, paginate(@bulletins), class: "pagination pagination-centered") + + content_tag(:div, link_to(t(:new_),new_event_news_path, :class=>"btn btn-primary"), class: "pull-right") end -%> \ No newline at end of file +%> diff --git a/app/views/admin/event_news/index.html.erb b/app/views/admin/event_news/index.html.erb index bc59a0e..e4d5d13 100644 --- a/app/views/admin/event_news/index.html.erb +++ b/app/views/admin/event_news/index.html.erb @@ -5,7 +5,7 @@ <%= render 'layouts/delete_modal', delete_options: @delete_options %> -<% if EventNewsSetting.is_pro? && user_can_approve? %> +<% if user_can_approve? %> <%= render :partial=> "approval_modal" %>