Commit graph

45 commits

Author SHA1 Message Date
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
755451b394 modularising the user edit page 2014-12-08 20:36:46 +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
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
Sacha Greif
7d66ae23eb Fix #430 2014-09-26 09:40:55 +09:00
Mitchell Wulfman
6fc6b9eb78 cleanup while getting familiar with the codebase 2014-09-16 15:18:27 -04:00
Sacha Greif
f67ad0b7ae regenerate email hash on profile update 2014-09-12 11:54:04 +09:00
Philip Nuzhnyy
e30709cb55 integrate invites rendering through a partial
had to specify an id for account form to make sure form submission handle does not mess with invitation form submission
2014-07-31 01:19:26 +02:00
Sacha Greif
c483464f4d making all template helpers dynamic 2014-07-05 11:24:28 +09:00
Sacha Greif
bc08e8b5cc don't show password field to users who logged in via twitter or facebook 2014-06-22 13:20:10 +09:00
Richard Pullinger
e2562cbdf2 Fix new post checkbox
New post checkbox wasn't showing the correct value
2014-02-03 18:26:10 +00:00
Egor Suvorov
b9ce01ce07 User profile edit form: now it's prevented from submit and windows is scrolled to display error/success message 2014-01-06 02:30:59 +02:00
Tarang Patel
39eb1c8e0a Update Events
Move from using depreciated event declaration style. Still supported
not sure if future proof (see
https://github.com/meteor/meteor/blob/devel/packages/templating/deftempl
ate.js#L184)
2013-11-24 16:13:53 +02:00
Sacha Greif
b2afbe6ac7 merging with master 2013-11-21 11:41:04 +09:00
Sacha Greif
4cd03a6a11 refactored notifications; added notifications for new users 2013-11-18 11:30:58 +09:00
Sacha Greif
ad9bea13ed refactored invites and user dashboard a bit 2013-11-14 10:49:37 +09:00
Sacha Greif
4636e9a1e4 Merge branch 'master' of github.com:Toam/Telescope into Toam-master 2013-11-12 08:25:48 +09:00
Tarang Patel
8a506522d8 Show nothing instead of null
If these values aren't set they would be shown as `null`. They should just be `` (empty string)
2013-11-11 22:09:24 +02:00
Toam
c527a00a62 merge 2013-11-09 02:02:05 +01:00
Sacha Greif
f876eb263e added profile fields for github, twitter, and personal site, and fixed profile avatar 2013-11-07 09:57:57 +09:00
Toam
c06fe46a83 Localisation Common, Errors, Notifications and Users 2013-11-06 01:01:56 +01:00
Sacha Greif
7966f0b985 generate user slug from username, make it non-modifiable 2013-10-24 14:24:03 +09:00
Sacha Greif
f11e0dc28d add slug to user edit screen 2013-10-24 11:15:07 +09:00
Sacha Greif
78bba0e915 invite system 2013-10-23 19:43:42 +09:00
Sacha Greif
2cfbcd2360 improving notifications 2013-10-23 10:21:08 +08:00
Sacha Greif
366a79c449 update user tweaks 2013-10-21 19:01:52 +08:00
Sacha Greif
9c4f030b90 fixing singleUser publication; simplifying user object update/remove permissions 2013-10-21 18:56:22 +08:00
Sacha Greif
a9fac1ed9a working on user profile and user edit 2013-10-09 20:50:26 +09:00
Jonathan M Tran
87f5664e1c Fix for nothing happening when editing another user 2013-04-18 23:20:07 -07:00
Sacha Greif
2ec7311d0a fix user_edit displaying wrong user info 2013-03-06 10:57:08 +09:00
Sacha Greif
f604ea593b refactored notifications and added notification for new account approval 2013-02-22 15:41:15 +09:00
Sacha Greif
3c81b9dd49 send notifications by default 2013-01-29 10:51:44 +09:00
Sacha Greif
9a464035d9 working on email notifications; refactored onsite notifications too 2013-01-19 18:24:18 +09:00
Sacha Greif
159492d12e cleaned up router 2012-10-11 08:23:52 +09:00
Tom Coleman
e4f55a6377 Start of reorganization. 2012-10-04 11:17:57 +10:00
Renamed from client/templates/user_edit.js (Browse further)