Commit graph

488 commits

Author SHA1 Message Date
Delgermurun
d89687b25e RSS feed for top, best views & feed url bug fix 2014-11-17 21:14:56 +08:00
Sacha Greif
4838a04f44 updating packages for IR 1.0 2014-11-17 14:53:42 +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
73cb59a088 Working on IR 1.0 update 2014-11-17 11:01:37 +09:00
Sacha Greif
0ceda58124 updating to Meteor 1.0 2014-11-17 09:35:29 +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
e98f4f4da9 Fixed initial value for user commentCount 2014-10-15 22:38:05 +02:00
Sacha Greif
4eb53c693c updated autoform and testing date time field 2014-10-08 18:38:01 +09:00
Sacha Greif
0143b8f7de Merge branch 'master' into quickform 2014-10-08 16:13:52 +09:00
Sacha Greif
171e212905 kadira version 2014-10-08 16:13:50 +09:00
Sacha Greif
d277adfc6d wrap newsletter banner helpers in startup block 2014-10-08 11:49:34 +09:00
Sacha Greif
7b430bff72 re-enable emailNotifications setting 2014-10-07 13:45:48 +09:00
Sacha Greif
521afdc50d Merge branch 'herald-integration' of github.com:Kestanous/Telescope into Kestanous-herald-integration
Conflicts:
	.meteor/versions
	packages/telescope-kadira/versions.json
	packages/telescope-notifications/lib/notifications.js
2014-10-07 10:34:23 +09:00
Sacha Greif
6c10c0e4a8 Merge pull request #469 from massimilianomarini/kadira-package-update
Kadira package update to latest release 2.11.2
2014-10-06 11:39:52 +09:00
Sacha Greif
8a72a9b77c Using omit: true 2014-10-06 10:40:45 +09:00
Sacha Greif
33b102c5cf Fixing #457 2014-10-06 10:27:28 +09:00
Sacha Greif
c5b2c36758 Using omit: true 2014-10-06 10:23:46 +09:00
Massimiliano Marini
528a3b328d Update Kadira package to latest release 2.11.2 2014-10-05 12:31:50 +02:00
Sacha Greif
cd1496897d updating packages 2014-10-05 17:23:05 +09:00
Sacha Greif
ccf0ea7820 working on quick form for post submit 2014-10-05 17:20:15 +09:00
Sacha Greif
f5c4908d12 Upgrading to 0.9.3.1 2014-10-04 12:51:44 +09:00
Sacha Greif
53442243b9 Merge pull request #462 from AdmitHub/telescope-master-search-querystring
Add querystring updates to search
2014-10-04 09:28:50 +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
Charlie DeTar
582ee672ab Add querystring updates to search
Update and parse a "?q=" query string for search to improve cross-site
linkability.
2014-10-03 15:48:42 -06:00
Kestanous
9be1bd7169 herald integration 2014-10-02 16:42:31 -04: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
0ff3fc7dba rename getParameters to getPostParameters 2014-09-29 15:42:35 +08:00
Sacha Greif
0a118cb5c3 Minor form tweaks 2014-09-29 15:40:09 +09:00
Sacha Greif
7625687860 Merge branch 'better-settings'
Conflicts:
	packages/telescope-daily/lib/client/routes.js
2014-09-29 11:08:07 +09:00
Sacha Greif
90bd327e22 call getTemplate inside anonymous function so that it's only evaluated on route run 2014-09-29 10:35:03 +09:00
Sacha Greif
f00ffd8498 Adding instructions to settings form 2014-09-29 10:15:21 +09:00
Sacha Greif
8262b97f50 wrap postsDaily helper in Meteor.startup() 2014-09-29 09:20:40 +09:00
Sacha Greif
aee7f4c629 put controller block in startup() 2014-09-29 09:06:40 +09:00
Sacha Greif
2a0c545757 Put controller block in Meteor.startup() 2014-09-29 09:05:21 +09:00
Sacha Greif
971822f7b4 fixing postsDaily template typo 2014-09-29 08:25:11 +09:00
Sacha Greif
51de4d79db splitting settings form into field sets 2014-09-28 16:31:12 +09:00
Delgermurun
a9574e8bfd Exclude posts scheduled in the future from the RSS feed 2014-09-26 12:32:56 +08:00
Sacha Greif
95a2157768 updating meteor 2014-09-26 12:03:59 +09:00
Sacha Greif
25f5fcd778 finishing css tweaks 2014-09-26 11:28:20 +09:00
Sacha Greif
c06196f0ed Merge branch 'at-integration' of github.com:splendido/Telescope into splendido-at-integration
Conflicts:
	.meteor/packages
2014-09-26 11:22:49 +09:00
Luca Mussi
97b9fccbf4 Merge remote-tracking branch 'telescope/master' into at-integration
Conflicts:
	.meteor/packages
2014-09-25 15:02:20 +02:00
Sacha Greif
72323c683e Merge branch 'master' of github.com:TelescopeJS/Telescope 2014-09-25 09:40:37 +09:00
Sacha Greif
e04a4e98e3 working on CSS 2014-09-25 09:14:55 +09:00
Delgermurun
135dabc1a8 comment rss 2014-09-24 17:51:21 +08:00
Sacha Greif
07486b290b make notification package depend on email package 2014-09-24 15:12:33 +09:00
Luca Mussi
efe9e5d38b Merge remote-tracking branch 'telescope/master' into at-integration 2014-09-24 07:37:08 +02:00
Sacha Greif
b54b7b60d8 adding telescope-kadira package 2014-09-24 14:14:04 +09:00