Commit graph

53 commits

Author SHA1 Message Date
Sacha Greif
4d40664d08 Show approve link for all pending posts no matter the setting 2015-02-11 19:29:07 +09:00
Sacha Greif
e155e73034 use displayName instead of userName 2015-02-03 10:22:42 +09:00
Sacha Greif
1aefbea3cd fixing mobile version for grid layout 2015-01-27 11:44:06 +09:00
Anthony Mayer
2bafca52e3 Fixing style issues.
Also, switching Router.routes[].path to Router.path
2015-01-19 00:48:17 -08:00
Sacha Greif
35ae630ebd working on grid layout; added callback for injecting CSS classes for post items 2015-01-19 11:40:27 +09:00
Sacha Greif
9c5bd4ce4d extract postRank into its own post module 2015-01-16 16:11:36 +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
1615eb726b limit commenter avatars to first 4 people 2014-12-16 14:25:38 +09:00
Sacha Greif
6723a532da alternate layout for post items 2014-12-16 13:34:01 +09:00
Sacha Greif
c2421a8e9d small css tweaks 2014-12-15 16:00:35 +09:00
Sacha Greif
49e3694214 remove post author ID from commenters to avoid showing author's avatar again 2014-12-14 15:19:53 +09:00
Sacha Greif
f5eb356ac1 adding commenters avatars 2014-12-14 15:15:34 +09:00
Sacha Greif
fb91613cfe refactor all the things!
- changed the layout CSS for post modules
- changed order of modules
- changed markup of modules
2014-12-14 12:38:48 +09:00
Sacha Greif
fb0cd210b3 refactoring post module markup and CSS 2014-12-13 17:43:52 +09:00
Anthony Mayer
e71be66c57 Should fix various url problems by taking siteUrl into account when getting route urls.
Trying to make as much use of path as possible on the client side.
2014-12-09 09:29:17 -08:00
Sacha Greif
7879172c5d refactoring parameters to simplify showing/hiding future posts, and adding "scheduled" view 2014-12-08 16:39:10 +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
053183f5b5 fix approve/unapprove links 2014-12-05 09:33:07 +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
Sacha Greif
dbc42a7b51 renaming i18n helper from "i18n" to "_" 2014-11-25 17:16:00 +09:00
Sacha Greif
e572274249 i18ning missing strings 2014-11-20 14:55:34 +09: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
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
Steffen Strätz
6e863598d1 Merged 2014-10-16 00:32:08 +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
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
Mitchell Wulfman
c0832e6798 another jQuery cache 2014-09-16 15:46:48 -04:00
Sacha Greif
f9390a301d various small css fixes 2014-09-16 11:51:13 +09:00
Sacha Greif
e26f8dfd11 renaming postMeta template to postInfo 2014-09-12 18:53:49 +09: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
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
fa8691eaaf making default view configurable 2014-08-28 10:16:17 +09:00
Sacha Greif
063242b78d Changed comments to CommentsCount; Now tracking _ids of commenters on each Post document 2014-08-22 10:31:05 +09:00
Sacha Greif
d7135c1d1d improving base theme 2014-08-20 15:59:11 +09:00
Sacha Greif
4ad020174c Separating themes; adding accounts-entry 2014-08-12 16:16:44 +09:00
Sacha Greif
ba38e2a75b making post modules use dynamic templates as well 2014-07-23 10:25:16 +09:00
Sacha Greif
bcd0bdf359 fixed via twitter bug 2014-07-19 08:50:36 +09:00
Sacha Greif
c40fbcb9f3 working on mobile version; added new postHeading and postMeta hooks 2014-07-14 10:12:02 +09:00
Sacha Greif
10f321b75c small css fixes 2014-07-10 12:02:53 +09:00
Sacha Greif
30ca584109 fix voting icon bug 2014-07-08 09:06:49 +09:00
Sacha Greif
681be06443 post_item tweaks 2014-07-07 11:49:21 +09:00
Sacha Greif
4fb25bdb66 show post body outside of post modules 2014-07-05 16:29:10 +09:00
Sacha Greif
72c1fc2d50 remove extra comment link 2014-07-05 13:36:52 +09:00
Sacha Greif
ae8da33e89 making categories a post module 2014-07-05 13:32:01 +09:00
Sacha Greif
c36407a7d6 using table layout 2014-07-05 12:30:56 +09:00