+ The app + <%= 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 %> + <% end %> +
+ + <%= form_with(url: rs_oauth_path, method: :post, data: { turbo: false }) do |f| %> + <%= f.hidden_field :redirect_uri, value: @redirect_uri %> + <%= f.hidden_field :scope, value: @scopes.join(" ") %> + <%= f.hidden_field :user_id, value: @user.id %> + <%= f.hidden_field :client_id, value: @client_id %> + <%= f.hidden_field :state, value: @state %> ++ <%= f.label :expire_at, "Expire:" %> + <%= f.select :expire_at, options_for_select(@expire_at_dates) %> +
++ You can revoke access for this app at any time on your storage dashboard. +
+