From 3db6579300983a69240b32c32da4d3de1ab6a0f0 Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Sun, 4 Feb 2018 19:56:06 -0800 Subject: [PATCH] big refactor of media attachments --- routes/_components/status/Media.html | 193 +++++++++--------- .../_components/status/MediaAttachments.html | 49 +++++ .../status/StatusMediaAttachments.html | 8 +- routes/_static/media.js | 2 + 4 files changed, 147 insertions(+), 105 deletions(-) create mode 100644 routes/_components/status/MediaAttachments.html create mode 100644 routes/_static/media.js diff --git a/routes/_components/status/Media.html b/routes/_components/status/Media.html index 32e6d0b6..4d50ff53 100644 --- a/routes/_components/status/Media.html +++ b/routes/_components/status/Media.html @@ -1,96 +1,73 @@ -
- {{#each mediaAttachments as media}} - {{#if media.type === 'video'}} - - {{else}} - - {{/if}} - {{/each}} -
+{{#if media.type === 'video'}} + +{{else}} + +{{/if}} \ No newline at end of file diff --git a/routes/_components/status/StatusMediaAttachments.html b/routes/_components/status/StatusMediaAttachments.html index dd0e2073..eff8d34c 100644 --- a/routes/_components/status/StatusMediaAttachments.html +++ b/routes/_components/status/StatusMediaAttachments.html @@ -12,7 +12,7 @@ - + {{else}}