File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed
desktop/core/src/desktop/templates Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ import sys
19
19
20
20
from desktop import conf
21
21
from desktop.views import _ko
22
+ from desktop.conf import ENABLE_WORKFLOW_CREATION_ACTION
22
23
23
24
if sys.version_info[0 ] > 2 :
24
25
from django.utils.translation import gettext as _
@@ -134,12 +135,14 @@ else:
134
135
</a >
135
136
</li >
136
137
% endif
137
- % if 'oozie' in apps:
138
- <li >
139
- <a title =" ${_('Oozie Workflow')}" data-bind =" hueLink: addDirectoryParamToUrl('${ url('oozie:new_workflow') }')" >
140
- <!-- ko template: { name: 'app-icon-template', data: { icon: 'oozie-workflow' } } --><!-- /ko --> ${_('Workflow') if is_embeddable else _('Oozie Workflow')}
141
- </a >
142
- </li >
138
+ % if ('oozie' in apps):
139
+ % if ENABLE_WORKFLOW_CREATION_ACTION.get():
140
+ <li >
141
+ <a title =" ${_('Oozie Workflow')}" data-bind =" hueLink: addDirectoryParamToUrl('${ url('oozie:new_workflow') }')" >
142
+ <!-- ko template: { name: 'app-icon-template', data: { icon: 'oozie-workflow' } } --><!-- /ko --> ${_('Workflow') if is_embeddable else _('Oozie Workflow')}
143
+ </a >
144
+ </li >
145
+ % endif
143
146
<li >
144
147
<a title =" ${_('Oozie Schedule')}" data-bind =" hueLink: addDirectoryParamToUrl('${ url('oozie:new_coordinator') }')" >
145
148
<!-- ko template: { name: 'app-icon-template', data: { icon: 'oozie-coordinator' } } --><!-- /ko --> ${_('Schedule') if is_embeddable else _('Oozie Coordinator')}
You can’t perform that action at this time.
0 commit comments