summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.openstack.org>2018-02-27 19:20:20 +0000
committerGerrit Code Review <review@openstack.org>2018-02-27 19:20:20 +0000
commitc4be6997eb43fb254e2de89aaf02cc8faf410dca (patch)
treea531eabb58fba91e74fe81a4309640fe6ba094ae
parent2e3aae47acfd125cf883ea3394830ba98e2ccc88 (diff)
parenta3efa18c9992d902616e751398036d05883081da (diff)
Merge "Add the key manager panel group"
-rw-r--r--README.rst2
-rw-r--r--castellan_ui/enabled/_90_project_key_manager_panelgroup.py24
2 files changed, 25 insertions, 1 deletions
diff --git a/README.rst b/README.rst
index 0650f5f..1257e1d 100644
--- a/README.rst
+++ b/README.rst
@@ -53,7 +53,7 @@ Install Castellan UI with all dependencies in your virtual environment::
53 53
54And enable it in Horizon:: 54And enable it in Horizon::
55 55
56 TODO(kfarr): add the panel group here 56 ln -s ../castellan-ui/castellan_ui/enabled/_90_project_key_manager_panelgroup.py openstack_dashboard/local/enabled
57 TODO(kfarr): add the panels here 57 TODO(kfarr): add the panels here
58 58
59To run horizon with the newly enabled Castellan UI plugin run:: 59To run horizon with the newly enabled Castellan UI plugin run::
diff --git a/castellan_ui/enabled/_90_project_key_manager_panelgroup.py b/castellan_ui/enabled/_90_project_key_manager_panelgroup.py
new file mode 100644
index 0000000..403b3b3
--- /dev/null
+++ b/castellan_ui/enabled/_90_project_key_manager_panelgroup.py
@@ -0,0 +1,24 @@
1# Licensed under the Apache License, Version 2.0 (the "License"); you may
2# not use this file except in compliance with the License. You may obtain
3# a copy of the License at
4#
5# http://www.apache.org/licenses/LICENSE-2.0
6#
7# Unless required by applicable law or agreed to in writing, software
8# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
9# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
10# License for the specific language governing permissions and limitations
11# under the License.
12
13from django.utils.translation import ugettext_lazy as _
14
15# The slug of the panel group to be added to HORIZON_CONFIG. Required.
16PANEL_GROUP = 'key_manager'
17# The display name of the PANEL_GROUP. Required.
18PANEL_GROUP_NAME = _('Key Manager')
19# The slug of the dashboard the PANEL_GROUP associated with. Required.
20PANEL_GROUP_DASHBOARD = 'project'
21
22ADD_INSTALLED_APPS = ['castellan_ui']
23
24AUTO_DISCOVER_STATIC_FILES = True