Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-forum
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-forum
Commits
85fb6404
Commit
85fb6404
authored
Nov 17, 2012
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
-- allowed indention of 20 forum items
parent
fab5554e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
8 deletions
+38
-8
intranet-forum-procs.tcl
tcl/intranet-forum-procs.tcl
+38
-8
No files found.
tcl/intranet-forum-procs.tcl
View file @
85fb6404
...
...
@@ -667,6 +667,8 @@ ad_proc -public im_forum_render_thread { topic_id user_id object_id object_name
Returns a formatted HTML representing the child postings
of the specified topic.
}
{
# !!! This sql is ignored because of sql located in .xql file
set topic_sql
"
select
t.*,
...
...
@@ -701,6 +703,7 @@ ad_proc -public im_forum_render_thread { topic_id user_id object_id object_name
and t.topic_status_id=fts.category_id(+)
"
# -------------- Setup the outer table with indents-----------------------
# outer table with 10 columns for indenting
...
...
@@ -717,10 +720,18 @@ ad_proc -public im_forum_render_thread { topic_id user_id object_id object_name
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
"
# -------------- Render all TIND elements -----------------------
set msg_ctr 1
...
...
@@ -728,7 +739,6 @@ ad_proc -public im_forum_render_thread { topic_id user_id object_id object_name
# skip the first message, displayed above.
if
{
$msg
_ctr != 1
}
{
# position table within the outer indent-table
append thread_html
"<tr>"
if
{
$indent
_level > 0
}
{
...
...
@@ -736,13 +746,33 @@ ad_proc -public im_forum_render_thread { topic_id user_id object_id object_name
}
append thread_html
"
<td colspan=
$colspan
_level>
<table border=0 cellpadding=0 bgcolor=#E0E0E0>
"
<table border=0 cellpadding=0 bgcolor=#E0E0E0>
"
# don't show received updates for everything but the main message
set receive_updates
""
append thread_html
"
[
im_forum_render_tind
$topic
_id 0
$topic
_type_id
$topic
_type
$topic
_status_id
$topic
_status
$owner
_id
$asignee
_id
$owner
_name
$asignee
_name
$user
_id
$object
_id
$object
_name
$object
_admin
$subject
$message
$posting
_date
$due
_date
$priority
$scope
$receive
_updates
$return
_url
]
append thread_html
"
[
im_forum_render_tind
\
$topic
_id 0
\
$topic
_type_id
\
$topic
_type
\
$topic
_status_id
\
$topic
_status
\
$owner
_id
\
$asignee
_id
\
$owner
_name
\
$asignee
_name
\
$user
_id
\
$object
_id
\
$object
_name
\
$object
_admin
\
$subject
\
$message
\
$posting
_date
\
$due
_date
\
$priority
\
$scope
\
$receive
_updates
\
$return
_url
\
]
</table>
</td>
</tr>
\n
"
...
...
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