Commit graph

496 commits

Author SHA1 Message Date
Sacha Greif
644c519e9b wait on allUsersAdmin subscription on post submit page 2014-11-18 11:13:16 +09:00
Sacha Greif
c335d654c9 fixing missing username in notifications; cleaning up console.logs 2014-11-18 11:00:38 +09:00
Sacha Greif
23079ff9f2 Splitting out router.js in multiple files. 2014-11-17 14:45:23 +09:00
Sacha Greif
0c1b84c8cb version 2014-11-17 11:34:16 +09:00
Sacha Greif
cddb3633fc Merge branch 'steffenstraetz-views-clicks-refactor' into meteor1.0
Conflicts:
	lib/router.js
	packages/telescope-notifications/versions.json
2014-11-17 11:31:58 +09:00
Sacha Greif
8d498923b2 Merge branch 'views-clicks-refactor' of github.com:steffenstraetz/Telescope into steffenstraetz-views-clicks-refactor 2014-11-17 11:25:02 +09:00
Sacha Greif
73cb59a088 Working on IR 1.0 update 2014-11-17 11:01:37 +09:00
Sacha Greif
6769ec1df1 pause() -> next() (IR 1.0 update) 2014-11-17 10:14:55 +09:00
Sacha Greif
00994ba16f updating routes 2014-11-17 09:45:44 +09: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
steffenstraetz
bb0f8155a9 Update parameters.js 2014-10-16 22:14:12 +02:00
Steffen Strätz
6e863598d1 Merged 2014-10-16 00:32:08 +02:00
Steffen Strätz
2fd22e9d41 Renamed "postCount" to "postsCount" to follow naming pattern of other counters 2014-10-16 00:12:13 +02:00
Steffen Strätz
226645b770 Refactored "data.commentsCount" to "commentsCount" 2014-10-15 23:59:02 +02:00
Ben Gott
c84279cdfe Fix email_hash bug (Issue #393) 2014-10-15 16:48:04 -05:00
Steffen Strätz
e98f4f4da9 Fixed initial value for user commentCount 2014-10-15 22:38:05 +02:00
Steffen Strätz
e7e1accc79 - Added view counting for posts
- Refactored click counting to match view counting
- Renamed User "commentCount" to match Post "commentsCount"
- Removed security issue in client side click counting (now calling server method instead)
2014-10-15 21:23:43 +02:00
Ben Gott
4bb13c9243 Update to use bengott:avatar 0.1.2 2014-10-13 16:14:48 -05:00
Charlie DeTar
b6a98e0deb Add missing adminMongoQuery and notAdminMongoQuery
These parameters, introduced in
ed09d0ea7c, weren't defined in that PR but
should have been.
2014-10-06 09:49:50 -06:00
Massimiliano Marini
8309738193 Update it.js 2014-10-05 12:13:28 +02: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
Helmi
6189fa40c8 German translation (de.js)
Some notes: there should be an option to use more than 2 characters for translation. For german you would at least need de_formal and de_informal. I did the informal translation as i found it more useful for myself and i think for most users.

Also i decided to translate "Posts" into "Links" as generally this are links and "Posts" doesn't have a german word that is general enough to not translate more into "Articles" which definitely are not the right phrase to use.

Also i found some not yet translated features but as i translated based on the actual master and not on a release i guess this is a known Problem.
2014-10-03 15:01:18 +02:00
Ben Gott
bab24860d6 Update to use bengott:avatar package for all user avatars 2014-09-30 12:34:42 -05:00
Sacha Greif
f994b0de5e Merge branch 'master' of github.com:TelescopeJS/Telescope 2014-09-30 15:53:44 +09:00
Sacha Greif
9c1e00ac95 Make no_rights and not_found templates customizable 2014-09-30 15:53:36 +09:00
Delgermurun
4fd7c444e5 use getPostsParameters on posts rss 2014-09-29 16:31:41 +08:00
Delgermurun
1aef145973 use STATUS_APPROVED constant on getPostsParameters 2014-09-29 16:24:47 +08:00
Delgermurun
b5edbdf08e exclude future scheluded posts 2014-09-29 15:45:40 +08:00
Delgermurun
0ff3fc7dba rename getParameters to getPostParameters 2014-09-29 15:42:35 +08:00
Sacha Greif
a898debf3f version bump 2014-09-29 15:44:34 +09:00
Ben Gott
a3c7de767b Add helpful comments to changes in getAvatarUrl function 2014-09-27 12:46:41 -05:00
Ben Gott
8357e45381 Modify getAvatarUrl function to use larger images for Twitter and Facebook 2014-09-27 12:30:40 -05:00
Sacha Greif
a02d5d4ea4 Merge pull request #433 from steffenstraetz/master
Fixed issue that user would always be redirected to "/" after sign up and enables validation.
2014-09-27 11:50:32 +09:00
shaialon
cf0bfa6ad4 Merge remote-tracking branch 'upstream/master' 2014-09-26 19:54:23 +03:00
shaialon
59f8f0411e Add a default
Add a default and check for support of devicePixelRatio
2014-09-26 19:40:31 +03:00
Steffen Strätz
b602b5e6bd Added validation for username length and password length in sign up form 2014-09-26 17:21:16 +02:00
Steffen Strätz
f8581be695 Added validation for username length and password length in sign up form 2014-09-26 17:19:18 +02:00
Steffen Strätz
466c4673ee Fixed redirect issue that user would always be redirected to "/" after sign up 2014-09-26 11:27:39 +02:00
Sacha Greif
2eccd9f8ad updating history 2014-09-26 11:32:03 +09:00
Sacha Greif
0e6338ec7b Merge pull request #429 from shaialon/master
Retinize gravatar image size
2014-09-26 11:31:11 +09:00
shaialon
b4a811a506 Retinize gravatar image size
Fix gravatars pixelation in retina displays an zoomed in browsers
2014-09-25 22:02:33 +03:00
Sacha Greif
7b3153d805 Merge branch 'at-integration' of github.com:splendido/Telescope into splendido-at-integration
Conflicts:
	.meteor/packages
2014-09-25 09:14:50 +09:00
Luca Mussi
efe9e5d38b Merge remote-tracking branch 'telescope/master' into at-integration 2014-09-24 07:37:08 +02:00
Luca Mussi
933ec7d6f9 removed confirm password ad validation rules 2014-09-24 07:35:10 +02:00
Sacha Greif
ed58e3e066 Merge branch 'master' of github.com:TelescopeJS/Telescope 2014-09-24 14:19:44 +09:00
Sacha Greif
00cbf02582 Only subscribe to "allUsersAdmin" on post edit page 2014-09-24 14:19:34 +09:00
Connie
7e352adfaa fix #401 2014-09-23 19:08:49 +00:00
Sacha Greif
7b194e4cc3 Merge pull request #377 from niklasdstrom/publication-validation
Publication validation
2014-09-23 11:22:06 +09:00