This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/plugins/poll
Vikhyat Korrapati 2928ce6ca1 Remove the colon from the poll prefix, drop regex support.
This is needed to make it possible to programmatically toggle between
open and closed polls.
2014-04-11 08:41:37 +05:30
..
assets/javascripts Switch the awkward poll.post.poll_details.closed to poll.closed. 2014-04-11 08:13:02 +05:30
config/locales Remove the colon from the poll prefix, drop regex support. 2014-04-11 08:41:37 +05:30
spec Remove the colon from the poll prefix, drop regex support. 2014-04-11 08:41:37 +05:30
plugin.rb Make polls work better on multi-language forums. 2014-04-01 18:32:52 +05:30
poll.rb Remove the colon from the poll prefix, drop regex support. 2014-04-11 08:41:37 +05:30
README.md Update README.md for poll plugin 2014-04-08 23:19:19 -04:00

Poll plugin

Allows you to add a poll to the first post of a topic.

Usage

  1. Make your topic title start with "Poll: "
  2. Include a list in your post (the first list will be used)

Closing the poll

Change the start of the topic title from "Poll: " to "Closed Poll: "

Note: closing a topic will also close the poll.

Specifying the list to be used for the poll

If you have multiple lists in your post and the first list is not the one you want to use for the poll, you can identify the list to be used like this:

Intro Text
   
- Item one
- Item two
   
Here are your choices:
   
[poll]
- Option 1
- Option 2
[/poll]