Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-rest
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
project-open
intranet-rest
Commits
579d3ea2
Commit
579d3ea2
authored
May 17, 2016
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Added icons to the Gantt Editor tree,
indicating the type of object (task, project, ticket, ...)
parent
447f5c6d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
2 deletions
+16
-2
project-task-tree.json.tcl
www/data-source/project-task-tree.json.tcl
+16
-2
No files found.
www/data-source/project-task-tree.json.tcl
View file @
579d3ea2
...
...
@@ -206,12 +206,26 @@ template::multirow foreach task_multirow {
set quoted_char_map
{
"
\n
"
"
\\
n"
"
\r
"
"
\\
r"
"
\"
"
"
\\\"
"
"
\\
"
"
\\\\
"
}
set quoted_project_name
[
string
map
$quoted
_char_map
$project
_name
]
# ${indent
}
\t
iconCls:
\"
task-folder
\"
,
set type
""
switch
$project
_type_id
{
100
{
set type
"task"
}
101
{
set type
"ticket"
}
102 - 103
{
set type
"crm"
}
2502
{
set type
"sla"
}
2504
{
set type
"milestone"
}
2510
{
set type
"program"
}
4597
{
set type
"release-item"
}
4599
{
set type
"release"
}
}
if
{[
im_category_is_a
$project
_type_id
[
im_project_type_gantt
]]}
{
set type
"project"
}
if
{
"t"
eq
$milestone
_p
}
{
set type
"milestone"
}
# ToDo: Deal with empty type
append task_json
"
${indent}
\{
${indent}
\t
id:
$project
_id,
${indent}
\t
text:
\"
$quoted
_project_name
\"
,
${indent}
\t
duration:13.5
,
${indent}
\t
iconCls:
\"
icon-
$type
\"
,
${indent}
\t
predecessors:
\[
[
join
$predecessor
_tasks
", "
]
\]
,
${indent}
\t
assignees:
\[
[
join
$assignees
", "
]
\]
,
${indent}
\t
expanded:
$expanded
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment