[auth] UI changes

This commit is contained in:
bodnia
2016-03-11 19:02:56 +02:00
parent e08b7be581
commit 1e38c8999b
20 changed files with 1583 additions and 7493 deletions

27
dist/css/print.css vendored
View File

@@ -184,6 +184,7 @@
.swagger-section .swagger-ui-wrap { .swagger-section .swagger-ui-wrap {
line-height: 1; line-height: 1;
font-family: "Droid Sans", sans-serif; font-family: "Droid Sans", sans-serif;
min-width: 760px;
max-width: 960px; max-width: 960px;
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
@@ -1180,20 +1181,25 @@
} }
.swagger-section .oauth_submit { .swagger-section .oauth_submit {
text-align: center; text-align: center;
display: inline-block;
} }
.swagger-section .authorize-wrapper { .swagger-section .authorize-wrapper {
margin: 15px 0 10px; margin: 15px 0 10px;
} }
.swagger-section .authorize-wrapper_operation {
float: right;
}
.swagger-section .authorize__btn:hover { .swagger-section .authorize__btn:hover {
text-decoration: underline; text-decoration: underline;
cursor: pointer; cursor: pointer;
} }
.swagger-section #auth_container { .swagger-section #auth_container {
color: #fff; color: #fff;
width: 190px; display: inline-block;
float: left;
border: none; border: none;
padding: 5px; padding: 5px;
width: 87px;
height: 13px;
} }
.swagger-section #auth_container .authorize__btn { .swagger-section #auth_container .authorize__btn {
color: #fff; color: #fff;
@@ -1207,20 +1213,17 @@
color: #547f00; color: #547f00;
font-size: 1.2em; font-size: 1.2em;
} }
.swagger-section .auth_container .basic_auth__label {
display: inline-block;
width: 60px;
}
.swagger-section .auth_container .auth__description { .swagger-section .auth_container .auth__description {
color: #999999; color: #999999;
margin-bottom: 5px; margin-bottom: 5px;
} }
.swagger-section .auth_container .auth_submit__button, .swagger-section .auth_container .auth__button {
.swagger-section .auth_container .auth_logout__button { margin-top: 10px;
color: #547f00; height: 30px;
border: none;
text-decoration: underline;
background: none;
padding-left: 0;
font-size: 1em;
cursor: pointer;
outline: none;
} }
.swagger-section .auth_container .basic_auth_container { .swagger-section .auth_container .basic_auth_container {
font-size: 0.9em; font-size: 0.9em;

50
dist/css/screen.css vendored
View File

@@ -184,6 +184,7 @@
.swagger-section .swagger-ui-wrap { .swagger-section .swagger-ui-wrap {
line-height: 1; line-height: 1;
font-family: "Droid Sans", sans-serif; font-family: "Droid Sans", sans-serif;
min-width: 760px;
max-width: 960px; max-width: 960px;
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
@@ -1180,20 +1181,25 @@
} }
.swagger-section .oauth_submit { .swagger-section .oauth_submit {
text-align: center; text-align: center;
display: inline-block;
} }
.swagger-section .authorize-wrapper { .swagger-section .authorize-wrapper {
margin: 15px 0 10px; margin: 15px 0 10px;
} }
.swagger-section .authorize-wrapper_operation {
float: right;
}
.swagger-section .authorize__btn:hover { .swagger-section .authorize__btn:hover {
text-decoration: underline; text-decoration: underline;
cursor: pointer; cursor: pointer;
} }
.swagger-section #auth_container { .swagger-section #auth_container {
color: #fff; color: #fff;
width: 190px; display: inline-block;
float: left;
border: none; border: none;
padding: 5px; padding: 5px;
width: 87px;
height: 13px;
} }
.swagger-section #auth_container .authorize__btn { .swagger-section #auth_container .authorize__btn {
color: #fff; color: #fff;
@@ -1207,20 +1213,17 @@
color: #547f00; color: #547f00;
font-size: 1.2em; font-size: 1.2em;
} }
.swagger-section .auth_container .basic_auth__label {
display: inline-block;
width: 60px;
}
.swagger-section .auth_container .auth__description { .swagger-section .auth_container .auth__description {
color: #999999; color: #999999;
margin-bottom: 5px; margin-bottom: 5px;
} }
.swagger-section .auth_container .auth_submit__button, .swagger-section .auth_container .auth__button {
.swagger-section .auth_container .auth_logout__button { margin-top: 10px;
color: #547f00; height: 30px;
border: none;
text-decoration: underline;
background: none;
padding-left: 0;
font-size: 1em;
cursor: pointer;
outline: none;
} }
.swagger-section .auth_container .basic_auth_container { .swagger-section .auth_container .basic_auth_container {
font-size: 0.9em; font-size: 0.9em;
@@ -1345,7 +1348,8 @@
} }
.swagger-section #header { .swagger-section #header {
background-color: #89bf04; background-color: #89bf04;
padding: 14px; padding: 9px 14px 19px 14px;
height: 23px;
} }
.swagger-section #input_baseUrl { .swagger-section #input_baseUrl {
width: 400px; width: 400px;
@@ -1356,9 +1360,8 @@
float: right; float: right;
} }
.swagger-section #api_selector .input { .swagger-section #api_selector .input {
display: block; display: inline-block;
clear: none; clear: none;
float: left;
margin: 0 10px 0 0; margin: 0 10px 0 0;
} }
.swagger-section #api_selector input { .swagger-section #api_selector input {
@@ -1369,7 +1372,8 @@
.swagger-section #input_apiKey { .swagger-section #input_apiKey {
width: 200px; width: 200px;
} }
.swagger-section #explore { .swagger-section #explore,
.swagger-section #auth_container .authorize__btn {
display: block; display: block;
text-decoration: none; text-decoration: none;
font-weight: bold; font-weight: bold;
@@ -1384,17 +1388,25 @@
-khtml-border-radius: 4px; -khtml-border-radius: 4px;
border-radius: 4px; border-radius: 4px;
} }
.swagger-section #explore:hover { .swagger-section #explore:hover,
.swagger-section #auth_container .authorize__btn:hover {
background-color: #547f00; background-color: #547f00;
} }
.swagger-section #header #logo { .swagger-section #header #logo {
font-size: 1.5em; font-size: 1.5em;
font-weight: bold; font-weight: bold;
text-decoration: none; text-decoration: none;
background: transparent url(../images/logo_small.png) no-repeat left center;
padding: 20px 0 20px 40px;
color: white; color: white;
} }
.swagger-section #header #logo .logo__img {
display: block;
float: left;
margin-top: 2px;
}
.swagger-section #header #logo .logo__title {
display: inline-block;
padding: 5px 0 0 10px;
}
.swagger-section #content_message { .swagger-section #content_message {
margin: 10px 15px; margin: 10px 15px;
font-style: italic; font-style: italic;

4
dist/index.html vendored
View File

@@ -110,11 +110,11 @@
<body class="swagger-section"> <body class="swagger-section">
<div id='header'> <div id='header'>
<div class="swagger-ui-wrap"> <div class="swagger-ui-wrap">
<a id="logo" href="http://swagger.io">swagger</a> <a id="logo" href="http://swagger.io"><img class="logo__img" alt="swagger" height="30" width="30" src="images/logo_small.png" /><span class="logo__title">swagger</span></a>
<form id='api_selector'> <form id='api_selector'>
<div class='input'><input placeholder="http://example.com/api" id="input_baseUrl" name="baseUrl" type="text"/></div> <div class='input'><input placeholder="http://example.com/api" id="input_baseUrl" name="baseUrl" type="text"/></div>
<div id='auth_container'></div> <div id='auth_container'></div>
<div class='input'><a id="explore" href="#" data-sw-translate>Explore</a></div> <div class='input'><a id="explore" class="header__btn" href="#" data-sw-translate>Explore</a></div>
</form> </form>
</div> </div>
</div> </div>

8638
dist/swagger-ui.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -184,6 +184,7 @@
.swagger-section .swagger-ui-wrap { .swagger-section .swagger-ui-wrap {
line-height: 1; line-height: 1;
font-family: "Droid Sans", sans-serif; font-family: "Droid Sans", sans-serif;
min-width: 760px;
max-width: 960px; max-width: 960px;
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
@@ -1180,20 +1181,25 @@
} }
.swagger-section .oauth_submit { .swagger-section .oauth_submit {
text-align: center; text-align: center;
display: inline-block;
} }
.swagger-section .authorize-wrapper { .swagger-section .authorize-wrapper {
margin: 15px 0 10px; margin: 15px 0 10px;
} }
.swagger-section .authorize-wrapper_operation {
float: right;
}
.swagger-section .authorize__btn:hover { .swagger-section .authorize__btn:hover {
text-decoration: underline; text-decoration: underline;
cursor: pointer; cursor: pointer;
} }
.swagger-section #auth_container { .swagger-section #auth_container {
color: #fff; color: #fff;
width: 190px; display: inline-block;
float: left;
border: none; border: none;
padding: 5px; padding: 5px;
width: 87px;
height: 13px;
} }
.swagger-section #auth_container .authorize__btn { .swagger-section #auth_container .authorize__btn {
color: #fff; color: #fff;
@@ -1207,20 +1213,17 @@
color: #547f00; color: #547f00;
font-size: 1.2em; font-size: 1.2em;
} }
.swagger-section .auth_container .basic_auth__label {
display: inline-block;
width: 60px;
}
.swagger-section .auth_container .auth__description { .swagger-section .auth_container .auth__description {
color: #999999; color: #999999;
margin-bottom: 5px; margin-bottom: 5px;
} }
.swagger-section .auth_container .auth_submit__button, .swagger-section .auth_container .auth__button {
.swagger-section .auth_container .auth_logout__button { margin-top: 10px;
color: #547f00; height: 30px;
border: none;
text-decoration: underline;
background: none;
padding-left: 0;
font-size: 1em;
cursor: pointer;
outline: none;
} }
.swagger-section .auth_container .basic_auth_container { .swagger-section .auth_container .basic_auth_container {
font-size: 0.9em; font-size: 0.9em;

View File

@@ -184,6 +184,7 @@
.swagger-section .swagger-ui-wrap { .swagger-section .swagger-ui-wrap {
line-height: 1; line-height: 1;
font-family: "Droid Sans", sans-serif; font-family: "Droid Sans", sans-serif;
min-width: 760px;
max-width: 960px; max-width: 960px;
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
@@ -1180,20 +1181,25 @@
} }
.swagger-section .oauth_submit { .swagger-section .oauth_submit {
text-align: center; text-align: center;
display: inline-block;
} }
.swagger-section .authorize-wrapper { .swagger-section .authorize-wrapper {
margin: 15px 0 10px; margin: 15px 0 10px;
} }
.swagger-section .authorize-wrapper_operation {
float: right;
}
.swagger-section .authorize__btn:hover { .swagger-section .authorize__btn:hover {
text-decoration: underline; text-decoration: underline;
cursor: pointer; cursor: pointer;
} }
.swagger-section #auth_container { .swagger-section #auth_container {
color: #fff; color: #fff;
width: 190px; display: inline-block;
float: left;
border: none; border: none;
padding: 5px; padding: 5px;
width: 87px;
height: 13px;
} }
.swagger-section #auth_container .authorize__btn { .swagger-section #auth_container .authorize__btn {
color: #fff; color: #fff;
@@ -1207,20 +1213,17 @@
color: #547f00; color: #547f00;
font-size: 1.2em; font-size: 1.2em;
} }
.swagger-section .auth_container .basic_auth__label {
display: inline-block;
width: 60px;
}
.swagger-section .auth_container .auth__description { .swagger-section .auth_container .auth__description {
color: #999999; color: #999999;
margin-bottom: 5px; margin-bottom: 5px;
} }
.swagger-section .auth_container .auth_submit__button, .swagger-section .auth_container .auth__button {
.swagger-section .auth_container .auth_logout__button { margin-top: 10px;
color: #547f00; height: 30px;
border: none;
text-decoration: underline;
background: none;
padding-left: 0;
font-size: 1em;
cursor: pointer;
outline: none;
} }
.swagger-section .auth_container .basic_auth_container { .swagger-section .auth_container .basic_auth_container {
font-size: 0.9em; font-size: 0.9em;
@@ -1345,7 +1348,8 @@
} }
.swagger-section #header { .swagger-section #header {
background-color: #89bf04; background-color: #89bf04;
padding: 14px; padding: 9px 14px 19px 14px;
height: 23px;
} }
.swagger-section #input_baseUrl { .swagger-section #input_baseUrl {
width: 400px; width: 400px;
@@ -1356,9 +1360,8 @@
float: right; float: right;
} }
.swagger-section #api_selector .input { .swagger-section #api_selector .input {
display: block; display: inline-block;
clear: none; clear: none;
float: left;
margin: 0 10px 0 0; margin: 0 10px 0 0;
} }
.swagger-section #api_selector input { .swagger-section #api_selector input {
@@ -1369,7 +1372,8 @@
.swagger-section #input_apiKey { .swagger-section #input_apiKey {
width: 200px; width: 200px;
} }
.swagger-section #explore { .swagger-section #explore,
.swagger-section #auth_container .authorize__btn {
display: block; display: block;
text-decoration: none; text-decoration: none;
font-weight: bold; font-weight: bold;
@@ -1384,17 +1388,25 @@
-khtml-border-radius: 4px; -khtml-border-radius: 4px;
border-radius: 4px; border-radius: 4px;
} }
.swagger-section #explore:hover { .swagger-section #explore:hover,
.swagger-section #auth_container .authorize__btn:hover {
background-color: #547f00; background-color: #547f00;
} }
.swagger-section #header #logo { .swagger-section #header #logo {
font-size: 1.5em; font-size: 1.5em;
font-weight: bold; font-weight: bold;
text-decoration: none; text-decoration: none;
background: transparent url(../images/logo_small.png) no-repeat left center;
padding: 20px 0 20px 40px;
color: white; color: white;
} }
.swagger-section #header #logo .logo__img {
display: block;
float: left;
margin-top: 2px;
}
.swagger-section #header #logo .logo__title {
display: inline-block;
padding: 5px 0 0 10px;
}
.swagger-section #content_message { .swagger-section #content_message {
margin: 10px 15px; margin: 10px 15px;
font-style: italic; font-style: italic;

View File

@@ -110,11 +110,11 @@
<body class="swagger-section"> <body class="swagger-section">
<div id='header'> <div id='header'>
<div class="swagger-ui-wrap"> <div class="swagger-ui-wrap">
<a id="logo" href="http://swagger.io">swagger</a> <a id="logo" href="http://swagger.io"><img class="logo__img" alt="swagger" height="30" width="30" src="images/logo_small.png" /><span class="logo__title">swagger</span></a>
<form id='api_selector'> <form id='api_selector'>
<div class='input'><input placeholder="http://example.com/api" id="input_baseUrl" name="baseUrl" type="text"/></div> <div class='input'><input placeholder="http://example.com/api" id="input_baseUrl" name="baseUrl" type="text"/></div>
<div id='auth_container'></div> <div id='auth_container'></div>
<div class='input'><a id="explore" href="#" data-sw-translate>Explore</a></div> <div class='input'><a id="explore" class="header__btn" href="#" data-sw-translate>Explore</a></div>
</form> </form>
</div> </div>
</div> </div>

View File

@@ -137,7 +137,6 @@ window.SwaggerUi = Backbone.Router.extend({
// This is bound to success handler for SwaggerApi // This is bound to success handler for SwaggerApi
// so it gets called when SwaggerApi completes loading // so it gets called when SwaggerApi completes loading
render: function(){ render: function(){
var authsModel;
this.showMessage('Finished Loading Resource Information. Rendering Swagger UI...'); this.showMessage('Finished Loading Resource Information. Rendering Swagger UI...');
this.mainView = new SwaggerUi.Views.MainView({ this.mainView = new SwaggerUi.Views.MainView({
model: this.api, model: this.api,
@@ -145,14 +144,9 @@ window.SwaggerUi = Backbone.Router.extend({
swaggerOptions: this.options, swaggerOptions: this.options,
router: this router: this
}).render(); }).render();
if (!_.isEmpty(this.api.securityDefinitions)){ if (!_.isEmpty(this.api.security)){
authsModel = _.map(this.api.securityDefinitions, function (auth, name) {
var result = {};
result[name] = auth;
return result;
});
this.authView = new SwaggerUi.Views.AuthButtonView({ this.authView = new SwaggerUi.Views.AuthButtonView({
data: SwaggerUi.utils.parseSecurityDefinitions(authsModel), data: SwaggerUi.utils.parseSecurityDefinitions(this.api.security),
router: this router: this
}); });
$('#auth_container').append(this.authView.render().el); $('#auth_container').append(this.authView.render().el);

View File

@@ -7,18 +7,22 @@ SwaggerUi.Views.AuthButtonView = Backbone.View.extend({
tpls: { tpls: {
popup: Handlebars.templates.popup, popup: Handlebars.templates.popup,
authBtn: Handlebars.templates.auth_button authBtn: Handlebars.templates.auth_button,
authBtnOperation: Handlebars.templates.auth_button_operation
}, },
initialize: function(opts) { initialize: function(opts) {
this.options = opts || {}; this.options = opts || {};
this.options.data = this.options.data || {}; this.options.data = this.options.data || {};
this.isOperation = this.options.isOperation;
this.router = this.options.router; this.router = this.options.router;
this.auths = this.options.data.oauth2.concat(this.options.data.auths); this.auths = this.options.data.oauth2.concat(this.options.data.auths);
}, },
render: function () { render: function () {
this.$el.html(this.tpls.authBtn(this.model)); var tplName = this.isOperation ? 'authBtnOperation' : 'authBtn';
this.$el.html(this.tpls[tplName](this.model));
return this; return this;
}, },

View File

@@ -13,7 +13,7 @@
SwaggerUi.Views.AuthView = Backbone.View.extend({ SwaggerUi.Views.AuthView = Backbone.View.extend({
events: { events: {
'click .auth_submit_button': 'authorizeClick', 'click .auth_submit__button': 'authorizeClick',
'click .auth_logout__button': 'logoutClick' 'click .auth_logout__button': 'logoutClick'
}, },

View File

@@ -261,7 +261,7 @@ SwaggerUi.Views.OperationView = Backbone.View.extend({
var authsModel = SwaggerUi.utils.parseSecurityDefinitions(this.model.security); var authsModel = SwaggerUi.utils.parseSecurityDefinitions(this.model.security);
authsModel.isLogout = !_.isEmpty(window.swaggerUi.api.clientAuthorizations.authz); authsModel.isLogout = !_.isEmpty(window.swaggerUi.api.clientAuthorizations.authz);
this.authView = new SwaggerUi.Views.AuthButtonView({data: authsModel, router: this.router}); this.authView = new SwaggerUi.Views.AuthButtonView({data: authsModel, router: this.router, isOperation: true});
this.$('.authorize-wrapper').append(this.authView.render().el); this.$('.authorize-wrapper').append(this.authView.render().el);
} }

View File

@@ -17,12 +17,19 @@
margin-right: 100px; margin-right: 100px;
} }
.oauth_submit { text-align: center; } .oauth_submit {
text-align: center;
display: inline-block;
}
.authorize-wrapper { .authorize-wrapper {
margin: 15px 0 10px; margin: 15px 0 10px;
} }
.authorize-wrapper_operation {
float: right;
}
.authorize__btn { .authorize__btn {
&:hover { &:hover {
text-decoration: underline; text-decoration: underline;
@@ -32,10 +39,12 @@
#auth_container { #auth_container {
color: #fff; color: #fff;
width: 190px; display: inline-block;
float: left;
border: none; border: none;
padding: 5px; padding: 5px;
width: 87px;
height: 13px;
.authorize__btn { .authorize__btn {
color: #fff; color: #fff;
} }
@@ -51,20 +60,19 @@
font-size: 1.2em; font-size: 1.2em;
} }
.basic_auth__label {
display: inline-block;
width: 60px;
}
.auth__description { .auth__description {
color: #999999; color: #999999;
margin-bottom: 5px; margin-bottom: 5px;
} }
.auth_submit__button, .auth_logout__button { .auth__button {
color: #547f00; margin-top: 10px;
border: none; height: 30px;
text-decoration: underline;
background: none;
padding-left: 0;
font-size: 1em;
cursor: pointer;
outline: none;
} }
.basic_auth_container { .basic_auth_container {

View File

@@ -77,7 +77,8 @@
#header { #header {
background-color: #89bf04; background-color: #89bf04;
padding: 14px; padding: 9px 14px 19px 14px;
height: 23px;
} }
#input_baseUrl { width: 400px; } #input_baseUrl { width: 400px; }
@@ -89,9 +90,8 @@
} }
#api_selector .input { #api_selector .input {
display: block; display: inline-block;
clear: none; clear: none;
float: left;
margin: 0 10px 0 0; margin: 0 10px 0 0;
} }
@@ -103,7 +103,7 @@
#input_apiKey { width: 200px; } #input_apiKey { width: 200px; }
#explore { #explore, #auth_container .authorize__btn {
display: block; display: block;
text-decoration: none; text-decoration: none;
font-weight: bold; font-weight: bold;
@@ -125,9 +125,18 @@
font-size: 1.5em; font-size: 1.5em;
font-weight: bold; font-weight: bold;
text-decoration: none; text-decoration: none;
background: transparent url(../images/logo_small.png) no-repeat left center;
padding: 20px 0 20px 40px;
color: white; color: white;
.logo__img {
display: block;
float: left;
margin-top: 2px;
}
.logo__title {
display: inline-block;
padding: 5px 0 0 10px;
}
} }
#content_message { #content_message {

View File

@@ -4,6 +4,7 @@
line-height: 1; line-height: 1;
font-family: "Droid Sans", sans-serif; font-family: "Droid Sans", sans-serif;
min-width: 760px;
max-width: 960px; max-width: 960px;
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;

View File

@@ -1 +1 @@
<a class='authorize__btn'>Click to Authorize{{#if isLogout}}/Logout {{/if}}</a> <a class='authorize__btn' href="#">Authorize</a>

View File

@@ -0,0 +1,9 @@
<div class="authorize__btn authorize__btn_operation">
<span class="api-ic
{{#if isLogout}}
ic-info
{{else}}
ic-error
{{/if}}
"></span>
</div>

View File

@@ -1,8 +1,11 @@
<div class="auth_container"> <div class="auth_container">
<div class="auth_inner"></div> <div class="auth_inner"></div>
<div class="auth_submit"><a class="auth_submit_button" href="#" data-sw-translate>apply</a></div> <div class="auth_submit">
<button type="button" class="auth__button auth_submit__button" data-sw-translate>Authorize</button>
{{#if isLogout}} {{#if isLogout}}
<input type="button" class="auth_logout__button" value="logout"> <button type="button" class="auth__button auth_logout__button" data-sw-translate>Logout</button>
{{/if}} {{/if}}
</div>
</div> </div>

View File

@@ -3,10 +3,14 @@
{{#unless isLogout}} {{#unless isLogout}}
<form class="key_input_container"> <form class="key_input_container">
<div class="auth__description">{{description}}</div> <div class="auth__description">{{description}}</div>
<div class="auth_label"><label data-sw-translate>username</label></div> <div class="auth_label">
<span class="basic_auth__label" data-sw-translate>username:</span>
<input required placeholder="username" class="basic_auth__username auth_input" name="username" type="text"/> <input required placeholder="username" class="basic_auth__username auth_input" name="username" type="text"/>
<div class="auth_label"><label data-sw-translate>password</label></div> </div>
<input required placeholder="password" class="basic_auth__password auth_input" name="password" type="password"/> <div class="auth_label">
<span class="basic_auth__label" data-sw-translate>password:</span>
<input required placeholder="password" class="basic_auth__password auth_input" name="password" type="password"/></label>
</div>
</form> </form>
{{/unless}} {{/unless}}
</div> </div>

View File

@@ -24,24 +24,24 @@
<div class="markdown">{{{description}}}</div> <div class="markdown">{{{description}}}</div>
{{/if}} {{/if}}
{{#if security}} {{#if security}}
<div class='authorize-wrapper'></div> <div class='authorize-wrapper authorize-wrapper_operation'></div>
{{/if}} {{/if}}
{{#oauth}} {{!--{{#oauth}}--}}
<div class="auth"> {{!--<div class="auth">--}}
<span class="api-ic ic-error">{{/oauth}} {{!--<span class="api-ic ic-error">{{/oauth}}--}}
{{#each oauth}} {{!--{{#each oauth}}--}}
<div class="api_information_panel"> {{!--<div class="api_information_panel">--}}
{{#each this}} {{!--{{#each this}}--}}
<div title='{{{this.description}}}'>{{this.scope}}</div> {{!--<div title='{{{this.description}}}'>{{this.scope}}</div>--}}
{{/each}} {{!--{{/each}}--}}
</div> {{!--</div>--}}
{{/each}} {{!--{{/each}}--}}
{{#oauth}}</span></div>{{/oauth}} {{!--{{#oauth}}</span></div>{{/oauth}}--}}
{{#oauth}} {{!--{{#oauth}}--}}
<div class='access'> {{!--<div class='access'>--}}
<span class="api-ic ic-off" title="click to authenticate"></span> {{!--<span class="api-ic ic-off" title="click to authenticate"></span>--}}
</div> {{!--</div>--}}
{{/oauth}} {{!--{{/oauth}}--}}
{{#if type}} {{#if type}}
<div class="response-class"> <div class="response-class">
<h4><span data-sw-translate>Response Class</span> (<span data-sw-translate>Status</span> {{successCode}})</h4> <h4><span data-sw-translate>Response Class</span> (<span data-sw-translate>Status</span> {{successCode}})</h4>