Commit graph

47 commits

Author SHA1 Message Date
Delgermurun
5cd7c53ff7 Messages package 2015-03-27 16:38:47 +08:00
Sacha Greif
a1d304445d highlight OP's comments 2015-03-13 09:41:15 +09:00
Sacha Greif
3b51d0ef1c bunch of small fixes 2015-01-20 16:18:27 +09:00
Anthony Mayer
f197b930e6 Cleaning up vote click handling functions and adding tests.
Also combining can.upvote and can.downvote and deleting unused permissions function and random cleanup.
2015-01-19 00:04:41 -08:00
Anthony Mayer
f9d9891fba Getting rid of redundant permissions functions
Switched everything over to use can.* functions from telescope-lib instead of using can* functions from lib/permissions.js, deleted lib/permissions.js, added some tests for permissions, and some other random cleanup like deleting unused code.

Conflicts:
	client/views/comments/comment_form.js
2015-01-07 08:22:46 +01:00
Anthony Mayer
e71be66c57 Should fix various url problems by taking siteUrl into account when getting route urls.
Trying to make as much use of path as possible on the client side.
2014-12-09 09:29:17 -08:00
Sacha Greif
ff8bf40694 Merge branch 'telescope-master-semantic-messages' of https://github.com/AdmitHub/Telescope into AdmitHub-telescope-master-semantic-messages
Conflicts:
	client/helpers/handlebars.js
	client/views/comments/comment_edit.js
	client/views/comments/comment_form.js
	client/views/comments/comment_item.js
	client/views/posts/modules/post_upvote.js
	client/views/posts/post_edit.js
	client/views/posts/post_submit.js
	client/views/users/user_edit.js
	client/views/users/user_email.js
	lib/router.js
	packages/telescope-tags/lib/client/views/category_item.js
2014-12-06 17:34:08 +09:00
Sacha Greif
e572274249 i18ning missing strings 2014-11-20 14:55:34 +09:00
Daniel Chcouri
2605dcb27c Convert translation keys format to tap:i18n standard
all_lower_cased_underscored_sperated names
2014-11-19 00:00:09 +08:00
Charlie DeTar
2cf432b521 Clean up remaining throwError invocations 2014-11-17 17:00:21 -07:00
Charlie DeTar
ea7efc3550 Replace "throwError" with "flashMessage" and type
Currently, ``throwError`` is used for all manner of messages, including
errors, "success" messages, and "info" messages.  This makes appropriate
styling of the error message difficult.  In addition, the name
``throwError`` seems to create confusion, implying that an error will
actually be thrown (e.g. stopping execution when a user isn't logged in
[0][1]), when in fact it just displays a message.

Replace ``throwError`` with ``flashMessage``, and reliably include a
message "type" (e.g. "error", "success", "info") every time.  rename
``lib/errors.js`` to ``lib/messages.js`` to more accurately reflect its
function.

This commit doesn't rename the message collection (``Errors``), nor the
template responsible for rendering the messages (``error_item.html``) --
that should probably still be done, but has higher likelihood of
trouble for existing alternate themes and installations.

[0] 6ccf7d7d47/client/views/users/user_edit.js (L43)
[1] 083a4c4dc4/client/views/users/user_email.js (L13)
2014-11-05 13:12:09 -07:00
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)