Commit graph

133 commits

Author SHA1 Message Date
Sacha Greif
50fc3eb11a Merge branch 'namespace' of https://github.com/TelescopeJS/Telescope into namespace
# Conflicts:
#	lib/users.js
#	packages/telescope-base/lib/base.js
#	packages/telescope-base/package.js
#	packages/telescope-lib
2015-04-20 13:57:37 +09:00
Sacha Greif
9b8b23f932 Merge branch 'delgermurun-template-extension' into devel
# Conflicts:
#	client/views/comments/comment_edit.js
#	client/views/comments/comment_form.js
2015-04-13 18:14:12 +09:00
Delgermurun
16d9eaf0f9 Delete all getTemplate related codes 2015-04-13 16:29:33 +09:00
Delgermurun
666577f4cb Template[getTemplate('XYZ')] => Template.XYZ 2015-04-13 14:52:03 +09:00
Sacha Greif
2070a725ea changing comment_item template 2015-04-13 09:19:42 +09:00
Sacha Greif
2e10b2f973 get rid of hotkeys package 2015-04-12 21:19:30 +09:00
Delgermurun
5748f50d66 Submit comment when press Crtl/Cmd+Enter 2015-04-11 15:47:32 +09:00
Sacha Greif
0c8514a56b Fix #887 (thanks @kai101) 2015-04-08 09:05:15 +09:00
Nolan Darilek
20acbeda4e Set aria-hidden on avatars in comments and disable live regions. 2015-04-07 09:54:01 -05:00
Sacha Greif
ad43b8fd9d fix #868 2015-03-31 14:06:58 +09:00
Delgermurun
5cd7c53ff7 Messages package 2015-03-27 16:38:47 +08:00
Sacha Greif
f1af28841f only clear comment form if submission succeeds 2015-03-26 12:05:25 +09:00
Sacha Greif
9e25f8bafc fix comment upvote/downvote 2015-03-24 14:32:54 +09:00
Sacha Greif
ea24b5242d Merge branch 'master' of https://github.com/TelescopeJS/Telescope 2015-03-16 10:01:22 +09:00
Sacha Greif
a516c7a99d added message about signing in to reply 2015-03-13 10:18:24 +09:00
Sacha Greif
a1d304445d highlight OP's comments 2015-03-13 09:41:15 +09:00
Nolan Darilek
f89e8ff7e2 Various accessibility fixes, mainly hiding unnecessary elements from screen readers, adding screen-reader-only content and using live regions for real-time content. 2015-02-12 23:44:59 -06:00
Sacha Greif
9a23f144d3 do not put comment reply page behind log-in 2015-02-03 15:43:57 +09:00
Sacha Greif
3b51d0ef1c bunch of small fixes 2015-01-20 16:18:27 +09:00
Sacha Greif
c9693436c3 fixing context issues on comment form 2015-01-20 12:35:09 +09:00
Sacha Greif
cf01d01dbd adding subscribe-to-posts package 2015-01-20 11:59:12 +09:00
Sacha Greif
0b3cfeabed add thread modules zone 2015-01-20 11:42:03 +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
Sacha Greif
83cd0d579e various css tweaks 2015-01-14 09:45:18 +09: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
c9d13c3159 show message when user cannot comment; redirect to sign in form when not logged in 2015-01-05 16:32:26 +09:00
Sacha Greif
b3f2d3ec08 remove nested comments check 2015-01-05 16:18:26 +09:00
Sacha Greif
03922286e1 refactoring comment form code and fixing upvote issue 2014-12-28 12:13:13 +09:00
Sacha Greif
7d7a3939fc working on comment form latency compensation 2014-12-28 11:45:35 +09:00
Sacha Greif
e91d60ecc9 fix child comment bug 2014-12-27 22:12:01 +09:00
Sacha Greif
c74a9ae8b0 add loading indicators to forms 2014-12-27 18:34:01 +09:00
Sacha Greif
f2760f9168 refactoring comment submit method 2014-12-24 10:13:48 +09: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
365eb467a2 more epic editor clean up 2014-12-05 08:23:31 +09:00
Sacha Greif
45ccf1d8f1 Merge pull request #588 from anthonymayer/urls_by_route_name
Switching from manually generating urls to using IronRouter functions.
2014-12-04 11:44:44 +09:00
Sacha Greif
f06b43b603 finish epic editor clean up and fix #591 2014-12-04 11:32:44 +09:00
Anthony Mayer
23b72b9cb8 Switching from manually generating urls to using IronRouter functions.
Using {{pathFor}}, path(), and url() where possible. Passing in path
to Meteor.absoluteUrl() where the IronRouter functions didn't make sense.
Also deleting some random unused code.
2014-12-03 00:06:00 -08:00
Sacha Greif
0031d07468 finishing post submit form refactoring 2014-11-28 15:18:55 +09:00
Sacha Greif
dbc42a7b51 renaming i18n helper from "i18n" to "_" 2014-11-25 17:16:00 +09:00
Sacha Greif
d3283e9b9c Merge branch 'master' of https://github.com/TelescopeJS/Telescope 2014-11-25 15:47:49 +09:00
Ben Gott
f68ecba862 Upgrade to bengott:avatar 0.6.0
- Create new config file in lib/config/avatar.js (accessible to both
  client and server)
- Comment out some outdated SCSS/CSS
2014-11-24 01:48:04 -06: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
Ben Gott
4bb13c9243 Update to use bengott:avatar 0.1.2 2014-10-13 16:14:48 -05:00
Sacha Greif
29495788e8 Merge pull request #454 from bengott/avatar-tweaks
Update to use bengott:avatar package for user avatars
2014-10-04 10:14:49 +09: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
Ben Gott
bab24860d6 Update to use bengott:avatar package for all user avatars 2014-09-30 12:34:42 -05:00