Commit graph

36 commits

Author SHA1 Message Date
Charlie DeTar
ed09d0ea7c Fully abstract isAdmin
We're using a fork with a different definition of "isAdmin" (using
``meteor-roles`` rather than the boolean user.isAdmin).  ``lib/user.js``
provides abstracted methods for reading admin state, which makes it very
easy to change our definition -- except that the abstractions weren't
used universally.

This commit finishes the job of using the abstractions, and adds a few
new parts to also allow abstracting setting and updating admin-ness:

 - setAdmin: sets admin status directly on a user object.
 - updateAdmin: executes a mongo update to set admin status.
 - adminMongoQuery: the query parameter for admin-ness, for composing
   user queries with other fields.
 - notAdminMongoQuery: the query parameter for not-admin-ness.
2014-10-03 16:21:06 -06:00
shaialon
6592f5761a Change to user / userId 2014-09-26 23:06:12 +03:00
Sacha Greif
3fda433082 Making comment upvote/downvote work with custom templates 2014-09-18 09:35:42 +09:00
Mitchell Wulfman
6fc6b9eb78 cleanup while getting familiar with the codebase 2014-09-16 15:18:27 -04:00
Niklas Ström
ed97a26d45 removed the last few references to the old sign in flow - (trying to up up vote comments without being signed in etc.)
also unified all references to /sign-in to use the getSigninUrl()
2014-09-08 01:52:09 +08:00
Sacha Greif
c40fbcb9f3 working on mobile version; added new postHeading and postMeta hooks 2014-07-14 10:12:02 +09:00
Sacha Greif
fe3745e1e3 fix #327 2014-07-13 11:15:58 +09:00
Sacha Greif
fa25d69444 fixing comment bugs 2014-07-05 16:21:28 +09:00
Sacha Greif
615bb4c6c2 making all template includes dynamic 2014-07-05 11:42:28 +09:00
Sacha Greif
c483464f4d making all template helpers dynamic 2014-07-05 11:24:28 +09:00
Sacha Greif
e1919593e7 refactoring dates and timestamps 2014-07-03 13:15:23 +09:00
Sacha Greif
9ebc910465 using marked package 2014-07-03 10:40:04 +09:00
Sacha Greif
57487e5abf using hotkeys package 2014-07-03 10:15:19 +09:00
Sacha Greif
a99a0f89e6 fixing new comments validation 2014-06-22 10:34:39 +09:00
Tarang Patel
39eb1c8e0a Update Events
Move from using depreciated event declaration style. Still supported
not sure if future proof (see
https://github.com/meteor/meteor/blob/devel/packages/templating/deftempl
ate.js#L184)
2013-11-24 16:13:53 +02:00
Toam
c527a00a62 merge 2013-11-09 02:02:05 +01:00
Toam
c06fe46a83 Localisation Common, Errors, Notifications and Users 2013-11-06 01:01:56 +01:00
Sacha Greif
3edfb38032 clean up upvoting/downvoting/scoring code 2013-10-29 15:06:50 +09:00
Sacha Greif
65e59767d1 got rid of digest publications; simplified digest subscription; publishing comment author user 2013-10-26 10:37:32 +09:00
Sacha Greif
9113541486 cleaning up 2013-10-23 10:45:12 +08:00
Sacha Greif
96e140ca10 working on comment queuing 2013-10-23 10:40:29 +08:00
Sacha Greif
497f4ca502 working on comment reply publication and comment queuing 2013-10-23 08:14:06 +08:00
Sacha Greif
2ce9d4022e adding a subscription for commenting users 2013-10-21 23:07:36 +08:00
Sacha Greif
cf2e2533bc replacing Meteor.Router.to by Router.go 2013-10-09 21:49:02 +09:00
Sacha Greif
7f246ac3f3 tweaking data contexts for comment list 2013-10-09 20:23:20 +09:00
Sacha Greif
2d8df6b3c2 working on comment reply 2013-10-09 20:11:58 +09:00
Sacha Greif
3f9955bdb3 Merge branch 'master' of github.com:SachaG/Telescope 2012-12-05 11:37:23 +09:00
Sacha Greif
f74a8396f6 when upvoting while not logged in, redirect instead of just throwing error 2012-12-05 11:22:14 +09:00
Tom Kruijsen
7665a1be79 Use generic getAvatarUrl instead of Gravatar. 2012-12-03 17:36:47 +01:00
Sacha Greif
b43ac5bd56 fixed comment timestamp bug 2012-11-22 09:08:12 +09:00
Sacha Greif
4e582acbaf moved permissions to own file 2012-11-21 14:18:30 +09:00
Sacha Greif
6c2589ab90 transformed window vars in Session vars 2012-11-21 13:44:03 +09:00
Sacha Greif
cf8a433b0c repressRecursion -> showChildComments 2012-11-21 13:41:27 +09:00
Tom Coleman
72d8115b1b New router is working, to some degree.
I switched over to router 2.0, and refactored the permissions a bit.
There's still a bit of work needed to get the permissions fully up to speed.
2012-11-21 14:28:18 +11:00
Sacha Greif
f2b4c7eead use getDisplayName for comment authors tooltips 2012-10-04 17:42:40 +09:00
Tom Coleman
e4f55a6377 Start of reorganization. 2012-10-04 11:17:57 +10:00
Renamed from client/templates/comment_item.js (Browse further)