2014-06-10 18:41:02 +07:00
|
|
|
# Copyright 2014 - StackStorm, Inc.
|
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
|
|
|
|
from django.utils.translation import ugettext_lazy as _
|
|
|
|
|
|
|
|
import horizon
|
|
|
|
|
2016-09-08 15:25:30 +07:00
|
|
|
from mistraldashboard.default import panel
|
2014-06-10 18:41:02 +07:00
|
|
|
|
|
|
|
|
|
|
|
class MistralDashboard(horizon.Dashboard):
|
2015-08-26 22:32:57 +08:00
|
|
|
name = _("Workflow")
|
2014-06-10 18:41:02 +07:00
|
|
|
slug = "mistral"
|
2015-07-31 11:34:36 +08:00
|
|
|
panels = (
|
|
|
|
'default',
|
|
|
|
'workbooks',
|
|
|
|
'workflows',
|
2016-11-23 10:35:46 +00:00
|
|
|
'actions',
|
2015-07-31 11:34:36 +08:00
|
|
|
'executions',
|
|
|
|
'tasks',
|
2016-11-23 10:35:46 +00:00
|
|
|
'action_executions',
|
|
|
|
'cron_triggers',
|
2015-07-31 11:34:36 +08:00
|
|
|
)
|
2014-06-10 18:41:02 +07:00
|
|
|
default_panel = 'default'
|
|
|
|
roles = ('admin',)
|
|
|
|
|
|
|
|
|
|
|
|
horizon.register(MistralDashboard)
|
2016-09-08 15:25:30 +07:00
|
|
|
MistralDashboard.register(panel.Default)
|