Epic in Admin > Attributes > Status
parent
a9fca5e43b
commit
605ff1480e
|
@ -81,6 +81,7 @@ urls = {
|
||||||
"project-transfer-start": "/projects/%s/transfer_start"
|
"project-transfer-start": "/projects/%s/transfer_start"
|
||||||
|
|
||||||
# Project Values - Choises
|
# Project Values - Choises
|
||||||
|
"epic-statuses": "/epic-statuses"
|
||||||
"userstory-statuses": "/userstory-statuses"
|
"userstory-statuses": "/userstory-statuses"
|
||||||
"points": "/points"
|
"points": "/points"
|
||||||
"task-statuses": "/task-statuses"
|
"task-statuses": "/task-statuses"
|
||||||
|
@ -223,6 +224,7 @@ module.run([
|
||||||
"$tgRolesResourcesProvider",
|
"$tgRolesResourcesProvider",
|
||||||
"$tgUserSettingsResourcesProvider",
|
"$tgUserSettingsResourcesProvider",
|
||||||
"$tgSprintsResourcesProvider",
|
"$tgSprintsResourcesProvider",
|
||||||
|
"$tgEpicsResourcesProvider",
|
||||||
"$tgUserstoriesResourcesProvider",
|
"$tgUserstoriesResourcesProvider",
|
||||||
"$tgTasksResourcesProvider",
|
"$tgTasksResourcesProvider",
|
||||||
"$tgIssuesResourcesProvider",
|
"$tgIssuesResourcesProvider",
|
||||||
|
|
|
@ -0,0 +1,55 @@
|
||||||
|
###
|
||||||
|
# Copyright (C) 2014-2016 Andrey Antukh <niwi@niwi.nz>
|
||||||
|
# Copyright (C) 2014-2016 Jesús Espino Garcia <jespinog@gmail.com>
|
||||||
|
# Copyright (C) 2014-2016 David Barragán Merino <bameda@dbarragan.com>
|
||||||
|
# Copyright (C) 2014-2016 Alejandro Alonso <alejandro.alonso@kaleidos.net>
|
||||||
|
# Copyright (C) 2014-2016 Juan Francisco Alcántara <juanfran.alcantara@kaleidos.net>
|
||||||
|
# Copyright (C) 2014-2016 Xavi Julian <xavier.julian@kaleidos.net>
|
||||||
|
#
|
||||||
|
# This program is free software: you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU Affero General Public License as
|
||||||
|
# published by the Free Software Foundation, either version 3 of the
|
||||||
|
# License, or (at your option) any later version.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU Affero General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
#
|
||||||
|
# File: modules/resources/epics.coffee
|
||||||
|
###
|
||||||
|
|
||||||
|
|
||||||
|
taiga = @.taiga
|
||||||
|
|
||||||
|
generateHash = taiga.generateHash
|
||||||
|
|
||||||
|
|
||||||
|
resourceProvider = ($repo, $storage) ->
|
||||||
|
service = {}
|
||||||
|
hashSuffix = "epics-queryparams"
|
||||||
|
|
||||||
|
service.listValues = (projectId, type) ->
|
||||||
|
params = {"project": projectId}
|
||||||
|
service.storeQueryParams(projectId, params)
|
||||||
|
return $repo.queryMany(type, params)
|
||||||
|
|
||||||
|
service.storeQueryParams = (projectId, params) ->
|
||||||
|
ns = "#{projectId}:#{hashSuffix}"
|
||||||
|
hash = generateHash([projectId, ns])
|
||||||
|
$storage.set(hash, params)
|
||||||
|
|
||||||
|
service.getQueryParams = (projectId) ->
|
||||||
|
ns = "#{projectId}:#{hashSuffix}"
|
||||||
|
hash = generateHash([projectId, ns])
|
||||||
|
return $storage.get(hash) or {}
|
||||||
|
|
||||||
|
return (instance) ->
|
||||||
|
instance.epics = service
|
||||||
|
|
||||||
|
|
||||||
|
module = angular.module("taigaResources")
|
||||||
|
module.factory("$tgEpicsResourcesProvider", ["$tgRepo", "$tgStorage", resourceProvider])
|
|
@ -609,7 +609,8 @@
|
||||||
"PROJECT_VALUES_STATUS": {
|
"PROJECT_VALUES_STATUS": {
|
||||||
"TITLE": "Status",
|
"TITLE": "Status",
|
||||||
"SUBTITLE": "Specify the statuses your user stories, tasks and issues will go through",
|
"SUBTITLE": "Specify the statuses your user stories, tasks and issues will go through",
|
||||||
"US_TITLE": "US Statuses",
|
"EPIC_TITLE": "Epic Statuses",
|
||||||
|
"US_TITLE": "User Story Statuses",
|
||||||
"TASK_TITLE": "Task Statuses",
|
"TASK_TITLE": "Task Statuses",
|
||||||
"ISSUE_TITLE": "Issue Statuses"
|
"ISSUE_TITLE": "Issue Statuses"
|
||||||
},
|
},
|
||||||
|
|
|
@ -15,6 +15,12 @@ div.wrapper(ng-controller="ProjectValuesSectionController",
|
||||||
include ../includes/components/mainTitle
|
include ../includes/components/mainTitle
|
||||||
p.admin-subtitle(translate="ADMIN.PROJECT_VALUES_STATUS.SUBTITLE")
|
p.admin-subtitle(translate="ADMIN.PROJECT_VALUES_STATUS.SUBTITLE")
|
||||||
|
|
||||||
|
div.admin-attributes-section(tg-project-values, type="epic-statuses",
|
||||||
|
ng-controller="ProjectValuesController as ctrl",
|
||||||
|
ng-init="section='admin'; resource='epics'; type='epic-statuses'; sectionName='ADMIN.PROJECT_VALUES_STATUS.EPIC_TITLE'"
|
||||||
|
objName="status")
|
||||||
|
include ../includes/modules/admin/project-status
|
||||||
|
|
||||||
div.admin-attributes-section(tg-project-values, type="userstory-statuses",
|
div.admin-attributes-section(tg-project-values, type="userstory-statuses",
|
||||||
ng-controller="ProjectValuesController as ctrl",
|
ng-controller="ProjectValuesController as ctrl",
|
||||||
ng-init="section='admin'; resource='userstories'; type='userstory-statuses'; sectionName='ADMIN.PROJECT_VALUES_STATUS.US_TITLE'",
|
ng-init="section='admin'; resource='userstories'; type='userstory-statuses'; sectionName='ADMIN.PROJECT_VALUES_STATUS.US_TITLE'",
|
||||||
|
|
Loading…
Reference in New Issue