From 3a08041943a86934ba98f522ccbb4bf704eea764 Mon Sep 17 00:00:00 2001 From: "Dustin J. Mitchell" Date: Fri, 24 Apr 2015 14:00:15 -0700 Subject: [PATCH 1/2] disable, rather than hiding, the tokenauth Issue button --- relengapi/blueprints/tokenauth/static/tokens.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/relengapi/blueprints/tokenauth/static/tokens.html b/relengapi/blueprints/tokenauth/static/tokens.html index 5006c1a1..23006ae9 100644 --- a/relengapi/blueprints/tokenauth/static/tokens.html +++ b/relengapi/blueprints/tokenauth/static/tokens.html @@ -75,7 +75,7 @@

Issue New Token

From 59034f476f077d9368e21ce5b90d910f5a3aad1e Mon Sep 17 00:00:00 2001 From: "Dustin J. Mitchell" Date: Fri, 24 Apr 2015 16:08:50 -0700 Subject: [PATCH 2/2] display new tokens with a smaller font size --- relengapi/blueprints/tokenauth/__init__.py | 1 + relengapi/blueprints/tokenauth/static/tokens.css | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 relengapi/blueprints/tokenauth/static/tokens.css diff --git a/relengapi/blueprints/tokenauth/__init__.py b/relengapi/blueprints/tokenauth/__init__.py index 968fa9da..d42ad51d 100644 --- a/relengapi/blueprints/tokenauth/__init__.py +++ b/relengapi/blueprints/tokenauth/__init__.py @@ -124,6 +124,7 @@ def can_access_token(access, typ, user): def root(): return angular.template('tokens.html', url_for('.static', filename='tokens.js'), + url_for('.static', filename='tokens.css'), tokens=api.get_data(list_tokens)) diff --git a/relengapi/blueprints/tokenauth/static/tokens.css b/relengapi/blueprints/tokenauth/static/tokens.css new file mode 100644 index 00000000..b49aa844 --- /dev/null +++ b/relengapi/blueprints/tokenauth/static/tokens.css @@ -0,0 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +pre.token { + font-size: 80%; +}