looshi / Blaze-Haus

Edit blaze templates and css at runtime
6 stars 0 forks source link

Vote up Templates -- user rated templates #8

Closed looshi closed 9 years ago

looshi commented 9 years ago

Dependency :

5

must be implemented first.

The goal of this feature is to provide a rating system that is similar to youtube "like", or stackoverflow Vote Up. There will be no vote down, unless a compelling reason to do so.

It should :

  1. allow a user to vote up a template
  2. increment a field on the original template , Template.votes, for example
  3. display summary votes in the template listings page ( right now it's just the root page = "/" )
  4. not allow users to upvote a template more than once

the challenge of this feature is to allow the user to vote up the original template they clicked on, not the temporary document ( which is just a clone ) of the original template.

also, since there are no "real" users, the other major challenge is to block an individual from simply hitting refresh multiple times and up voting.

Perhaps it can be explicit "Vote Up on ---template name". Then if user makes a save and significant modifications this Vote Up feature does not appear. Just trying to avoid issues around whether or not the current template is "read only", meaning the user has to take some action to do a "save as", or a "fork" before they can make modifications.

looshi commented 9 years ago

done