From 2b4c5ecff4e4457c49a14d3ed0095cc9f0e1f758 Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 14 Feb 2017 13:59:26 +0900 Subject: Implement the poll feature Closes #164 --- src/web/app/common/tags/index.js | 2 + src/web/app/common/tags/poll-editor.tag | 47 ++++++++++++ src/web/app/common/tags/poll.tag | 73 +++++++++++++++++++ src/web/app/desktop/tags/notifications.tag | 6 ++ src/web/app/desktop/tags/post-form.tag | 12 +++ src/web/app/desktop/tags/timeline-post.tag | 4 + src/web/app/mobile/tags/notification-preview.tag | 34 +++++---- src/web/app/mobile/tags/notification.tag | 93 ++++++++++++++++++------ src/web/app/mobile/tags/post-form.tag | 12 +++ src/web/app/mobile/tags/timeline-post.tag | 4 + 10 files changed, 251 insertions(+), 36 deletions(-) create mode 100644 src/web/app/common/tags/poll-editor.tag create mode 100644 src/web/app/common/tags/poll.tag (limited to 'src/web') diff --git a/src/web/app/common/tags/index.js b/src/web/app/common/tags/index.js index ef61d51ba4..692a7070a4 100644 --- a/src/web/app/common/tags/index.js +++ b/src/web/app/common/tags/index.js @@ -18,3 +18,5 @@ require('./signin-history.tag'); require('./api-info.tag'); require('./twitter-setting.tag'); require('./authorized-apps.tag'); +require('./poll.tag'); +require('./poll-editor.tag'); diff --git a/src/web/app/common/tags/poll-editor.tag b/src/web/app/common/tags/poll-editor.tag new file mode 100644 index 0000000000..04c712b611 --- /dev/null +++ b/src/web/app/common/tags/poll-editor.tag @@ -0,0 +1,47 @@ + + + + + + diff --git a/src/web/app/common/tags/poll.tag b/src/web/app/common/tags/poll.tag new file mode 100644 index 0000000000..8c14b895eb --- /dev/null +++ b/src/web/app/common/tags/poll.tag @@ -0,0 +1,73 @@ + + +

{ total }人が投票

+ + +
diff --git a/src/web/app/desktop/tags/notifications.tag b/src/web/app/desktop/tags/notifications.tag index aaf72bb2ca..3c5f3d89e2 100644 --- a/src/web/app/desktop/tags/notifications.tag +++ b/src/web/app/desktop/tags/notifications.tag @@ -39,6 +39,12 @@

{ notification.post.user.name }

{ getPostSummary(notification.post) } + + avatar + +

{ notification._datetext }{ notifications[i + 1]._datetext }

diff --git a/src/web/app/desktop/tags/post-form.tag b/src/web/app/desktop/tags/post-form.tag index 872e928816..d4b93a6a18 100644 --- a/src/web/app/desktop/tags/post-form.tag +++ b/src/web/app/desktop/tags/post-form.tag @@ -10,9 +10,11 @@

残り{ 4 - files.length }

+
+

のこり{ 1000 - refs.text.value.length }文字