Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-helpdesk
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-helpdesk
Commits
7775838e
Commit
7775838e
authored
Oct 04, 2010
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- beautified the related objects component
parent
7f3920d1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
related-objects-component.tcl
www/related-objects-component.tcl
+8
-3
No files found.
www/related-objects-component.tcl
View file @
7775838e
...
@@ -55,6 +55,9 @@ list::create \
...
@@ -55,6 +55,9 @@ list::create \
}
}
direction_pretty
{
direction_pretty
{
label
"
[
lang::message::lookup
{}
intranet-helpdesk.Direction
{
}]
"
label
"
[
lang::message::lookup
{}
intranet-helpdesk.Direction
{
}]
"
display_template
{
@tickets_multirow.direction_pretty
;
noquote@
}
}
}
object_type_pretty
{
object_type_pretty
{
label
"
[
lang::message::lookup
{}
intranet-helpdesk.Object_Type
{
Type
}]
"
label
"
[
lang::message::lookup
{}
intranet-helpdesk.Object_Type
{
Type
}]
"
...
@@ -100,7 +103,9 @@ set object_rel_sql "
...
@@ -100,7 +103,9 @@ set object_rel_sql "
r.object_id_two = :ticket_id
r.object_id_two = :ticket_id
)
)
order by
order by
direction
o.object_type,
direction,
object_name
"
"
db_multirow -extend
{
ticket_chk object_url direction_pretty rel_name
}
tickets_multirow object_rels
$object
_rel_sql
{
db_multirow -extend
{
ticket_chk object_url direction_pretty rel_name
}
tickets_multirow object_rels
$object
_rel_sql
{
...
@@ -113,8 +118,8 @@ db_multirow -extend { ticket_chk object_url direction_pretty rel_name } tickets_
...
@@ -113,8 +118,8 @@ db_multirow -extend { ticket_chk object_url direction_pretty rel_name } tickets_
set rel_name
[
lang::message::lookup
""
intranet-helpdesk.Rel_$rel_type
$rel
_type_pretty
]
set rel_name
[
lang::message::lookup
""
intranet-helpdesk.Rel_$rel_type
$rel
_type_pretty
]
switch
$direction
{
switch
$direction
{
incoming
{
set direction_pretty
" -> "
}
incoming
{
set direction_pretty
[
im_gif arrow_right
]
}
outgoing
{
set direction_pretty
" <- "
}
outgoing
{
set direction_pretty
[
im_gif arrow_left
]
}
default
{
set direction_pretty
""
}
default
{
set direction_pretty
""
}
}
}
}
}
...
...
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