Commit graph

128 commits

Author SHA1 Message Date
Sacha Greif
1aa86994f7 using this.autorun 2014-12-18 10:36:41 +09:00
Viktorminator
81e485eca2 Some lexicon en, ru fixes 2014-12-15 17:58:03 +02:00
Sacha Greif
2a316ea798 fix sign-out route 2014-12-13 11:58:47 +09:00
Sacha Greif
eacc891bca fix user posts limit bug 2014-12-09 13:16:34 +09:00
Sacha Greif
6d817fc421 using Reactive Var for user comments as well 2014-12-09 11:19:49 +09:00
Sacha Greif
07bc61e938 started extracting invites into their own package 2014-12-09 10:17:16 +09:00
Sacha Greif
0c6150371b refactoring invites publication 2014-12-08 22:17:43 +09:00
Sacha Greif
755451b394 modularising the user edit page 2014-12-08 20:36:46 +09:00
Sacha Greif
1444039065 decorate upvoted and down votes posts with vote timestamp 2014-12-08 19:51:39 +09:00
Sacha Greif
49a5f54aa9 exclude own posts from upvote/downvote lists 2014-12-08 18:16:44 +09:00
Sacha Greif
2850d563fd more refactoring 2014-12-08 18:03:30 +09:00
Sacha Greif
e099ba3fcd refactoring user profile posts with ReactiveVar 2014-12-08 17:52:29 +09:00
Sacha Greif
980af66167 refactoring and modularising user profile page publications 2014-12-08 17:25:11 +09:00
Sacha Greif
92bfd16830 splitting out user profile subscriptions 2014-12-08 15:26:06 +09:00
Sacha Greif
bb486793e1 making user profile modular 2014-12-08 14:53:26 +09:00
Sacha Greif
bdae77a41b fix user profile complete check 2014-12-06 18:19:54 +09:00
Sacha Greif
b6c54c106d renaming errors to messages 2014-12-06 17:41:15 +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
716f329908 Merge branch 'master' of https://github.com/TelescopeJS/Telescope 2014-12-04 13:10:27 +09:00
Sacha Greif
3e415dce78 Merge branch 'telescope-master-profile-hooks' of github.com:AdmitHub/Telescope into AdmitHub-telescope-master-profile-hooks
Conflicts:
	client/views/posts/modules/post_info.html

Note:
	adapted PR to only keep some of the added features
2014-12-04 12:38:20 +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
Anthony Mayer
c8d5e3ca25 Fixes #444 - Adding UserEditController to show invites correctly
Gets rid of AccountController in favor of UserEditController, which
shows data consistently for both admins and owners. Also, makes sure
that only authorized users can see the page.
2014-11-30 18:23:19 -08: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
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
50dd3ccece Add accumulator for userEditClientCallbacks 2014-11-17 17:11:13 -07: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
83bb43ab46 Add hooks so packages can modify profiles
Add the following hooks:
 - ``addToUserSchema``: fields to add to the (currently unused) user
   Schema
 - ``postAuthor``: templates to use when rendering the post author in the
   byline
 - ``userProfileDisplay``: additional templates to add to the user
   profile display.
 - ``userProfileEdit``: additional templates to add to the user profile
   editing form.
 - ``userProfileFinishSignup``: additional templates to show in the view
   for completing user signup (adding email, username, etc).
 - ``userEditRenderedCallbacks``: Callbacks executed on "rendered" for
   user_edit view.
 - ``userEditClientCallbacks``: Callbacks used to further process user
   properties before saving changes in user_edit view.
 - ``userProfileCompleteChecks``: Functions called to determine whether
   a user profile is "complete" (e.g. has email, username, and whatever
   else).

These hooks facilitate package authors changing which profile fields are
displayed, which profile fields are required, and how to display
usernames next to posts.
2014-10-27 17:59:12 -06: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
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
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
Jamie Wilson
37f363df37 Corrected path to /forgot-password
needed to be hyphenated rather than underscored
2014-09-19 09:56:56 -05:00
Mitchell Wulfman
6fc6b9eb78 cleanup while getting familiar with the codebase 2014-09-16 15:18:27 -04: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
f67ad0b7ae regenerate email hash on profile update 2014-09-12 11:54:04 +09: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
Sacha Greif
d25f644c2c Profile tweaks; display more posts 2014-09-01 09:52:40 +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