forked from GNUsocial/gnu-social
better output for bookmark list item
This commit is contained in:
parent
6ee2adee4c
commit
12723f2dc6
@ -1,8 +1 @@
|
|||||||
.bookmark-tags li { display: inline; }
|
.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
|
class BookmarkListItem extends NoticeListItemAdapter
|
||||||
{
|
{
|
||||||
|
function showNotice()
|
||||||
|
{
|
||||||
|
$this->nli->out->elementStart('div', 'entry-title');
|
||||||
|
$this->nli->showAuthor();
|
||||||
|
$this->showContent();
|
||||||
|
$this->nli->out->elementEnd('div');
|
||||||
|
}
|
||||||
|
|
||||||
function showContent()
|
function showContent()
|
||||||
{
|
{
|
||||||
$this->out->elementStart('p', array('class' => 'entry-content'));
|
|
||||||
|
|
||||||
$notice = $this->nli->notice;
|
$notice = $this->nli->notice;
|
||||||
$out = $this->nli->out;
|
$out = $this->nli->out;
|
||||||
|
|
||||||
|
$out->elementStart('p', array('class' => 'entry-content'));
|
||||||
|
|
||||||
$nb = Bookmark::getByNotice($notice);
|
$nb = Bookmark::getByNotice($notice);
|
||||||
|
|
||||||
$profile = $notice->getProfile();
|
$profile = $notice->getProfile();
|
||||||
@ -74,17 +82,10 @@ class BookmarkListItem extends NoticeListItemAdapter
|
|||||||
$out->elementStart('h3');
|
$out->elementStart('h3');
|
||||||
$out->element('a',
|
$out->element('a',
|
||||||
array('href' => $att->url,
|
array('href' => $att->url,
|
||||||
'class' => 'bookmark-title entry-title'),
|
'class' => 'bookmark-title'),
|
||||||
$nb->title);
|
$nb->title);
|
||||||
$out->elementEnd('h3');
|
$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 look like "for:" tags
|
||||||
|
|
||||||
$replies = $notice->getReplies();
|
$replies = $notice->getReplies();
|
||||||
@ -126,6 +127,6 @@ class BookmarkListItem extends NoticeListItemAdapter
|
|||||||
$nb->description);
|
$nb->description);
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->out->elementEnd('p');
|
$out->elementEnd('p');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1131,10 +1131,6 @@ padding-right:0;
|
|||||||
|
|
||||||
/* Bookmark specific styles */
|
/* Bookmark specific styles */
|
||||||
|
|
||||||
#content .bookmark .entry-title {
|
|
||||||
margin-left: 0px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bookmark h3 {
|
.bookmark h3 {
|
||||||
margin: 0px 0px 8px 0px;
|
margin: 0px 0px 8px 0px;
|
||||||
float: left;
|
float: left;
|
||||||
|
Loading…
Reference in New Issue
Block a user