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
0cca1423
Commit
0cca1423
authored
Jan 14, 2011
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- added read_only_p switch to disable the active components of a forum discussion
parent
e7d78ef2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
12 deletions
+15
-12
intranet-forum-procs.tcl
tcl/intranet-forum-procs.tcl
+15
-12
No files found.
tcl/intranet-forum-procs.tcl
View file @
0cca1423
...
...
@@ -1225,6 +1225,7 @@ ad_proc -public im_forum_component {
ad_proc -public im_forum_full_screen_component
{
-object_id:required
{
-read_only_p 0
}
}
{
Creates a HTML table with the threaded discussions for a given object.
}
{
...
...
@@ -1304,7 +1305,6 @@ ad_proc -public im_forum_full_screen_component {
}
}
append actions
"<option value=reply selected>
[
_ intranet-forum.lt_Reply_to_this_topic_t
]
</option>
\n
"
# Only admins can edit the message
...
...
@@ -1322,17 +1322,20 @@ ad_proc -public im_forum_full_screen_component {
}
}
append table_body
"
<tr
$bgcolor
(
[
expr
$ctr
% 2
]
)>
<td>
[
_ intranet-forum.Actions
]
</td>
<td>
<select name=actions>
$actions
</select>
<input type=submit value=
\"
[
_ intranet-forum.Apply
]
\"
>
</td>
</tr>
$assign
_hidden
"
if
{
!$read_only_p
}
{
append table_body
"
<tr
$bgcolor
(
[
expr
$ctr
% 2
]
)>
<td>
[
_ intranet-forum.Actions
]
</td>
<td>
<select name=actions>
$actions
</select>
<input type=submit value=
\"
[
_ intranet-forum.Apply
]
\"
>
</td>
</tr>
$assign
_hidden
"
}
incr ctr
# -------------- Table and Form Start -----------------------------
...
...
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