Commit 0cca1423 authored by Frank Bergmann's avatar Frank Bergmann

- added read_only_p switch to disable the active components of a forum discussion

parent e7d78ef2
...@@ -1225,6 +1225,7 @@ ad_proc -public im_forum_component { ...@@ -1225,6 +1225,7 @@ ad_proc -public im_forum_component {
ad_proc -public im_forum_full_screen_component { ad_proc -public im_forum_full_screen_component {
-object_id:required -object_id:required
{ -read_only_p 0}
} { } {
Creates a HTML table with the threaded discussions for a given object. Creates a HTML table with the threaded discussions for a given object.
} { } {
...@@ -1304,7 +1305,6 @@ ad_proc -public im_forum_full_screen_component { ...@@ -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" append actions "<option value=reply selected>[_ intranet-forum.lt_Reply_to_this_topic_t]</option>\n"
# Only admins can edit the message # Only admins can edit the message
...@@ -1322,17 +1322,20 @@ ad_proc -public im_forum_full_screen_component { ...@@ -1322,17 +1322,20 @@ ad_proc -public im_forum_full_screen_component {
} }
} }
append table_body " if {!$read_only_p} {
<tr $bgcolor([expr $ctr % 2])> append table_body "
<td>[_ intranet-forum.Actions]</td> <tr $bgcolor([expr $ctr % 2])>
<td> <td>[_ intranet-forum.Actions]</td>
<select name=actions> <td>
$actions <select name=actions>
</select> $actions
<input type=submit value=\"[_ intranet-forum.Apply]\"> </select>
</td> <input type=submit value=\"[_ intranet-forum.Apply]\">
</tr> $assign_hidden </td>
" </tr>
$assign_hidden
"
}
incr ctr incr ctr
# -------------- Table and Form Start ----------------------------- # -------------- Table and Form Start -----------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment