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

Commit 12723f2d authored by Evan Prodromou's avatar Evan Prodromou

better output for bookmark list item

parent 6ee2adee
.bookmark-tags li { display: inline; }
.bookmark-mentions li { display: inline; }
.bookmark-avatar { float: left; }
.bookmark-notice-count { float: right; }
.bookmark-info { float: left; }
.bookmark-title { margin-left: 0px; }
#content .bookmark .entry-title { margin-left: 0px; }
#content .bookmark .entry-content { margin-left: 0px; }
......@@ -47,13 +47,21 @@ if (!defined('STATUSNET')) {
class BookmarkListItem extends NoticeListItemAdapter
{
function showContent()
function showNotice()
{
$this->out->elementStart('p', array('class' => 'entry-content'));
$this->nli->out->elementStart('div', 'entry-title');
$this->nli->showAuthor();
$this->showContent();
$this->nli->out->elementEnd('div');
}
function showContent()
{
$notice = $this->nli->notice;
$out = $this->nli->out;
$out->elementStart('p', array('class' => 'entry-content'));
$nb = Bookmark::getByNotice($notice);
$profile = $notice->getProfile();
......@@ -74,17 +82,10 @@ class BookmarkListItem extends NoticeListItemAdapter
$out->elementStart('h3');
$out->element('a',
array('href' => $att->url,
'class' => 'bookmark-title entry-title'),
'class' => 'bookmark-title'),
$nb->title);
$out->elementEnd('h3');
$countUrl = common_local_url('noticebyurl',
array('id' => $att->id));
$out->element('a', array('class' => 'bookmark-notice-count',
'href' => $countUrl),
$att->noticeCount());
// Replies look like "for:" tags
$replies = $notice->getReplies();
......@@ -126,6 +127,6 @@ class BookmarkListItem extends NoticeListItemAdapter
$nb->description);
}
$this->out->elementEnd('p');
$out->elementEnd('p');
}
}
......@@ -1131,10 +1131,6 @@ padding-right:0;
/* Bookmark specific styles */
#content .bookmark .entry-title {
margin-left: 0px;
}
.bookmark h3 {
margin: 0px 0px 8px 0px;
float: left;
......
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