Commit graph

330 commits

Author SHA1 Message Date
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
f8cb992069 Adding descriptions in post list pages and showing them in menus. 2014-12-15 09:46:51 +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
Charlie DeTar
45ddd0fbe1 Remove now-obsolete title from page controller
Title is set via ``PostPageController.getTitle`` in https://github.com/TelescopeJS/Telescope/blob/master/lib/router/filters.js#L170
2014-12-12 11:16:47 -07: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
305322bf25 bring back posts delete link 2014-12-08 16:10:32 +09:00
Sacha Greif
75bd8d9920 extracting digest into its own package 2014-12-08 11:15:20 +09:00
Sacha Greif
664c953744 fix bug with post submit error callback 2014-12-06 17:49:29 +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
52ef153a2d make embedly work for non-admins too 2014-12-06 11:56:57 +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
eda570d66f clean up 2014-12-03 09:10:14 +09:00
Sacha Greif
680f3fc12c Merge branch 'master' into quickform 2014-11-30 14:40:15 +09:00
Sacha Greif
0e2ec4ef1c add placeholder templates before and after each post item 2014-11-30 14:36:00 +09:00
Sacha Greif
d36bbf69ab refactoring submitPost and editPost 2014-11-29 11:14:44 +09:00
Sacha Greif
618371636d working on post edit form 2014-11-29 10:25:11 +09:00
Sacha Greif
0031d07468 finishing post submit form refactoring 2014-11-28 15:18:55 +09:00
Sacha Greif
672be96c9b working on post submit form 2014-11-28 11:19:55 +09:00
Sacha Greif
96176398e3 create datetimepicker custom field type package 2014-11-27 17:43:27 +09:00
Sacha Greif
b8dc56ea40 Merge branch 'master' into quickform
Conflicts:
	.meteor/versions
	client/views/settings/quickFormSettings.html
	collections/posts.js
	lib/router.js
	packages/telescope-api/versions.json
	packages/telescope-base/versions.json
	packages/telescope-module-embedly/versions.json
	packages/telescope-module-share/versions.json
	packages/telescope-notifications/versions.json
	packages/telescope-rss/versions.json
	packages/telescope-theme-base/versions.json
	packages/telescope-theme-hubble/versions.json
2014-11-26 11:22:54 +09: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
Sacha Greif
e11b6db40f show error message on post edit page 2014-11-18 10:31:29 +09:00
Sacha Greif
bf90eedf37 URL can now be removed when editing a post 2014-11-18 10:27:58 +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
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
f121b4791e remove fieldsToOmit 2014-10-06 11:10:50 +09:00
Sacha Greif
8a72a9b77c Using omit: true 2014-10-06 10:40:45 +09:00
Sacha Greif
ccf0ea7820 working on quick form for post submit 2014-10-05 17:20:15 +09: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
Jeremy Shimko
d1c85559c5 swap order of subtract() args due to deprecation 2014-09-18 16:30:52 -04:00
Mitchell Wulfman
c0832e6798 another jQuery cache 2014-09-16 15:46:48 -04:00
Mitchell Wulfman
6fc6b9eb78 cleanup while getting familiar with the codebase 2014-09-16 15:18:27 -04:00
Mitchell Wulfman
8250f52450 cache jQuery objects 2014-09-16 15:13:42 -04:00
Sacha Greif
b7ceff4481 Merge pull request #402 from dburles/incoming
use UI.dynamic for incoming posts template
2014-09-16 14:30:41 +09:00
David Burles
f1c47acde4 use UI.dynamic for incoming posts template 2014-09-16 15:29:11 +10:00