summaryrefslogtreecommitdiff
path: root/program/steps
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2011-12-11 18:12:33 +0000
committerthomascube <thomas@roundcube.net>2011-12-11 18:12:33 +0000
commitce86f0f14f0cf1bf73f4f6045aea1fa00db432aa (patch)
tree351b0438991f9c512957c9269b01fc95c6b670c8 /program/steps
parent98c2d69acf3001379dc008dc52b77b618c291140 (diff)
Make string for unread count configureable by skin; add file type classes to attachments list
Diffstat (limited to 'program/steps')
-rw-r--r--program/steps/mail/show.inc8
1 files changed, 7 insertions, 1 deletions
diff --git a/program/steps/mail/show.inc b/program/steps/mail/show.inc
index d7b9d4f9e..46a5597d1 100644
--- a/program/steps/mail/show.inc
+++ b/program/steps/mail/show.inc
@@ -130,7 +130,13 @@ function rcmail_message_attachments($attrib)
$title = '';
}
- $ol .= html::tag('li', null,
+ $classes = array($attach_prop->ctype_primary ? $attach_prop->ctype_primary : 'unknown');
+ if ($attach_prop->ctype_secondary)
+ $classes[] = $attach_prop->ctype_secondary;
+ if (preg_match('/\.([a-z0-9]+)$/', $attach_prop->filename, $m))
+ $classes[] = $m[1];
+
+ $ol .= html::tag('li', join(' ', $classes),
html::a(array(
'href' => $MESSAGE->get_part_url($attach_prop->mime_id, false),
'onclick' => sprintf(