Merge pull request #1953 from charltonaustin/add_motd_cisco
Add motd cisco
This commit is contained in:
commit
343d293001
6 changed files with 23 additions and 2 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -11,3 +11,4 @@ static/fonts
|
||||||
stack_local
|
stack_local
|
||||||
test/data/registry/
|
test/data/registry/
|
||||||
GIT_HEAD
|
GIT_HEAD
|
||||||
|
.idea
|
||||||
|
|
1
app.py
1
app.py
|
@ -35,7 +35,6 @@ from util.security.signing import Signer
|
||||||
from util.security.instancekeys import InstanceKeys
|
from util.security.instancekeys import InstanceKeys
|
||||||
from util.saas.cloudwatch import start_cloudwatch_sender
|
from util.saas.cloudwatch import start_cloudwatch_sender
|
||||||
from util.config.provider import get_config_provider
|
from util.config.provider import get_config_provider
|
||||||
from util.config.provider.baseprovider import SetupIncompleteException
|
|
||||||
from util.config.configutil import generate_secret_key
|
from util.config.configutil import generate_secret_key
|
||||||
from util.config.superusermanager import SuperUserManager
|
from util.config.superusermanager import SuperUserManager
|
||||||
from util.secscan.api import SecurityScannerAPI
|
from util.secscan.api import SecurityScannerAPI
|
||||||
|
|
|
@ -382,4 +382,3 @@ class DefaultConfig(object):
|
||||||
|
|
||||||
# Overridable list of reverse DNS prefixes that are reserved for internal use on labels.
|
# Overridable list of reverse DNS prefixes that are reserved for internal use on labels.
|
||||||
LABEL_KEY_RESERVED_PREFIXES = []
|
LABEL_KEY_RESERVED_PREFIXES = []
|
||||||
|
|
||||||
|
|
5
static/directives/quay-message-bar.html
Normal file
5
static/directives/quay-message-bar.html
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
<div class="announcement inline" ng-show="messages.length">
|
||||||
|
<div ng-repeat="message in messages">
|
||||||
|
<a ng-href="" class="quay-service-status-description">{{ message.content }}</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
16
static/js/directives/quay-message-bar.js
Normal file
16
static/js/directives/quay-message-bar.js
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
/**
|
||||||
|
* An element which displays a message for users to read.
|
||||||
|
*/
|
||||||
|
angular.module('quay').directive('quayMessageBar', function () {
|
||||||
|
return {
|
||||||
|
priority: 0,
|
||||||
|
templateUrl: '/static/directives/quay-message-bar.html',
|
||||||
|
replace: false,
|
||||||
|
transclude: false,
|
||||||
|
restrict: 'C',
|
||||||
|
scope: {},
|
||||||
|
controller: function ($scope, $element, ApiService) {
|
||||||
|
$scope.messages = [];
|
||||||
|
}
|
||||||
|
};
|
||||||
|
});
|
|
@ -229,6 +229,7 @@ mixpanel.init("{{ mixpanel_key }}", { track_pageview : false, debug: {{ is_debug
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<nav class="navbar navbar-default header-bar co-m-navbar co-fx-box-shadow" role="navigation"></nav>
|
<nav class="navbar navbar-default header-bar co-m-navbar co-fx-box-shadow" role="navigation"></nav>
|
||||||
|
<div class="quay-message-bar"></div>
|
||||||
<div class="quay-service-status-bar" quay-require="['BILLING']"></div>
|
<div class="quay-service-status-bar" quay-require="['BILLING']"></div>
|
||||||
<div id="padding-container">
|
<div id="padding-container">
|
||||||
<div id="co-l-view-container">
|
<div id="co-l-view-container">
|
||||||
|
|
Reference in a new issue