diff --git a/design/dashboard.handlebars b/design/dashboard.handlebars index 7872a15..97c6412 100644 --- a/design/dashboard.handlebars +++ b/design/dashboard.handlebars @@ -13,7 +13,7 @@ 🚀 boosted by {{booster.name}} {{/if}} - {{> note note=note}} + {{> note note=note me=../me}} {{/with}} {{/each}} @@ -37,4 +37,4 @@ {{/if}}{{/each}} app.pollForPosts(); - \ No newline at end of file + diff --git a/design/dms.handlebars b/design/dms.handlebars index 5d3eab6..980e8d9 100644 --- a/design/dms.handlebars +++ b/design/dms.handlebars @@ -1,9 +1,11 @@
Messages
- {{#if inboxes}} - {{#each inboxes}} + {{#if inboxesWithAccounts}} + {{#each inboxesWithAccounts}}
- {{getUsername this.id}} + + {{> avatar actor=this.actor mini=true nolink=true}} + {{getUsername this.id}}
{{/each}} {{else}} @@ -38,4 +40,4 @@ {{/if}} \ No newline at end of file + diff --git a/design/layouts/private.handlebars b/design/layouts/private.handlebars index 632db59..7e70b76 100644 --- a/design/layouts/private.handlebars +++ b/design/layouts/private.handlebars @@ -19,6 +19,7 @@
  • 🔔 Notifications
  • đŸ’Ŧ Messages
  • ➕ Compose
  • +
  • âš™ī¸ Settings
  • diff --git a/design/notifications.handlebars b/design/notifications.handlebars index 477bc51..8b01b2a 100644 --- a/design/notifications.handlebars +++ b/design/notifications.handlebars @@ -26,6 +26,9 @@ {{{...note.content}}}
    {{/isEq}} + {{#isEq notification.type "Vote"}} +
    đŸ—ŗ {{../actor.name}} voted on your poll {{timesince ../time}}
    + {{/isEq}} {{#isEq notification.type "Follow"}}
    🤷đŸŊâ€â™‚ī¸ {{../actor.name}} followed you {{timesince ../time}}
    {{> byline actor=../actor}} @@ -42,4 +45,4 @@ {{/if}}{{/each}} app.pollForPosts(); - \ No newline at end of file + diff --git a/design/partials/avatar.handlebars b/design/partials/avatar.handlebars index 99b02f5..6547bf8 100644 --- a/design/partials/avatar.handlebars +++ b/design/partials/avatar.handlebars @@ -1,7 +1,21 @@ +{{#if nolink}} +{{else}} +{{/if}} {{#if actor.icon.url}} - + {{#if mini}} + + {{else}} + + {{/if}} {{else}} - + {{#if mini}} + + {{else}} + + {{/if}} {{/if}} +{{#if nolink}} +{{else}} +{{/if}} diff --git a/design/partials/composer.handlebars b/design/partials/composer.handlebars index 5028afa..9bbafd3 100644 --- a/design/partials/composer.handlebars +++ b/design/partials/composer.handlebars @@ -6,25 +6,184 @@ {{{originalPost.content}}} {{else}} -
    Compose
    + {{#if prev}} +
    Edit
    + {{else}} + {{/if}} {{/if}} -
    - - + + + {{#if names}} + Vote for: + + + + {{else}} + + + + + + + + + + {{#if prev}} + + {{/if}} + {{/if}} + + + {{#each names}} + + {{/each}} +
    \ No newline at end of file + let togglepollButton = document.getElementById('togglepoll'); + togglepollButton.onclick = function() { + let div = document.getElementById('polldesigner'); + if (div.style.display !== 'none') { + div.style.display = 'none'; + pollReset(); + updatePollHTML(true); + } else { + pollReset(); + updatePollHTML(false); + div.style.display = 'block'; + } + }; + }); + diff --git a/design/partials/note.handlebars b/design/partials/note.handlebars index 27139b2..d866897 100644 --- a/design/partials/note.handlebars +++ b/design/partials/note.handlebars @@ -14,6 +14,28 @@

    Show Thread

    {{/if}} + {{#if (isEq note.type 'Question')}} +
    +
    + {{#each note.oneOf}} + + ({{replies.totalItems}})
    + {{/each}} + {{#each note.anyOf}} + + ({{replies.totalItems}})
    + {{/each}} +
    +
    + {{#if (expired note.endTime)}} + Ended {{timesince note.endTime}} + {{else}} + Ends {{timesince note.endTime}} + {{/if}} +
    + Votes cast: {{note.votersCount}}
    + {{/if}} + {{#each note.attachment}}
    {{#isImage mediaType}} @@ -25,6 +47,7 @@
    {{/each}} diff --git a/design/public/note.handlebars b/design/public/note.handlebars index 1482565..3b6cb4f 100644 --- a/design/public/note.handlebars +++ b/design/public/note.handlebars @@ -37,6 +37,27 @@ {{/isVideo}} {{/each}} + {{#if (isEq note.type 'Question')}} +
    +
    + {{#each note.oneOf}} + + ({{replies.totalItems}})
    + {{/each}} + {{#each note.anyOf}} + + ({{replies.totalItems}})
    + {{/each}} +
    +
    + {{#if (expired note.endTime)}} + Ended {{timesince note.endTime}} + {{else}} + Ends {{timesince note.endTime}} + {{/if}} +
    + Votes cast: {{note.votersCount}}
    + {{/if}}