summaryrefslogtreecommitdiff
path: root/lib/noticelist.php
diff options
context:
space:
mode:
authorRobin Millette <millette@controlyourself.ca>2009-06-09 15:18:12 -0400
committerRobin Millette <millette@controlyourself.ca>2009-06-09 15:18:12 -0400
commit27af3c67a2a9ea856aa2de041a986d452cce3025 (patch)
tree2d4a6c93e33ec0fb32b572e26323352356aa13d5 /lib/noticelist.php
parentfe38827a76520e4a910f9e988b11d0914872d44e (diff)
Improve file upload and attachment interface.
Diffstat (limited to 'lib/noticelist.php')
-rw-r--r--lib/noticelist.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/noticelist.php b/lib/noticelist.php
index 5513e317e..9ace341d8 100644
--- a/lib/noticelist.php
+++ b/lib/noticelist.php
@@ -364,6 +364,10 @@ class NoticeListItem extends Widget
// versions (>> 0.4.x)
$this->out->raw(common_render_content($this->notice->content, $this->notice));
}
+ $uploaded = $this->notice->getUploadedAttachment();
+ if ($uploaded) {
+ $this->out->element('a', array('href' => $uploaded, 'class' => 'attachment'), $uploaded);
+ }
$this->out->elementEnd('p');
}
@@ -395,10 +399,6 @@ class NoticeListItem extends Widget
'title' => $dt),
common_date_string($this->notice->created));
- $f2p = File_to_post::staticGet('post_id', $this->notice->id);
- if (!empty($f2p)) {
- $this->out->text(_(' (with attachments) '));
- }
$this->out->elementEnd('a');
$this->out->elementEnd('dd');
$this->out->elementEnd('dl');