Commit graph

30 commits

Author SHA1 Message Date
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
Sacha Greif
f5eb356ac1 adding commenters avatars 2014-12-14 15:15:34 +09: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
71e0376595 make moment i18n reactive; add global setLanguage function 2014-11-21 12:50:26 +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
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
David Burles
d54bd804e4 added incoming posts notification button 2014-09-15 12:42:17 +10:00
Sacha Greif
e21f5c7056 adding new htmlBody field and adding hooks to sanitise it 2014-08-31 16:11:48 +09:00
Sacha Greif
dbae1da597 still working on refactoring css 2014-08-12 17:11:36 +09:00
Sacha Greif
4ad020174c Separating themes; adding accounts-entry 2014-08-12 16:16:44 +09:00
Sacha Greif
509972f18a Now keeping track of upvoted/downvoted posts & comments. 2014-08-11 10:14:53 +09:00
Sacha Greif
77d572345b removing a few console.logs 2014-06-25 14:33:41 +09:00
Sacha Greif
94e055de32 generating nav drop downs from js objects 2014-05-09 15:55:50 +09:00
Christian Bundy
86ec3ede93 Solve trivial JS errors
Using jshint and and fixmyjs I went through and removed 220 trivial
Javascript errors – mostly missing semicolons, and some properties that
weren’t written in dot notation. You can view the diff of jshint’s
output here:
https://gist.github.com/christianbundy/7b37c51bb6f7c8d739e7/revisions
2014-05-06 20:15:48 -07:00
Sacha Greif
0cc4ca1bbb adding custom package 2013-11-21 11:32:09 +09:00
Sacha Greif
ef537c4987 working on 18n 2013-11-15 13:10:27 +09:00
Toam
9d9f941f9d More localisation 2013-11-11 22:07:19 +01:00
Toam
c527a00a62 merge 2013-11-09 02:02:05 +01:00
Sacha Greif
11a9637dff clean up 2013-10-29 16:05:55 +09:00
Sacha Greif
2fbb506096 still working on rank animation 2013-10-28 16:04:55 +09:00
Tom Coleman
91066818a4 So close! 2013-10-28 17:07:18 +11:00
Sacha Greif
597d8e7aa9 working on rank problem 2013-10-28 13:35:20 +09:00
Sacha Greif
676dc3c349 loading relevant users for each post list view 2013-10-25 11:23:16 +09:00
Sacha Greif
86114b7573 make isAdmin work better when user is null 2013-10-25 10:37:39 +09:00
Sacha Greif
9f8b74a786 URL slugs for user profiles 2013-10-24 11:04:27 +09:00
Sacha Greif
df4e702e1f fixed comment bug; added default argument to handlebars settings helper 2013-10-15 12:28:57 +09:00
Sacha Greif
83d792188b make nested comments optional + various tweaks 2013-10-14 12:14:12 +09:00
Sacha Greif
43a398bd26 refactoring file structure 2013-04-13 15:05:18 +09:00
Renamed from client/lib/handlebars.js (Browse further)