separate uploader info

This commit is contained in:
Shish 2012-02-09 15:35:59 +00:00
parent 6e8970b15d
commit 7ced04d0d0

View File

@ -68,15 +68,21 @@ class ViewImageTheme extends Themelet {
$i_owner_id = int_escape($owner->id); $i_owner_id = int_escape($owner->id);
$h_date = autodate($image->posted); $h_date = autodate($image->posted);
$html = ""; $html = "<table style='width: 700px;'><tr><td>";
$html .= "<p>Uploaded by <a href='".make_link("user/$h_owner")."'>$h_owner</a> $h_date"; $html .= "Uploaded by:";
//$html .= "<br>".$owner->get_avatar_html();
$html .= "<br><a href='".make_link("user/$h_owner")."'>$h_owner</a>";
if($user->can("view_ip")) { if($user->can("view_ip")) {
$html .= " ($h_ip)"; $html .= " ($h_ip)";
} }
$html .= "<br><small>$h_date";
$html .= $this->format_source($image->source); $html .= $this->format_source($image->source);
$html .= "</small>";
$html .= "</td><td>";
$html .= $this->build_image_editor($image, $editor_parts); $html .= $this->build_image_editor($image, $editor_parts);
$html .= "</td></tr></table>";
return $html; return $html;
} }