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

Commit 45b2059c authored by Evan Prodromou's avatar Evan Prodromou

better layout for single-bookmark page

parent 29103f5d
......@@ -224,11 +224,16 @@ class BookmarkPlugin extends Plugin
$att = $atts[0];
$out->elementStart('h3');
$out->element('a',
array('href' => $att->url),
$nb->title);
$out->elementEnd('h3');
// XXX: only show the bookmark URL for non-single-page stuff
if ($out instanceof ShowbookmarkAction) {
} else {
$out->elementStart('h3');
$out->element('a',
array('href' => $att->url),
$nb->title);
$out->elementEnd('h3');
}
$out->elementStart('ul', array('class' => 'bookmark_tags'));
......@@ -267,7 +272,10 @@ class BookmarkPlugin extends Plugin
array('class' => 'bookmark_description'),
$nb->description);
$nli->showNoticeAttachments();
if (common_config('attachments', 'show_thumbs')) {
$al = new InlineAttachmentList($notice, $out);
$al->show();
}
$out->elementStart('p', array('style' => 'float: left'));
......
......@@ -113,4 +113,20 @@ class ShowbookmarkAction extends ShownoticeAction
return true;
}
function title()
{
return sprintf(_('%s\'s bookmark for "%s"'),
$this->user->nickname,
$this->bookmark->title);
}
function showPageTitle()
{
$this->elementStart('h1');
$this->element('a',
array('href' => $this->bookmark->url),
$this->bookmark->title);
$this->elementEnd('h1');
}
}
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