summaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-02-09 12:03:45 -0500
committerEvan Prodromou <evan@controlyourself.ca>2009-02-09 12:03:45 -0500
commit73b8de7c4c70d9d53537191ca273e131b76b81e9 (patch)
treefec956d81e619218ba10f1d5650414ee83a2628d /actions
parent9e23b5c5d706f4573261d6530688a44a8b80bcf4 (diff)
parent805560677bc66a58c270551fa54b613642b3af97 (diff)
Merge branch 'sgmurphy-clone/0.7.x' into 0.7.x
Diffstat (limited to 'actions')
-rw-r--r--actions/showstream.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/actions/showstream.php b/actions/showstream.php
index 28bb8453f..6bed700c2 100644
--- a/actions/showstream.php
+++ b/actions/showstream.php
@@ -248,6 +248,15 @@ class ShowstreamAction extends Action
'height' => AVATAR_PROFILE_SIZE,
'alt' => $this->profile->nickname));
$this->elementEnd('dd');
+
+ $user = User::staticGet('id', $this->profile->id);
+ $cur = common_current_user();
+ if ($cur && $cur->id == $user->id) {
+ $this->elementStart('dd');
+ $this->element('a', array('href' => common_local_url('avatarsettings')), _('Edit Avatar'));
+ $this->elementEnd('dd');
+ }
+
$this->elementEnd('dl');
$this->elementStart('dl', 'entity_nickname');
@@ -346,7 +355,6 @@ class ShowstreamAction extends Action
$this->elementEnd('li');
}
- $user = User::staticGet('id', $this->profile->id);
if ($cur && $cur->id != $user->id && $cur->mutuallySubscribed($user)) {
$this->elementStart('li', 'entity_send-a-message');
$this->element('a', array('href' => common_local_url('newmessage', array('to' => $user->id)),