- The app
+<%= render MainCompactComponent.new do %>
+
+ The app on
<%= link_to @client_id, "https://#{@client_id}", class: "ks-text-link" %>
is asking for access to these folders:
- <% if @root_access_requested %>
-
-
- <%= render partial: "icons/asterisk", locals: { custom_class: "inline-block align-middle mb-1" } %>
- All files and directories
-
- <% if (@scopes & [":r"]).any? %>
- (read only)
- <% end %>
-
- <% else %>
- <% @scopes.each do |scope| %>
-
-
- <%= render partial: "icons/folder", locals: { custom_class: "inline-block align-middle mb-2" } %>
- <%= scope_name(scope) %>
-
- <% if scope_permissions(scope) == "r" %>
- (read only)
- <% end %>
-
- <% end %>
+ <% if @root_access_requested %>
+
+
+ <%= render partial: "icons/alert-triangle",
+ locals: { custom_class: "inline-block align-bottom mr-1.5" } %>
+ All files and directories
+
+ <% if (@scopes & [":r"]).any? %>
+ (read only)
<% end %>
+
+ <%= render partial: "icons/folder",
+ locals: { custom_class: "inline-block align-bottom mr-1.5" } %>
+ <%= scope_name(scope) %>
+
+ <% if scope_permissions(scope) == "r" %>
+ (read only)
+ <% end %>
+
- <%= f.label :expire_at, "Expire:" %>
+
+ <%= f.label :expire_at, "Permission expires:", class: "mr-1.5" %>
<%= f.select :expire_at, options_for_select(@expire_at_dates) %>
+
You can revoke access for this app at any time on your storage dashboard.
+ <%= f.submit "Allow",
+ class: "btn-md btn-blue w-full sm:order-last sm:grow",
+ data: { disable_with: "Saving..." } %>
+ <%= link_to "Deny", @denial_url, class: "btn-md btn-gray text-red-700 w-full sm:grow" %>