remove votes on image

This commit is contained in:
Shish
2011-03-23 11:04:22 +00:00
parent bc49df35c1
commit 0539df80a9
2 changed files with 37 additions and 0 deletions

View File

@@ -30,6 +30,15 @@ class NumericScoreTheme extends Themelet {
<input type='submit' value='Vote Down'>
</form>
";
if($user->is_admin()) {
$html .= "
<form action='".make_link("numeric_score/remove_votes_on")."' method='POST'>
".$user->get_auth_html()."
<input type='hidden' name='image_id' value='$i_image_id'>
<input type='submit' value='Remove All Votes'>
</form>
";
}
return $html;
}
}