Added "Edit" entity_action.
Updated theme files.
This commit is contained in:
parent
4f1345620a
commit
5f004c0158
|
@ -312,14 +312,22 @@ class ShowstreamAction extends Action
|
|||
}
|
||||
$this->elementEnd('div');
|
||||
|
||||
//XXX: entity_actions doesn't need to be outputted if entity is looking at their own profile
|
||||
$this->elementStart('div', 'entity_actions');
|
||||
$this->element('h2', null, _('User actions'));
|
||||
$this->elementStart('ul');
|
||||
$this->elementStart('li', array('class' => 'entity_subscribe'));
|
||||
$cur = common_current_user();
|
||||
|
||||
if ($cur && $cur->id == $this->profile->id) {
|
||||
$this->elementStart('li', 'entity_edit');
|
||||
$this->element('a', array('href' => common_local_url('profilesettings'),
|
||||
'title' => _('Edit profile settings')),
|
||||
_('Edit'));
|
||||
$this->elementEnd('li');
|
||||
}
|
||||
|
||||
if ($cur) {
|
||||
if ($cur->id != $this->profile->id) {
|
||||
$this->elementStart('li', 'entity_subscribe');
|
||||
if ($cur->isSubscribed($this->profile)) {
|
||||
$usf = new UnsubscribeForm($this, $this->profile);
|
||||
$usf->show();
|
||||
|
@ -327,24 +335,24 @@ class ShowstreamAction extends Action
|
|||
$sf = new SubscribeForm($this, $this->profile);
|
||||
$sf->show();
|
||||
}
|
||||
$this->elementEnd('li');
|
||||
}
|
||||
} else {
|
||||
$this->elementStart('li', 'entity_subscribe');
|
||||
$this->showRemoteSubscribeLink();
|
||||
}
|
||||
$this->elementEnd('li');
|
||||
|
||||
// common_profile_new_message_nudge($cur, $this->user, $this->profile);
|
||||
}
|
||||
|
||||
$user = User::staticGet('id', $this->profile->id);
|
||||
if ($cur && $cur->id != $user->id && $cur->mutuallySubscribed($user)) {
|
||||
$this->elementStart('li', array('class' => 'entity_send-a-message'));
|
||||
$this->elementStart('li', 'entity_send-a-message');
|
||||
$this->element('a', array('href' => common_local_url('newmessage', array('to' => $user->id)),
|
||||
'title' => _('Send a direct message to this user')),
|
||||
_('Message'));
|
||||
$this->elementEnd('li');
|
||||
|
||||
if ($user->email && $user->emailnotifynudge) {
|
||||
$this->elementStart('li', array('class' => 'entity_nudge'));
|
||||
$this->elementStart('li', 'entity_nudge');
|
||||
$nf = new NudgeForm($this, $user);
|
||||
$nf->show();
|
||||
$this->elementEnd('li');
|
||||
|
@ -353,7 +361,7 @@ class ShowstreamAction extends Action
|
|||
|
||||
if ($cur && $cur->id != $this->profile->id) {
|
||||
$blocked = $cur->hasBlocked($this->profile);
|
||||
$this->elementStart('li', array('class' => 'entity_block'));
|
||||
$this->elementStart('li', 'entity_block');
|
||||
if ($blocked) {
|
||||
$ubf = new UnblockForm($this, $this->profile);
|
||||
$ubf->show();
|
||||
|
|
|
@ -605,12 +605,14 @@ display:block;
|
|||
.form_user_block input.submit,
|
||||
.form_user_unblock input.submit,
|
||||
.entity_send-a-message a,
|
||||
.entity_edit a,
|
||||
.form_user_nudge input.submit,
|
||||
.entity_nudge p {
|
||||
border:0;
|
||||
padding-left:20px;
|
||||
}
|
||||
|
||||
.entity_edit a,
|
||||
.entity_send-a-message a,
|
||||
.entity_nudge p {
|
||||
padding:4px 4px 4px 23px;
|
||||
|
|
|
@ -92,12 +92,6 @@ color:#333;
|
|||
color:#000;
|
||||
}
|
||||
|
||||
#form_notice #notice_data-attach_view {
|
||||
background-image:url(../images/icons/twotone/green/paper-clip.gif);
|
||||
background-repeat:no-repeat;
|
||||
background-position:0 45%;
|
||||
background-color:transparent;
|
||||
}
|
||||
|
||||
#nav_register a {
|
||||
text-decoration:none;
|
||||
|
@ -123,8 +117,6 @@ background-color:rgba(255, 255, 255, 0.7);
|
|||
}
|
||||
|
||||
|
||||
|
||||
|
||||
#page_notice .error {
|
||||
background-color:#F7E8E8;
|
||||
}
|
||||
|
@ -144,8 +136,6 @@ background-color:#A9BF4F;
|
|||
}
|
||||
|
||||
|
||||
|
||||
|
||||
#export_data li a {
|
||||
background-repeat:no-repeat;
|
||||
background-position:0 45%;
|
||||
|
@ -164,6 +154,7 @@ background-image:url(../../base/images/icons/icon_vcard.gif);
|
|||
}
|
||||
|
||||
|
||||
.entity_edit a,
|
||||
.entity_send-a-message a,
|
||||
.form_user_nudge input.submit,
|
||||
.form_user_block input.submit,
|
||||
|
@ -185,6 +176,9 @@ color:#fff;
|
|||
background-color:#97BFD1;
|
||||
}
|
||||
|
||||
.entity_edit a {
|
||||
background-image:url(../images/icons/twotone/green/edit.gif);
|
||||
}
|
||||
.entity_send-a-message a {
|
||||
background-image:url(../images/icons/twotone/green/quote.gif);
|
||||
}
|
||||
|
@ -204,30 +198,6 @@ background-image:url(../images/icons/twotone/green/shield.gif);
|
|||
background-color:#fcfcfc;
|
||||
}
|
||||
|
||||
.notice-data a span {
|
||||
background-color:transparent;
|
||||
background-repeat:no-repeat;
|
||||
background-position:0 45%;
|
||||
}
|
||||
.notice_video .notice-data a span {
|
||||
background-image:url(../images/icons/twotone/green/camera.gif);
|
||||
}
|
||||
.notice_audio .notice-data a span {
|
||||
background-image:url(../images/icons/twotone/green/music.gif);
|
||||
}
|
||||
.notice_image .notice-data a span {
|
||||
background-image:url(../images/icons/twotone/green/search.gif);
|
||||
}
|
||||
.notice_event .notice-data a span {
|
||||
background-image:url(../images/icons/twotone/green/calendar.gif);
|
||||
}
|
||||
.notice_location .notice-data a span {
|
||||
background-image:url(../images/icons/twotone/green/flag.gif);
|
||||
}
|
||||
.notice_document .notice-data a span {
|
||||
background-image:url(../images/icons/twotone/green/document.gif);
|
||||
}
|
||||
|
||||
.notice-options .notice_reply a,
|
||||
.notice-options form input.submit {
|
||||
background-color:transparent;
|
||||
|
@ -274,12 +244,13 @@ background:transparent url(../images/icons/twotone/green/news.gif) no-repeat 0 4
|
|||
.pagination .nav_prev a,
|
||||
.pagination .nav_next a {
|
||||
background-repeat:no-repeat;
|
||||
border-color:#D1D9E4;
|
||||
}
|
||||
.pagination .nav_prev a {
|
||||
background-image:url(../images/icons/twotone/green/arrow-left.gif);
|
||||
background-position:0 45%;
|
||||
background-position:10% 45%;
|
||||
}
|
||||
.pagination .nav_next a {
|
||||
background-image:url(../images/icons/twotone/green/arrow-right.gif);
|
||||
background-position:100% 45%;
|
||||
background-position:90% 45%;
|
||||
}
|
||||
|
|
9
theme/default/css/ie.css
Normal file
9
theme/default/css/ie.css
Normal file
|
@ -0,0 +1,9 @@
|
|||
/* IE specific styles */
|
||||
|
||||
.notice-options input.submit {
|
||||
color:#fff;
|
||||
}
|
||||
|
||||
#site_nav_local_views a {
|
||||
background-color:#ACCCDA;
|
||||
}
|
|
@ -92,12 +92,6 @@ color:#333;
|
|||
color:#000;
|
||||
}
|
||||
|
||||
#form_notice #notice_data-attach_view {
|
||||
background-image:url(../images/icons/twotone/green/paper-clip.gif);
|
||||
background-repeat:no-repeat;
|
||||
background-position:0 45%;
|
||||
background-color:transparent;
|
||||
}
|
||||
|
||||
#nav_register a {
|
||||
text-decoration:none;
|
||||
|
@ -123,8 +117,6 @@ background-color:rgba(255, 255, 255, 0.7);
|
|||
}
|
||||
|
||||
|
||||
|
||||
|
||||
#page_notice .error {
|
||||
background-color:#F7E8E8;
|
||||
}
|
||||
|
@ -144,8 +136,6 @@ background-color:#9BB43E;
|
|||
}
|
||||
|
||||
|
||||
|
||||
|
||||
#export_data li a {
|
||||
background-repeat:no-repeat;
|
||||
background-position:0 45%;
|
||||
|
@ -164,6 +154,7 @@ background-image:url(../../base/images/icons/icon_vcard.gif);
|
|||
}
|
||||
|
||||
|
||||
.entity_edit a,
|
||||
.entity_send-a-message a,
|
||||
.form_user_nudge input.submit,
|
||||
.form_user_block input.submit,
|
||||
|
@ -185,6 +176,9 @@ color:#fff;
|
|||
background-color:#87B4C8;
|
||||
}
|
||||
|
||||
.entity_edit a {
|
||||
background-image:url(../images/icons/twotone/green/edit.gif);
|
||||
}
|
||||
.entity_send-a-message a {
|
||||
background-image:url(../images/icons/twotone/green/quote.gif);
|
||||
}
|
||||
|
@ -204,30 +198,6 @@ background-image:url(../images/icons/twotone/green/shield.gif);
|
|||
background-color:#fcfcfc;
|
||||
}
|
||||
|
||||
.notice-data a span {
|
||||
background-color:transparent;
|
||||
background-repeat:no-repeat;
|
||||
background-position:0 45%;
|
||||
}
|
||||
.notice_video .notice-data a span {
|
||||
background-image:url(../images/icons/twotone/green/camera.gif);
|
||||
}
|
||||
.notice_audio .notice-data a span {
|
||||
background-image:url(../images/icons/twotone/green/music.gif);
|
||||
}
|
||||
.notice_image .notice-data a span {
|
||||
background-image:url(../images/icons/twotone/green/search.gif);
|
||||
}
|
||||
.notice_event .notice-data a span {
|
||||
background-image:url(../images/icons/twotone/green/calendar.gif);
|
||||
}
|
||||
.notice_location .notice-data a span {
|
||||
background-image:url(../images/icons/twotone/green/flag.gif);
|
||||
}
|
||||
.notice_document .notice-data a span {
|
||||
background-image:url(../images/icons/twotone/green/document.gif);
|
||||
}
|
||||
|
||||
.notice-options .notice_reply a,
|
||||
.notice-options form input.submit {
|
||||
background-color:transparent;
|
||||
|
|
Loading…
Reference in New Issue
Block a user