diff options
author | Evan Prodromou <evan@status.net> | 2009-12-11 10:49:26 -0500 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2009-12-11 10:49:26 -0500 |
commit | 81843f2acd5375a9072d091fd58c6a6af079295e (patch) | |
tree | 00de15d57a7e361408a561b4762f491011d42235 /lib/noticelist.php | |
parent | c9649f932153e6636214841858fd265b1476c05b (diff) |
show the repeat form in notice lists
Diffstat (limited to 'lib/noticelist.php')
-rw-r--r-- | lib/noticelist.php | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/noticelist.php b/lib/noticelist.php index 21cec528f..924056ece 100644 --- a/lib/noticelist.php +++ b/lib/noticelist.php @@ -212,6 +212,7 @@ class NoticeListItem extends Widget $this->out->elementStart('div', 'notice-options'); $this->showFaveForm(); $this->showReplyLink(); + $this->showRepeatForm(); $this->showDeleteLink(); $this->out->elementEnd('div'); } @@ -552,6 +553,26 @@ class NoticeListItem extends Widget } /** + * show the form to repeat a notice + * + * @return void + */ + + function showRepeatForm() + { + $user = common_current_user(); + if ($user && $user->id != $this->notice->profile_id) { + $profile = $user->getProfile(); + if ($profile->hasRepeated($this->notice->id)) { + $this->out->text(_('Repeated')); + } else { + $rf = new RepeatForm($this->out, $this->notice); + $rf->show(); + } + } + } + + /** * finish the notice * * Close the last elements in the notice list item |