-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html.erb
23 lines (22 loc) · 1.09 KB
/
index.html.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<%= turbo_refreshes_with method: :morph, scroll: :preserve %>
<%= turbo_frame_tag "token_dialog" %>
<%= render Viral::PageHeaderComponent.new(title: t('.title'), subtitle: t('.subtitle')) do |component| %>
<%= component.with_icon(name: "users", classes: "h-14 w-14 text-primary-700") %>
<% if allowed_to?(:create_bot_accounts?, @namespace) %>
<%= component.with_buttons do %>
<%= link_to t(".add_new_bot"),
new_namespace_project_bot_path(@namespace.parent, @namespace.project),
data: {
turbo_frame: "bot_modal",
turbo_stream: true,
},
class:
"inline-flex items-center justify-center text-sm border rounded-md cursor-pointer sm:w-auto focus:z-10 focus:outline-none text-white bg-primary-700 hover:bg-primary-800 focus:ring-0 rounded-md px-5 py-3 dark:text-white dark:bg-primary-600 dark:hover:bg-primary-700 dark:border-primary-900 dark:hover:bg-primary-700" %>
<% end %>
<% end %>
<% end %>
<div class="flex flex-col">
<%= turbo_frame_tag "bot_modal" %>
<%= turbo_frame_tag "access-token-section" %>
<%= render partial: "table" %>
</div>