We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 592e0bc5 authored by Brion Vibber's avatar Brion Vibber

add title attribute on attachment list items

parent 5a3d0142
......@@ -197,7 +197,10 @@ class AttachmentListItem extends Widget
}
function linkAttr() {
return array('class' => 'attachment', 'href' => $this->attachment->url, 'id' => 'attachment-' . $this->attachment->id);
return array('class' => 'attachment',
'href' => $this->attachment->url,
'id' => 'attachment-' . $this->attachment->id,
'title' => $this->title());
}
function showLink() {
......@@ -244,8 +247,9 @@ class AttachmentListItem extends Widget
case 'image/jpeg':
$thumb = (object)array();
$thumb->url = $enc->url;
$thumb->width = 100;
$thumb->height = 75; // @fixme
// @fixme use the given width/height aspect
$thumb->width = common_config('attachments', 'thumb_width');
$thumb->height = common_config('attachments', 'thumb_height');
return $thumb;
}
}
......
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