From 0d6b3a472b25a34258b3e1140a91fbedc9b8bab4 Mon Sep 17 00:00:00 2001 From: Bohung Date: Fri, 11 Jun 2021 12:24:41 +0800 Subject: [PATCH] Add new button to index page. --- app/views/admin/web_resources/_index.html.erb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/views/admin/web_resources/_index.html.erb b/app/views/admin/web_resources/_index.html.erb index 207aedc..2b31329 100644 --- a/app/views/admin/web_resources/_index.html.erb +++ b/app/views/admin/web_resources/_index.html.erb @@ -28,6 +28,7 @@ <%= content_tag :div, class: "bottomnav clearfix" do - content_tag :div, paginate(@links), class: "pagination pagination-centered" + content_tag(:div, paginate(@links), class: "pagination pagination-centered") + + content_tag(:div, link_to(t(:new_),new_admin_web_resource_path, :class=>"btn btn-primary"), class: "pull-right") end %> \ No newline at end of file