Blake Erickson
69498a58e9
FEATURE: Staff only poll results ( #7984 )
...
* FEATURE: Staff only poll results
These changes allow only staff to see the results of a poll.
Non-staff users will be shown a screen like this:
1b8bd76013
.png
The "Votes are public" message has been removed from the info section,
and the button to show the votes has been replaced with a message
stating the results will only be shown to staff.
* Update PR based on feedback
* Update plugins/poll/app/models/poll.rb
make sure we return a boolean
Co-Authored-By: Régis Hanol <regis@hanol.fr>
2019-08-15 12:27:18 -06:00
Joffrey JAFFEUX
bfea922167
DEV: global s/this.get\("(\w+)"\)/this.$1 ( #7592 )
2019-05-27 10:15:39 +02:00
Joffrey JAFFEUX
502b1316d0
DEV: s/this._super()/this._super(...arguments) ( #6908 )
2019-01-19 10:05:51 +01:00
Régis Hanol
4459665dee
REFACTOR: use tables instead of custom fields for polls ( #6359 )
...
Co-authored-by: Guo Xiang Tan <tgx_world@hotmail.com>
2018-11-19 14:50:00 +01:00
Joffrey JAFFEUX
60ff0e9b8c
missing prettified files
2018-06-15 18:42:20 +02:00
Régis Hanol
5d445fb810
FIX: properly handle invalid auto close date for polls
2018-06-12 15:31:09 +02:00
Régis Hanol
ba14c80b9c
FEATURE: automatically close a poll on a given date and time
2018-05-03 02:12:19 +02:00
Eric Berry
ab22c8cad4
FIX: Infinite loop when poll step is zero ( #5380 )
...
* Fix infinite loop when poll step is zero
* Add test for step minimum and for breaking test
* Remove trailing spaces (eslint)
* Remove extra space (eslint)
* Removed test call .twice
2017-11-30 17:04:41 +01:00
Rafael dos Santos Silva
8b383bb26a
FIX: Poll builder validation was incorrect
2017-04-05 00:15:39 -03:00
Bianca Nenciu
c423544208
Changed combo-box to number inputs for min, max and step values.
2017-03-15 10:56:11 +08:00
Robin Ward
28061316ad
Migrate poll plugin to use components
2016-11-21 14:49:46 -05:00
Robin Ward
fab36e6cf7
Fix more deprecations:
...
- Remove all `needs:` code
2016-10-21 17:28:37 -04:00
Guo Xiang Tan
85a91c8b81
Remove unused property.
2016-07-28 21:28:49 +08:00
Guo Xiang Tan
33a628b0b0
UX: Vote now button to show up as primary once options have been selected.
2016-07-21 06:05:06 +08:00
Guo Xiang Tan
5f481ec097
Merge pull request #4328 from dachary/wip-poll-empty-lines
...
FIX: poll builder should ignore empty lines
2016-07-17 09:24:36 +08:00
Loic Dachary
f152900969
FIX: poll builder should ignore empty lines
...
Although pollOptionsCount skips empty lines, pollOutput inserts empty
lines. Skip them instead.
Signed-off-by: Loic Dachary <loic@dachary.org>
2016-07-14 09:27:43 +02:00
Robin Ward
b8125b3512
REFACTOR: Remove Discourse.Ajax
2016-07-11 12:57:05 -04:00
Robin Ward
56f07529bb
REFACTOR: Migrate more legacy JS to ES6
2016-07-11 12:57:05 -04:00
Guo Xiang Tan
3cb8bbb851
UX: Automatically generate poll name for poll builder.
2016-07-05 22:15:52 +08:00
Guo Xiang Tan
6416ea9e09
FIX: Make sure we reset poll builder after inserting a poll.
2016-06-20 18:16:18 +08:00
Guo Xiang Tan
01c563ca85
FIX: Use internal value for poll builder.
2016-06-20 12:40:44 +08:00
Guo Xiang Tan
4df224bb79
FIX: Trim whitespaces and do a global replace.
2016-06-16 16:35:23 +08:00
Guo Xiang Tan
e1cfe7536c
FIX: Add default values when no value has been selected.
2016-06-15 12:54:52 +08:00
Guo Xiang Tan
ae5a033469
Start checking eslint in plugins.
2016-06-15 11:14:24 +08:00
Guo Xiang Tan
8d46727d67
FEATURE: Poll UI Builder.
2016-06-15 11:14:24 +08:00
Guo Xiang Tan
a36203ff78
PERF: Paginate public polls.
2016-06-12 16:14:53 +08:00
Guo Xiang Tan
5a03eca74a
UX: Add info when poll is public.
2016-06-09 22:15:08 +08:00
Guo Xiang Tan
7b6fb17bbb
One line import.
2016-06-08 17:23:05 +08:00
Guo Xiang Tan
8ecde35df3
FEATURE: Add public type to polls.
2016-06-08 16:19:13 +08:00
Guo Xiang Tan
7aac5baeed
FIX: Make sure model is updated when polls change.
2016-06-08 14:42:23 +08:00
Régis Hanol
b575f97ece
FIX: allows polls on closed topics
2016-03-21 12:12:25 +01:00
Sam Saffron
57944a0694
PERF: only subscribe to a topic once for polls
...
in the past as views were created and destroyed poll subscriptions would change
this caused a lot of load on messaging bus and uneeded traffic
2016-01-06 20:36:09 +11:00
Régis Hanol
cc75890cd4
UX: disable 'Hide results' button when poll is closed
2015-09-16 13:01:08 +02:00
Robin Ward
8be37193ee
Trivial changes to poll plugin, including a small typo fix.
2015-07-07 10:51:51 -04:00
Régis Hanol
90c05ff045
FIX: two-column poll
2015-05-04 22:29:45 +02:00
Régis Hanol
86d7412f30
REFACTOR: rename "total_votes" poll field to the more accurate "voters"
...
FEATURE: automagically load plugin's migrations
2015-05-04 16:01:57 +02:00
Régis Hanol
8129cce104
FIX: clicking "show results" wasn't working after casting a vote
2015-04-24 17:24:13 +02:00
Régis Hanol
a737090442
- FEATURE: revamped poll plugin
...
- add User.staff scope
- inject MessageBus into Ember views (so it can be used by the poll plugin)
- REFACTOR: use more accurate is_first_post? method instead of post_number == 1
- FEATURE: add support for JSON-typed custom fields
- FEATURE: allow plugins to add validation
- FEATURE: add post_custom_fields to PostSerializer
- FEATURE: allow plugins to whitelist post_custom_fields
- FIX: don't bump when post did not save successfully
- FEATURE: polls are supported in any post
- FEATURE: allow for multiple polls in the same post
- FEATURE: multiple choice polls
- FEATURE: rating polls
- FEATURE: new dialect allowing users to preview polls in the composer
2015-04-23 19:33:29 +02:00
Régis Hanol
4714a562d9
FIX: Poll requires logged in user to log in again
...
FIX: Open/Closing the poll wasn't updating the UI
REFACTOR: ES6 FTW
2015-03-03 16:17:07 +01:00
riking
06f02ce9fc
FIX: 🈂️ Allow closing polls in multi-locale sites
2015-02-05 19:55:03 -08:00
Robin Ward
0adfeb1cff
ES6: Mega update of controllers
2014-08-13 10:22:47 -04:00
Robin Ward
41a4a58af1
FIX: Thanks .gitignore, I missed a necessary file!
2014-05-15 17:57:13 -04:00