Commit graph

145 commits

Author SHA1 Message Date
Sacha Greif
ca20b9e1f2 add city field to profile 2015-04-03 18:52:44 +09:00
Delgermurun
5cd7c53ff7 Messages package 2015-03-27 16:38:47 +08:00
Charlie DeTar
7015663741 Add userId param to changeEmail method
Fixes #852.
2015-03-26 14:39:36 -06:00
Sacha Greif
ed0e7ef270 fix user dashboard css 2015-03-25 10:11:44 +09:00
Sacha Greif
51b52da004 working on admin menu 2015-03-23 10:32:56 +09:00
Sacha Greif
2f5a72e8f2 Merge branch 'razvansky-master' into devel 2015-03-18 09:10:36 +09:00
Sacha Greif
ea24b5242d Merge branch 'master' of https://github.com/TelescopeJS/Telescope 2015-03-16 10:01:22 +09:00
Luca Mussi
73bb536c52 profile.name -> profile.username 2015-03-12 10:12:47 +01:00
Jeremy Shimko
467fc494f2 switch to "this" instead of "instance.data" 2015-02-16 17:57:05 -05:00
Jeremy Shimko
16d56d197c pass user object to profileUrl helper instead of id
Because the allUsers publication is no longer available outside of reactive-table data context.
2015-02-16 17:56:14 -05:00
Jeremy Shimko
5997aafe87 switch to ReactiveTable.publish for all-users table 2015-02-16 17:54:33 -05:00
Jeremy Shimko
3c61cf981d custom template for createdAt field
also fixes date sorting in table
2015-02-13 01:47:36 -05: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
Jeremy Shimko
8fd9de3266 rebuild user management page with reactive-table 2015-02-12 23:28:14 -05: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
4a415c6ebb css fixes 2014-12-30 17:36:37 +09:00
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