From 1d34ede6029fb6f854ec6c2d0082baf685185998 Mon Sep 17 00:00:00 2001 From: Jack Pearkes Date: Fri, 22 Aug 2014 17:14:26 -0700 Subject: [PATCH] ui: mobile fixes for acl --- ui/index.html | 11 ++++++++--- ui/javascripts/app/controllers.js | 2 ++ ui/styles/_buttons.scss | 14 ++++++++++++++ ui/styles/base.scss | 14 -------------- 4 files changed, 24 insertions(+), 17 deletions(-) diff --git a/ui/index.html b/ui/index.html index dfb89f9a36..9d584a0432 100644 --- a/ui/index.html +++ b/ui/index.html @@ -43,8 +43,13 @@

Access Denied

-

Your ACL token, foobarbaz, does not + {{#if aclToken}} +

Your ACL token, {{aclToken}}, does not have the appropriate permissions to perform the expected action.

+ {{else}} +

The default agent token does not + have the appropriate permissions to perform the expected action.

+ {{/if}}

Learn more in the ACL documentation.

@@ -130,7 +135,7 @@ {{#link-to 'acls' class='btn btn-default col-xs-12'}}ACL{{/link-to}} -
+
{{model}} {{#if isDropdownVisible}} @@ -143,7 +148,7 @@
-
+
{{#link-to 'settings' class='btn btn-default col-xs-6 icon'}}{{/link-to}}
diff --git a/ui/javascripts/app/controllers.js b/ui/javascripts/app/controllers.js index e364bbd1d6..d14ebbc805 100644 --- a/ui/javascripts/app/controllers.js +++ b/ui/javascripts/app/controllers.js @@ -5,8 +5,10 @@ App.ApplicationController = Ember.ObjectController.extend({ }); App.DcController = Ember.Controller.extend({ + needs: ["application"], // Whether or not the dropdown menu can be seen isDropdownVisible: false, + aclToken: Ember.computed.alias("application.settings.token"), datacenter: function() { return this.get('content'); diff --git a/ui/styles/_buttons.scss b/ui/styles/_buttons.scss index 179c3a2b1e..2c4ad7c553 100644 --- a/ui/styles/_buttons.scss +++ b/ui/styles/_buttons.scss @@ -106,3 +106,17 @@ } } + +.topbar { + .btn.icon { + min-width: 50px; + font-size: 30px; + height: 33px; + padding: 0; + .wrap { + position: absolute; + top: -8px; + left: 14px; + } + } +} diff --git a/ui/styles/base.scss b/ui/styles/base.scss index 7a74a95f7e..10db88faae 100644 --- a/ui/styles/base.scss +++ b/ui/styles/base.scss @@ -99,20 +99,6 @@ a { background-color: $gray-background; } -.topbar { - .btn.icon { - min-width: 50px; - font-size: 30px; - height: 33px; - padding: 0; - .wrap { - position: absolute; - top: -8px; - left: 14px; - } - } -} - .action-bar { min-height: 50px; padding-top: 10px;