Rating controls now respond to the show_controls variable.

svn path=/trunk/boinc/; revision=1854
This commit is contained in:
David Anderson 2003-07-29 02:01:58 +00:00
parent 38f58b5722
commit a75464d544
1 changed files with 6 additions and 0 deletions

View File

@ -317,6 +317,9 @@ function show_post($post, $thread, $logged_in_user, $n, $show_controls=true) {
echo "
</p>
</td>
";
if ($show_controls) {
echo "
<td align=\"right\" style=\"border:0px\">Rate this post:
<select name=\"rating\">
<option value=\"2\">Excellent (+2)</option>
@ -327,6 +330,9 @@ function show_post($post, $thread, $logged_in_user, $n, $show_controls=true) {
</select>
<input type=\"submit\" value=\"Rate\">
</td>
";
}
echo "
</tr></table>
</form>
<p>", nl2br(stripslashes($post->content)), "</p>";