Delete notice markup and styles
This commit is contained in:
parent
996eb1da4e
commit
607e65be81
|
@ -438,7 +438,7 @@ class NoticeListItem extends Widget
|
||||||
$reply_url = common_local_url('newnotice',
|
$reply_url = common_local_url('newnotice',
|
||||||
array('replyto' => $this->profile->nickname));
|
array('replyto' => $this->profile->nickname));
|
||||||
|
|
||||||
$this->out->elementStart('dl', 'reply');
|
$this->out->elementStart('dl', 'notice_reply');
|
||||||
$this->out->element('dt', null, _('Reply to this notice'));
|
$this->out->element('dt', null, _('Reply to this notice'));
|
||||||
$this->out->elementStart('dd');
|
$this->out->elementStart('dd');
|
||||||
$this->out->element('a', array('href' => $reply_url,
|
$this->out->element('a', array('href' => $reply_url,
|
||||||
|
@ -459,11 +459,13 @@ class NoticeListItem extends Widget
|
||||||
if ($user && $this->notice->profile_id == $user->id) {
|
if ($user && $this->notice->profile_id == $user->id) {
|
||||||
$deleteurl = common_local_url('deletenotice',
|
$deleteurl = common_local_url('deletenotice',
|
||||||
array('notice' => $this->notice->id));
|
array('notice' => $this->notice->id));
|
||||||
$this->out->elementStart('a', array('class' => 'deletenotice',
|
$this->out->elementStart('dl', 'notice_delete');
|
||||||
'href' => $deleteurl,
|
$this->out->element('dt', null, _('Delete this notice'));
|
||||||
'title' => _('delete')));
|
$this->out->elementStart('dd');
|
||||||
$this->out->raw(' ×');
|
$this->out->element('a', array('href' => $deleteurl,
|
||||||
$this->out->elementEnd('a');
|
'title' => _('delete')), _('Delete'));
|
||||||
|
$this->out->elementEnd('dd');
|
||||||
|
$this->out->elementEnd('dl');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -775,25 +775,26 @@ outline:none;
|
||||||
margin-left:2%;
|
margin-left:2%;
|
||||||
float:left;
|
float:left;
|
||||||
}
|
}
|
||||||
.notice-options .reply,
|
.notice-options .notice_reply,
|
||||||
.notice-options .notice_delete ,
|
.notice-options .notice_delete ,
|
||||||
.notice-options .notice_favorite {
|
.notice-options .notice_favorite {
|
||||||
float:left;
|
float:left;
|
||||||
margin-right:11px;
|
margin-right:11px;
|
||||||
}
|
}
|
||||||
.notice-options .reply {
|
.notice-options .notice_reply {
|
||||||
margin-top:1px;
|
margin-top:1px;
|
||||||
}
|
}
|
||||||
.notice-options .reply dt {
|
.notice-options .notice_reply dt {
|
||||||
display:none;
|
display:none;
|
||||||
}
|
}
|
||||||
.notice-options .reply a,
|
.notice-options .notice_reply a,
|
||||||
.notice-options form input.submit {
|
.notice-options form input.submit {
|
||||||
display:block;
|
display:block;
|
||||||
border:0;
|
border:0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.notice-options .reply a {
|
.notice-options .notice_reply a,
|
||||||
|
.notice-options .notice_delete a {
|
||||||
text-decoration:none;
|
text-decoration:none;
|
||||||
padding-left:20px;
|
padding-left:20px;
|
||||||
}
|
}
|
||||||
|
@ -802,7 +803,7 @@ cursor:pointer;
|
||||||
padding:0 0 0 17px;
|
padding:0 0 0 17px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.notice-options .notice_delete legend,
|
.notice-options .notice_delete dt,
|
||||||
.notice-options .notice_favorite legend {
|
.notice-options .notice_favorite legend {
|
||||||
display:none;
|
display:none;
|
||||||
}
|
}
|
||||||
|
@ -813,8 +814,8 @@ padding:0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.notice-options form.notice_delete {
|
.notice-options .notice_delete {
|
||||||
margin-left:2em;
|
margin-left:3em;
|
||||||
}
|
}
|
||||||
/*END: NOTICES */
|
/*END: NOTICES */
|
||||||
|
|
||||||
|
|
|
@ -173,17 +173,17 @@ background-image:url(../images/icons/twotone/green/flag.gif);
|
||||||
background-image:url(../images/icons/twotone/green/document.gif);
|
background-image:url(../images/icons/twotone/green/document.gif);
|
||||||
}
|
}
|
||||||
|
|
||||||
.notice-options .reply a,
|
.notice-options .notice_reply a,
|
||||||
.notice-options form input.submit {
|
.notice-options form input.submit {
|
||||||
background-color:transparent;
|
background-color:transparent;
|
||||||
}
|
}
|
||||||
.notice-options .reply a {
|
.notice-options .notice_reply a {
|
||||||
background:transparent url(../images/icons/twotone/green/reply.gif) no-repeat 0 45%;
|
background:transparent url(../images/icons/twotone/green/reply.gif) no-repeat 0 45%;
|
||||||
}
|
}
|
||||||
.notice-options form.notice_favorite input.submit {
|
.notice-options form.notice_favorite input.submit {
|
||||||
background:transparent url(../images/icons/twotone/green/favourite.gif) no-repeat 0 45%;
|
background:transparent url(../images/icons/twotone/green/favourite.gif) no-repeat 0 45%;
|
||||||
}
|
}
|
||||||
.notice-options form.notice_delete input.submit {
|
.notice-options .notice_delete a {
|
||||||
background:transparent url(../images/icons/twotone/green/trash.gif) no-repeat 0 45%;
|
background:transparent url(../images/icons/twotone/green/trash.gif) no-repeat 0 45%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user