Couple quick fixes for profile view.

This commit is contained in:
Samantha Doherty 2011-03-14 22:40:31 -04:00
parent c6a6d41dab
commit 0ff7bf77e4

View File

@ -36,7 +36,7 @@ class ProfileDetailAction extends ShowstreamAction
function showStylesheets() { function showStylesheets() {
parent::showStylesheets(); parent::showStylesheets();
$this->cssLink('plugins/ExtendedProfile/profiledetail.css'); $this->cssLink('plugins/ExtendedProfile/css/profiledetail.css');
return true; return true;
} }
@ -45,6 +45,7 @@ class ProfileDetailAction extends ShowstreamAction
$cur = common_current_user(); $cur = common_current_user();
if ($cur && $cur->id == $this->profile->id) { // your own page if ($cur && $cur->id == $this->profile->id) { // your own page
$this->elementStart('div', 'entity_actions'); $this->elementStart('div', 'entity_actions');
$this->elementStart('ul');
$this->elementStart('li', 'entity_edit'); $this->elementStart('li', 'entity_edit');
$this->element('a', array('href' => common_local_url('profiledetailsettings'), $this->element('a', array('href' => common_local_url('profiledetailsettings'),
// TRANS: Link title for link on user profile. // TRANS: Link title for link on user profile.
@ -52,6 +53,7 @@ class ProfileDetailAction extends ShowstreamAction
// TRANS: Link text for link on user profile. // TRANS: Link text for link on user profile.
_m('Edit')); _m('Edit'));
$this->elementEnd('li'); $this->elementEnd('li');
$this->elementEnd('ul');
$this->elementEnd('div'); $this->elementEnd('div');
} }