From 2cc314b8ba99eab5d454f79c1726793c87913350 Mon Sep 17 00:00:00 2001 From: hydarakb Date: Thu, 5 Feb 2026 21:33:14 +0500 Subject: [PATCH] Working --- app/views/templates_dashboard/index.html.erb | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/app/views/templates_dashboard/index.html.erb b/app/views/templates_dashboard/index.html.erb index 649b86bb..e93c0f2b 100644 --- a/app/views/templates_dashboard/index.html.erb +++ b/app/views/templates_dashboard/index.html.erb @@ -26,7 +26,15 @@ <% if params[:q].present? || @pagy.pages > 1 || @template_folders.present? %> <%= render 'shared/search_input' %> <% end %> - + <% if can?(:create, ::Template) %> + + <%= link_to new_template_path, class: 'white-button !border gap-2', data: { turbo_frame: :modal } do %> + <%= svg_icon('plus', class: 'w-6 h-6 stroke-2') %> + + <% end %> + <% end %> <% view_archived_html = capture do %>