Browse Source

Merge "Add the key manager panel group"

Zuul 1 year ago
parent
commit
c4be6997eb
2 changed files with 25 additions and 1 deletions
  1. 1
    1
      README.rst
  2. 24
    0
      castellan_ui/enabled/_90_project_key_manager_panelgroup.py

+ 1
- 1
README.rst View File

@@ -53,7 +53,7 @@ Install Castellan UI with all dependencies in your virtual environment::
53 53
 
54 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 57
     TODO(kfarr): add the panels here
58 58
 
59 59
 To run horizon with the newly enabled Castellan UI plugin run::

+ 24
- 0
castellan_ui/enabled/_90_project_key_manager_panelgroup.py View File

@@ -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

Loading…
Cancel
Save