Commit graph

530 commits

Author SHA1 Message Date
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
c84279cdfe Fix email_hash bug (Issue #393) 2014-10-15 16:48:04 -05:00
Ben Gott
4bb13c9243 Update to use bengott:avatar 0.1.2 2014-10-13 16:14:48 -05:00
Sacha Greif
73d1098646 Make it possible to hide fields from quickform; cleanup 2014-10-05 10:12:10 +09: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
Sacha Greif
0a118cb5c3 Minor form tweaks 2014-09-29 15:40:09 +09:00
Sacha Greif
f886142c4f Renaming "test" autoform to "settings" 2014-09-29 11:09:36 +09:00
Sacha Greif
f00ffd8498 Adding instructions to settings form 2014-09-29 10:15:21 +09:00
Sacha Greif
51de4d79db splitting settings form into field sets 2014-09-28 16:31:12 +09:00
Ben Gott
8e709a8372 Rename common template/view 'gravatar' to 'avatar' 2014-09-27 12:05:15 -05:00
shaialon
8eaab14ede Refactor code with reuse. 2014-09-26 23:20:00 +03:00
shaialon
6592f5761a Change to user / userId 2014-09-26 23:06:12 +03:00
shaialon
94e114cc6f Lint clean the code. 2014-09-26 22:50:37 +03:00
shaialon
f91e02b29a Reusable gravatar component 2014-09-26 22:48:09 +03:00
Sacha Greif
7d66ae23eb Fix #430 2014-09-26 09:40:55 +09:00
Sacha Greif
2a911217e9 Making notifications into their own package 2014-09-20 09:57:09 +09:00
Jamie Wilson
37f363df37 Corrected path to /forgot-password
needed to be hyphenated rather than underscored
2014-09-19 09:56:56 -05:00
Jeremy Shimko
d1c85559c5 swap order of subtract() args due to deprecation 2014-09-18 16:30:52 -04:00
Sacha Greif
3fda433082 Making comment upvote/downvote work with custom templates 2014-09-18 09:35:42 +09:00
Mitchell Wulfman
c0832e6798 another jQuery cache 2014-09-16 15:46:48 -04:00
Mitchell Wulfman
6fc6b9eb78 cleanup while getting familiar with the codebase 2014-09-16 15:18:27 -04:00
Mitchell Wulfman
8250f52450 cache jQuery objects 2014-09-16 15:13:42 -04:00
Sacha Greif
b7ceff4481 Merge pull request #402 from dburles/incoming
use UI.dynamic for incoming posts template
2014-09-16 14:30:41 +09:00
David Burles
f1c47acde4 use UI.dynamic for incoming posts template 2014-09-16 15:29:11 +10:00
Sacha Greif
99b07d0172 Merge branch 'dburles-incoming' 2014-09-16 14:06:04 +09:00
Sacha Greif
7dc8249910 Do not remove deleted comments from db 2014-09-16 12:12:48 +09:00
Sacha Greif
f9390a301d various small css fixes 2014-09-16 11:51:13 +09:00
Sacha Greif
f6bf431885 Merge branch 'incoming' of github.com:dburles/Telescope into dburles-incoming 2014-09-15 21:33:36 +09:00
Sacha Greif
25bf032e50 Merge branch 'master' of github.com:TelescopeJS/Telescope 2014-09-15 21:33:19 +09:00
David Burles
d54bd804e4 added incoming posts notification button 2014-09-15 12:42:17 +10:00
Jamie Wilson
34f9ffa650 Correcting the if statement for profile.site url
needed to be `profile.site`
2014-09-12 15:52:05 -05:00
Sacha Greif
e26f8dfd11 renaming postMeta template to postInfo 2014-09-12 18:53:49 +09:00
Sacha Greif
f67ad0b7ae regenerate email hash on profile update 2014-09-12 11:54:04 +09:00
Jamie Wilson
1a5f13efab uncommented and line 18
and added the return statement!
2014-09-10 18:32:59 -05: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
Niklas Ström
e8fce5d292 removed the old signup and signin pages which was not in use (except if you tried to post a new link without being logged in, then you got redirected to that login page) 2014-09-08 01:39:29 +08:00
Sacha Greif
6dee86463a paginating user profile on the client 2014-09-03 09:46:39 +09:00
Sandro Gvelesiani
ff4def6e3f changed the default sign-in route path from /signin to /sign-in 2014-09-01 00:04:21 -07:00
Sacha Greif
d25f644c2c Profile tweaks; display more posts 2014-09-01 09:52:40 +09:00
Sacha Greif
21c6dc6854 using sanitizeHTML and adding migrations 2014-09-01 09:33:50 +09:00
Sacha Greif
e21f5c7056 adding new htmlBody field and adding hooks to sanitise it 2014-08-31 16:11:48 +09:00
Sacha Greif
be82db9072 Disable resetScroll; Simplify adminUsers publication; fix search controller 2014-08-28 11:10:31 +09:00
Sacha Greif
fa8691eaaf making default view configurable 2014-08-28 10:16:17 +09:00
Sacha Greif
3b1cff9347 working on daily view 2014-08-27 10:23:56 +09:00
Sacha Greif
735f0645db move votes to their own object on user object 2014-08-23 11:53:37 +09:00
Sacha Greif
df479d43c3 Stop tracking comments in User object; Refactor publications; add data property to user 2014-08-23 11:28:05 +09:00
Sacha Greif
9b8e16f177 now showing comments on user profile page 2014-08-22 17:06:22 +09:00