Commit 098e8e46 authored by augier's avatar augier Committed by Kent Shikama

CSS for applications settings page

parent 469521c5
......@@ -101,3 +101,7 @@
/* gallery */
@import "blueimp-gallery";
@import "gallery";
/* settings */
@import "user_applications";
@import "bootstrap3-switch";
\ No newline at end of file
......@@ -40,5 +40,21 @@
}
.applications-page {
.application-img { margin: 9px 0; }
.application-img {
display: inline;
float: left;
img {
width: 70px;
max-height: 70px;
margin: 9px 0;
}
}
.application-authorizations {
width: calc(100% - 70px);
padding: 0 0 15px 15px;
display: inline-block;
float: right;
}
}
\ No newline at end of file
.applications-page {
.application-img {
display: inline;
float: left;
img {
width: 70px;
max-height: 70px;
margin: 9px 0;
}
}
.application-authorizations {
width: calc(100% - 70px);
padding: 0 0 15px 15px;
display: inline-block;
float: right;
}
}
......@@ -2,25 +2,22 @@
%ul.list-group
- @user_apps.user_applications.each do |app|
%li.list-group-item
.row
.col-xs-2.application-img
= image_tag app[:image], class: "img-responsive"
.col-xs-10
- if app[:authorizations].count > 0
%h4="#{app[:name]} #{t("user_applications.index.access")}"
%ul
- app[:authorizations].each do |authorization|
%li
%b= t("user_applications.scopes.#{authorization}.name")
%p= t("user_applications.scopes.#{authorization}.description")
- else
.well
=t("user_applications.show.no_requirement")
.small-horizontal-spacer
.row
= form_for "application", url: "#{api_openid_connect_authorizations_path}/#{app[:id]}",
html: { method: :delete, class: "form-horizontal col-xs-12"} do |f|
.clearfix= f.submit t("user_applications.revoke_autorization"), class: "btn btn-primary pull-right"
.application-img
= image_tag app[:image], class: "img-responsive"
.application-authorizations
- if app[:authorizations].count > 0
%h4="#{app[:name]} #{t("user_applications.index.access")}"
%ul
- app[:authorizations].each do |authorization|
%li
%b= t("user_applications.scopes.#{authorization}.name")
%p= t("user_applications.scopes.#{authorization}.description")
- else
.well
=t("user_applications.show.no_requirement")
= form_for "application", url: "#{api_openid_connect_authorizations_path}/#{app[:id]}",
html: { method: :delete, class: "form-horizontal"} do |f|
.clearfix= f.submit t("user_applications.revoke_autorization"), class: "btn btn-primary pull-right"
- else
.well
......
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