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
eea9b644
Commit
eea9b644
authored
Apr 07, 2016
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
-- allow custom headers for FORUM portlets
parent
a90edc9f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
4 deletions
+13
-4
intranet-forum-procs.tcl
tcl/intranet-forum-procs.tcl
+13
-4
No files found.
tcl/intranet-forum-procs.tcl
View file @
eea9b644
...
...
@@ -842,6 +842,7 @@ ad_proc -public im_forum_component {
-export_var_list
-forum_type
{
-write_icons 0
}
{
-custom_header
""
}
{
-debug 0
}
}
{
Creates a HTML table showing a table of
"Discussion Topics"
of
...
...
@@ -1003,7 +1004,6 @@ ad_proc -public im_forum_component {
set pass_through_vars_html
[
join
$params
"&"
]
# ---------------------- Format Header ----------------------------------
# Set up colspan to be the number of headers + 1 for the # column
...
...
@@ -1013,14 +1013,23 @@ ad_proc -public im_forum_component {
# sort order of the SQL query.
#
# Init header
set table_header_html
""
if
{
"1"
==
$write
_icons
}
{
set table_header_html
"<tr><td colspan=
\"
99
\"
align=
\"
right
\"
>"
append table_header_html
[
im_forum_create_bar
""
$forum
_object_id
$return
_url
]
append table_header_html
"</td></tr><tr>
\n
"
}
else
{
set table_header_html
"<tr>
\n
"
append table_header_html
"</td></tr>
\n
"
}
if
{
""
ne
$custom
_header
}
{
set table_header_html
"<tr><td colspan=
\"
99
\"
align=
\"
right
\"
>"
append table_header_html
[
eval
$custom
_header
]
append table_header_html
"</td></tr>
\n
"
}
# Column Headers
append table_header_html
"<tr>
\n
"
foreach col
$column
_headers
{
set cmd_eval
""
...
...
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