Addremove epic module
parent
901fad6229
commit
596d854f76
|
@ -492,6 +492,8 @@
|
|||
"TITLE": "Modules",
|
||||
"ENABLE": "Enable",
|
||||
"DISABLE": "Disable",
|
||||
"EPICS": "Epics",
|
||||
"EPICS_DESCRIPTION": "Visualize and manage the most strategic part of your project",
|
||||
"BACKLOG": "Backlog",
|
||||
"BACKLOG_DESCRIPTION": "Manage your user stories to maintain an organized view of upcoming and prioritized work.",
|
||||
"NUMBER_SPRINTS": "Expected number of sprints",
|
||||
|
|
|
@ -52,12 +52,16 @@ class ProjectMenuController
|
|||
|
||||
_setMenuPermissions: () ->
|
||||
@.menu = Immutable.Map({
|
||||
epics: false,
|
||||
backlog: false,
|
||||
kanban: false,
|
||||
issues: false,
|
||||
wiki: false
|
||||
})
|
||||
|
||||
if @.project.get("is_epics_activated") && @.project.get("my_permissions").indexOf("view_epics") != -1
|
||||
@.menu = @.menu.set("epics", true)
|
||||
|
||||
if @.project.get("is_backlog_activated") && @.project.get("my_permissions").indexOf("view_us") != -1
|
||||
@.menu = @.menu.set("backlog", true)
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ nav.menu(
|
|||
tg-svg(svg-icon="icon-timeline")
|
||||
span.helper(translate="PROJECT.SECTION.TIMELINE")
|
||||
|
||||
li#nav-epics
|
||||
li#nav-epics(ng-if="vm.menu.get('epics')")
|
||||
a(
|
||||
tg-nav="project-epics:project=vm.project.get('slug')"
|
||||
ng-class="{active: vm.active == 'epics'}"
|
||||
|
|
|
@ -17,6 +17,24 @@ div.wrapper(
|
|||
include ../includes/components/mainTitle
|
||||
|
||||
form.module-container
|
||||
.module.module-epics(ng-class="{true:'active', false:''}[project.is_epics_activated]")
|
||||
.module-icon
|
||||
tg-svg(svg-icon="icon-epics")
|
||||
.module-name(translate="ADMIN.MODULES.EPICS")
|
||||
.module-desc
|
||||
p(translate="ADMIN.MODULES.EPICS_DESCRIPTION")
|
||||
.module-activation.module-direct-active
|
||||
div.check
|
||||
input.activate-input(
|
||||
id="functionality-epics"
|
||||
name="functionality-epics"
|
||||
type="checkbox"
|
||||
ng-checked="project.is_epics_activated"
|
||||
ng-model="project.is_epics_activated"
|
||||
)
|
||||
div
|
||||
span.check-text.check-yes(translate="COMMON.YES")
|
||||
span.check-text.check-no(translate="COMMON.NO")
|
||||
.module.module-scrum(ng-class="{true:'active', false:''}[project.is_backlog_activated]")
|
||||
.module-icon
|
||||
tg-svg(svg-icon="icon-scrum")
|
||||
|
|
Loading…
Reference in New Issue