Using entypo icon as default application image
This commit is contained in:
parent
098e8e46dd
commit
3fb2d262b8
6 changed files with 41 additions and 22 deletions
|
|
@ -30,24 +30,30 @@
|
|||
}
|
||||
}
|
||||
|
||||
#blocked_people {
|
||||
.blocked_person {
|
||||
border-bottom: 1px solid $border-grey;
|
||||
margin-top: 0;
|
||||
.avatar { max-width: 35px; }
|
||||
.info { color: $text; }
|
||||
}
|
||||
.applications-page {
|
||||
.applications-explenation {
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
.applications-page {
|
||||
.application-img {
|
||||
display: inline;
|
||||
padding: 9px 0;
|
||||
float: left;
|
||||
text-align: center;
|
||||
|
||||
img {
|
||||
&, img {
|
||||
width: 70px;
|
||||
max-height: 70px;
|
||||
margin: 9px 0;
|
||||
}
|
||||
|
||||
[class^="entypo-"] {
|
||||
font-size: 60px;
|
||||
height: 0;
|
||||
width: 100%;
|
||||
&::before {
|
||||
position: relative;
|
||||
top: -15px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,12 +1,27 @@
|
|||
.applications-page {
|
||||
.applications-explenation {
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
.application-img {
|
||||
display: inline;
|
||||
padding: 9px 0;
|
||||
float: left;
|
||||
text-align: center;
|
||||
|
||||
img {
|
||||
&, img {
|
||||
width: 70px;
|
||||
max-height: 70px;
|
||||
margin: 9px 0;
|
||||
}
|
||||
|
||||
[class^="entypo-"] {
|
||||
font-size: 60px;
|
||||
height: 0;
|
||||
width: 100%;
|
||||
&::before {
|
||||
position: relative;
|
||||
top: -15px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -19,10 +19,6 @@ module Api
|
|||
self.client_secret = SecureRandom.hex(32)
|
||||
end
|
||||
|
||||
def image_uri
|
||||
logo_uri ? logo_uri : "branding/logos/asterisk.png"
|
||||
end
|
||||
|
||||
class << self
|
||||
def available_response_types
|
||||
["id_token", "id_token token", "code"]
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ class UserApplicationsPresenter
|
|||
{
|
||||
id: find_id(application),
|
||||
name: application.client_name,
|
||||
image: application.image_uri,
|
||||
image: application.logo_uri,
|
||||
authorizations: find_scopes(application)
|
||||
}
|
||||
end
|
||||
|
|
|
|||
|
|
@ -3,7 +3,10 @@
|
|||
- @user_apps.user_applications.each do |app|
|
||||
%li.list-group-item
|
||||
.application-img
|
||||
- if app[:image]
|
||||
= image_tag app[:image], class: "img-responsive"
|
||||
- else
|
||||
%i.entypo-browser
|
||||
.application-authorizations
|
||||
- if app[:authorizations].count > 0
|
||||
%h4="#{app[:name]} #{t("user_applications.index.access")}"
|
||||
|
|
|
|||
|
|
@ -6,9 +6,8 @@
|
|||
|
||||
.container-fluid
|
||||
.row
|
||||
.col-md-12
|
||||
.col-md-12.applications-explenation
|
||||
= t('.applications_explanation')
|
||||
.small-horizontal-spacer
|
||||
.col-md-12
|
||||
= render 'add_remove_applications'
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue