45 lines
1.2 KiB
Text
45 lines
1.2 KiB
Text
#popup-contents
|
|
%h4
|
|
= "#{@client.name} is requesting access to your account"
|
|
|
|
#popup-content-left
|
|
%ul#requested-scopes
|
|
- @requested_scopes.each do |scope|
|
|
- if scope == "name"
|
|
%li
|
|
.scope-photo
|
|
= owner_image_tag
|
|
|
|
%strong
|
|
Basic Info
|
|
%br
|
|
Cubbies will be able to see your name, profile photo, and other basic profile information.
|
|
|
|
- elsif scope = "AS_photo:post"
|
|
%li
|
|
.scope-photo
|
|
= image_tag('/images/icons/photo.svg')
|
|
|
|
%strong
|
|
Your Photos
|
|
%br
|
|
Cubbies will be able to post photos on your behalf
|
|
|
|
|
|
|
|
|
|
= form_for :authorization,
|
|
:url => oauth_authorize_path(params.slice(:redirect_uri, :client_id, :client_secret)) do |form|
|
|
%br
|
|
%p
|
|
= form.submit "Fuck Yeah!", :value => "Authorize", :class => 'button'
|
|
= form.submit "Hell No.", :value => "No", :class => 'button'
|
|
|
|
|
|
#popup-content-right
|
|
= image_tag(@client.icon_url, :id => 'client-application-image')
|
|
%br
|
|
%strong
|
|
= @client.name
|
|
.description
|
|
= @client.description
|