in context link for conversations
This commit is contained in:
parent
fa3ca0548f
commit
95bb1c6a99
@ -197,7 +197,7 @@ class NoticeListItem extends Widget
|
|||||||
$this->out->elementStart('div', 'entry-content');
|
$this->out->elementStart('div', 'entry-content');
|
||||||
$this->showNoticeLink();
|
$this->showNoticeLink();
|
||||||
$this->showNoticeSource();
|
$this->showNoticeSource();
|
||||||
$this->showReplyTo();
|
$this->showContext();
|
||||||
$this->out->elementEnd('div');
|
$this->out->elementEnd('div');
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -421,17 +421,18 @@ class NoticeListItem extends Widget
|
|||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
|
|
||||||
function showReplyTo()
|
function showContext()
|
||||||
{
|
{
|
||||||
if ($this->notice->reply_to) {
|
// XXX: also show context if there are replies to this notice
|
||||||
$replyurl = common_local_url('shownotice',
|
if (!empty($this->notice->conversation)
|
||||||
array('notice' => $this->notice->reply_to));
|
&& $this->notice->conversation != $this->notice->id) {
|
||||||
|
$convurl = common_local_url('conversation',
|
||||||
|
array('id' => $this->notice->conversation));
|
||||||
$this->out->elementStart('dl', 'response');
|
$this->out->elementStart('dl', 'response');
|
||||||
$this->out->element('dt', null, _('To'));
|
$this->out->element('dt', null, _('To'));
|
||||||
$this->out->elementStart('dd');
|
$this->out->elementStart('dd');
|
||||||
$this->out->element('a', array('href' => $replyurl,
|
$this->out->element('a', array('href' => $convurl),
|
||||||
'rel' => 'in-reply-to'),
|
_('in context'));
|
||||||
_('in reply to'));
|
|
||||||
$this->out->elementEnd('dd');
|
$this->out->elementEnd('dd');
|
||||||
$this->out->elementEnd('dl');
|
$this->out->elementEnd('dl');
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user