Commit 3fb2d262 authored by augier's avatar augier Committed by theworldbright

Using entypo icon as default application image

parent 098e8e46
......@@ -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;
}
}
}
......@@ -57,4 +63,4 @@
display: inline-block;
float: right;
}
}
\ No newline at end of file
}
.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
= image_tag app[:image], class: "img-responsive"
- 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'
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment