From c73223c9682c7e1be152908261cfd4a075f8fea0 Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Sun, 28 Jan 2018 21:07:31 -0800 Subject: [PATCH] simplify ExternalLink --- routes/_components/ExternalLink.html | 43 +++++++++---------- routes/_components/status/Status.html | 18 ++------ .../_components/timeline/StatusListItem.html | 1 - routes/_components/timeline/Timeline.html | 3 +- 4 files changed, 26 insertions(+), 39 deletions(-) diff --git a/routes/_components/ExternalLink.html b/routes/_components/ExternalLink.html index c2879b65..841b97cc 100644 --- a/routes/_components/ExternalLink.html +++ b/routes/_components/ExternalLink.html @@ -1,31 +1,30 @@ -{{#if class}} - - - {{#if showIcon}} - - - - {{/if}} - -{{else}} - - - {{#if showIcon}} - - - - {{/if}} - -{{/if}} + + + {{#if showIcon}} + + + + {{/if}} + \ No newline at end of file + + \ No newline at end of file diff --git a/routes/_components/status/Status.html b/routes/_components/status/Status.html index f252bc38..e8336bf5 100644 --- a/routes/_components/status/Status.html +++ b/routes/_components/status/Status.html @@ -7,25 +7,15 @@ - {{#if timelineType === 'account' && timelineValue === status.account.id}} - {{status.account.username}} - {{else}} - {{status.account.username}} - {{/if}} + {{status.account.username}} boosted {{/if}}
- {{#if timelineType === 'account' && timelineValue === originalAccount.id}} - - {{originalAccount.display_name || originalAccount.username}} - - {{else}} - - {{originalAccount.display_name || originalAccount.username}} - - {{/if}} + + {{originalAccount.display_name || originalAccount.username}} + {{'@' + originalAccount.acct}} diff --git a/routes/_components/timeline/StatusListItem.html b/routes/_components/timeline/StatusListItem.html index 6b9635ec..61b14eb8 100644 --- a/routes/_components/timeline/StatusListItem.html +++ b/routes/_components/timeline/StatusListItem.html @@ -1,6 +1,5 @@ diff --git a/routes/_components/timeline/Timeline.html b/routes/_components/timeline/Timeline.html index fd29a82e..803dd3fa 100644 --- a/routes/_components/timeline/Timeline.html +++ b/routes/_components/timeline/Timeline.html @@ -33,9 +33,8 @@ LoadingFooter: LoadingFooter }), computed: { - makeProps: ($currentInstance, timelineType, timelineValue) => async (statusId) => ({ + makeProps: ($currentInstance, timelineType) => async (statusId) => ({ timelineType: timelineType, - timelineValue: timelineValue, status: await database.getStatus($currentInstance, statusId) }), label: (timeline, $currentInstance, timelineType, timelineValue) => {