diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-12-11 18:12:33 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-12-11 18:12:33 +0000 |
| commit | b09db63082ae3aea8d1f4f8d24664dbf7de96bcc (patch) | |
| tree | 3a8fc24f5d2da5205ac0418c81eab6698761a239 /roundcubemail/program/steps/mail/show.inc | |
| parent | 00572749829e7c6363684f5692af3930aa955d8e (diff) | |
Make string for unread count configureable by skin; add file type classes to attachments list
git-svn-id: https://svn.roundcube.net/trunk@5592 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps/mail/show.inc')
| -rw-r--r-- | roundcubemail/program/steps/mail/show.inc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/roundcubemail/program/steps/mail/show.inc b/roundcubemail/program/steps/mail/show.inc index d7b9d4f9e..46a5597d1 100644 --- a/roundcubemail/program/steps/mail/show.inc +++ b/roundcubemail/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( |
