From 5920a96da7f71b45b7d386d27da2c130e3ddb23f Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Sat, 31 Oct 2015 00:38:01 +0100 Subject: make attachments appear in a dropdown in wall-item-tools-left --- include/text.php | 2 +- view/tpl/conv_item.tpl | 19 ++++++++++--------- view/tpl/conv_list.tpl | 14 +++++++------- view/tpl/item_attach.tpl | 2 +- 4 files changed, 19 insertions(+), 18 deletions(-) diff --git a/include/text.php b/include/text.php index 5df7bb4a1..c2573da0c 100644 --- a/include/text.php +++ b/include/text.php @@ -1233,7 +1233,7 @@ function theme_attachments(&$item) { if($label == ' ') $label = t('Unknown Attachment'); - $title = t('Attachment') . ' - ' . (($r['length']) ? userReadableSize($r['length']) : t('Size Unknown')); + $title = t('Size') . ' ' . (($r['length']) ? userReadableSize($r['length']) : t('unknown')); require_once('include/identity.php'); if(is_foreigner($item['author_xchan'])) diff --git a/view/tpl/conv_item.tpl b/view/tpl/conv_item.tpl index 760d64db0..4782f827b 100755 --- a/view/tpl/conv_item.tpl +++ b/view/tpl/conv_item.tpl @@ -69,11 +69,6 @@ {{$item.folders}} {{/if}} - {{if $item.attachments}} -
- {{$item.attachments}} -
- {{/if}}
{{/if}} @@ -157,9 +152,15 @@
- {{if $item.responses }} -
- {{foreach $item.responses as $verb=>$response}} + {{if $item.responses || $item.attachments}} +
+ {{if $item.attachments}} +
+ + +
+ {{/if}} + {{foreach $item.responses as $verb=>$response}} {{if $response.count}}
@@ -188,7 +189,7 @@ {{/if}}
{{/if}} - {{/foreach}} + {{/foreach}}
{{/if}}
diff --git a/view/tpl/conv_list.tpl b/view/tpl/conv_list.tpl index a3fb642ce..53f65bc78 100755 --- a/view/tpl/conv_list.tpl +++ b/view/tpl/conv_list.tpl @@ -66,11 +66,6 @@ {{$item.folders}}
{{/if}} - {{if $item.attachments}} -
- {{$item.attachments}} -
- {{/if}}
{{/if}} @@ -151,7 +146,13 @@
-
+
+ {{if $item.attachments}} +
+ + +
+ {{/if}}
{{/if}} - {{if $item.responses }} {{foreach $item.responses as $verb=>$response}} {{if $response.count}} diff --git a/view/tpl/item_attach.tpl b/view/tpl/item_attach.tpl index 7638f39e7..67accc1ec 100644 --- a/view/tpl/item_attach.tpl +++ b/view/tpl/item_attach.tpl @@ -1,5 +1,5 @@ {{if $attaches}} {{foreach $attaches as $a}} - {{$a.label}} +
  •  {{$a.label}}
  • {{/foreach}} {{/if}} -- cgit v1.2.3