diff options
author | Zuul <zuul@review.openstack.org> | 2018-02-27 19:20:20 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2018-02-27 19:20:20 +0000 |
commit | c4be6997eb43fb254e2de89aaf02cc8faf410dca (patch) | |
tree | a531eabb58fba91e74fe81a4309640fe6ba094ae | |
parent | 2e3aae47acfd125cf883ea3394830ba98e2ccc88 (diff) | |
parent | a3efa18c9992d902616e751398036d05883081da (diff) |
Merge "Add the key manager panel group"
-rw-r--r-- | README.rst | 2 | ||||
-rw-r--r-- | castellan_ui/enabled/_90_project_key_manager_panelgroup.py | 24 |
2 files changed, 25 insertions, 1 deletions
@@ -53,7 +53,7 @@ Install Castellan UI with all dependencies in your virtual environment:: | |||
53 | 53 | ||
54 | And enable it in Horizon:: | 54 | And 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 | ||
59 | To run horizon with the newly enabled Castellan UI plugin run:: | 59 | To 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 | |||
13 | from django.utils.translation import ugettext_lazy as _ | ||
14 | |||
15 | # The slug of the panel group to be added to HORIZON_CONFIG. Required. | ||
16 | PANEL_GROUP = 'key_manager' | ||
17 | # The display name of the PANEL_GROUP. Required. | ||
18 | PANEL_GROUP_NAME = _('Key Manager') | ||
19 | # The slug of the dashboard the PANEL_GROUP associated with. Required. | ||
20 | PANEL_GROUP_DASHBOARD = 'project' | ||
21 | |||
22 | ADD_INSTALLED_APPS = ['castellan_ui'] | ||
23 | |||
24 | AUTO_DISCOVER_STATIC_FILES = True | ||