Austin Burdine
a1a5e55bf7
improve styling on private blogging password page ( #7021 )
...
refs TryGhost/Casper#253
- make private.hbs styling consistent with the ghost signin page
2016-07-07 15:37:42 +01:00
Gergely Nemeth
447cc0cd2e
fix(twitter-card): use proper image tag ( #7025 )
2016-06-29 18:04:43 -06:00
Lukas Strassel
03137ff5cd
allow manifest.json in theme root ( #6986 )
...
closes #6769
2016-06-29 14:44:01 -06:00
Katharina Irrgang
ded60ba6e8
post-scheduling: delete job but time is null ( #7035 )
...
no issue
This is a fix for the default-scheduler.
When a post never had a published_at value, the oldTime for removing the job would be null. And in this case we would try to delete a job with an invalidate date.
2016-06-28 20:14:29 +02:00
Katharina Irrgang
e91e9eadac
improvement: mail structure ( #7033 )
...
no issue
- in preparation for subscribers V2
- do not implement code in index.js
- create mail utils
2016-06-28 20:13:01 +02:00
Katharina Irrgang
1b3e1df641
fix: date permalink test ( #7047 )
...
closes #7044
2016-06-28 11:14:39 -06:00
Austin Burdine
acc08b9702
deps: bookshelf@lodash-upgrade-fix
...
no issue
- temporarily upgrades bookshelf to latest master commit
- fixes lodash version incompatibility
2016-06-27 08:22:30 -06:00
Austin Burdine
bfaa8ece90
Merge pull request #7016 from kirrg001/fix/6999
...
fix: url for post path when post is not published
2016-06-21 07:09:11 -04:00
kirrg001
f8ba12481d
fix: prev next posts
...
closes #7015
2016-06-20 15:44:02 +02:00
kirrg001
507677f071
fix: url for post path when post is not published
...
closes #6999
2016-06-20 14:48:01 +02:00
Austin Burdine
14c3d0e9ef
Merge pull request #7006 from kevinansfield/subgrunt-init
...
Use subgrunt to install client dependencies
2016-06-18 15:11:35 -04:00
Kevin Ansfield
fe44040dea
Updating Ghost-Admin: grunt init
bower fix
...
- includes `grunt init` task used in #7006
2016-06-18 19:30:42 +01:00
kirrg001
250d571fe6
improvement: jshint/jscs
...
no issue
- add mocha option to jshintrc, no need to define globals in files anymore
- call client grunt commands in case of jshint/jscs
2016-06-17 22:59:47 +02:00
Kevin Ansfield
8e21e31436
Upgrading Ghost-Admin to 0.9.0-beta.2
2016-06-15 13:25:39 +01:00
Hannah Wolfe
ac63621fe7
Update tags & foreach to respect visibility
...
refs #6165
- adds lodash.pickby@4.4.0
- new helper util for understanding a visibility attribute
- generalises visibility handling for `{{tags}}` helper
- adds visibility handling to `{{foreach}}` helper
- adds tests which check behaviour + labs flag
2016-06-15 12:37:09 +01:00
kirrg001
9de153ff82
post-scheduling: fix delete bug in default scheduler
2016-06-15 12:21:33 +02:00
kirrg001
a3cd43909b
post-scheduling: HTTP 503 retry logic for default adapter
2016-06-15 08:40:18 +02:00
Hannah Wolfe
fe5e0eed48
Merge pull request #6988 from kirrg001/improvement/forward-utc-timestamp-for-scheduler
...
post-scheduling: forward UTC timestamp to scheduler adapters
2016-06-14 17:05:22 +01:00
Hannah Wolfe
bf79185d1c
Merge pull request #6987 from kirrg001/fix/scheduler-config
...
post-scheduling: flat config for scheduling
2016-06-14 17:03:34 +01:00
kirrg001
80c797c6c2
post-scheduling: forward UTC timestamp to scheduler adapters
2016-06-14 16:34:56 +02:00
kirrg001
b5ebd0200b
post-scheduling: flat config for scheduling
2016-06-14 15:13:00 +02:00
Kevin Ansfield
24e4a38ecc
Updating Ghost-Admin: Scheduled Posts
...
- pulls in the new UI features for the scheduled posts feature
2016-06-14 13:25:59 +01:00
“kirrg001”
1421c92ba5
post-scheduling
...
refs #6413
- PUT endpoint to publish a post/page for the scheduler
- fn endpoint to get all scheduled posts (with from/to query params) for the scheduler
- hardcoded permission handling for scheduler client
- fix event bug: unscheduled
- basic structure for scheduling
- post scheduling basics
- offer easy option to change adapter
- integrate the default scheduler adapter
- update scheduled posts when blog TZ changes
- safety check before scheduler can publish a post (not allowed to publish in the future or past)
- add force flag to allow publishing in the past
- invalidate cache header for /schedules/posts/:id
2016-06-14 10:52:13 +02:00
Hannah Wolfe
1b98d80a73
Merge pull request #6983 from kirrg001/fix/6975
...
fix: 6975 permalink test
2016-06-13 21:03:37 +01:00
kirrg001
2e25e4c73d
fix: permalink test
...
issue #6975
2016-06-13 20:50:07 +02:00
Hannah Wolfe
c1736d0aa4
Updating Ghost-Admin: Internal tags
...
- pulls in the new UI features for the internal tags feature
- includes a labs flag
2016-06-13 13:59:24 -04:00
kirrg001
7d5baf4e9a
fix: put default timezone into config
...
no issue
- config.theme.timezone can be undefined, when settings are not loaded from the database
- this PR will define the default blog TZ in config
- use `Etc/UTC` as default instead of `Europe/Dublin`
2016-06-13 15:02:52 +02:00
Hannah Wolfe
584e9911c4
Merge pull request #6973 from acburdine/lodash-4
...
deps: lodash@4.13.1
2016-06-11 21:39:30 +01:00
Hannah Wolfe
6bcc08e874
Cleanup indentation now JSCS can see it
...
- this is needed to make #6925 mergable
2016-06-11 20:25:15 +01:00
Austin Burdine
44537bd15f
deps: lodash@4.13.1
...
closes #6911
- update lodash to v4
- remove lodash.tostring override
- remove lodash from greenkeeper ignore
2016-06-11 13:13:55 -06:00
Austin Burdine
aed8c0800e
internal tags feature
...
refs #6165
- change behavior to use 'visibility' property
- finish out client & server-side behavior
- add tests
2016-06-11 09:12:04 -06:00
Hannah Wolfe
369fd2c6bd
Initial work on internal tags feature
...
refs #6165
2016-06-10 13:32:56 -06:00
Hannah Wolfe
eeb41a8976
Merge pull request #6945 from sakulstra/bugfix-url-on-external-page
...
Allow domain name to be referenced on an external page in the navigation
2016-06-10 18:20:15 +01:00
Hannah Wolfe
471edf0ea9
Merge pull request #6962 from kirrg001/feature/when-timezone-changes-reschedule-posts
...
feature: when timezone changes, reschedule all posts
2016-06-10 15:53:40 +01:00
Aileen Nowak
1487df9b30
Adds UTC as select option to timezones select list
...
no issue
- adds '(GMT) UTC' as select option to available Timezones
- changes default value for active Timezone to 'Etc/UTC'
2016-06-10 15:19:16 +02:00
kirrg001
16fc0d29bf
feature: when timezone changes, reschedule all posts
...
closes #6406
- created listeners.js connector
- merged listeners.js with events.js (in models/base)
- set a post to draft when published_at would be in the past
- reschedule a post when published_at would be in the future
2016-06-10 14:58:19 +02:00
Hannah Wolfe
38de6d7f84
Merge pull request #6963 from kirrg001/improvement/config-spec-js
...
improvement: explict database assertions for config_spec.js tests
2016-06-10 11:45:11 +01:00
Sebastian Gierlinger
88dc7b3e99
Merge pull request #6929 from ErisDS/event-test-fix
...
Add removal for event listeners, fixes test error
2016-06-10 11:53:34 +02:00
Hannah Wolfe
d341263934
Merge pull request #6961 from kirrg001/improvement/add-not-existing-module-mock-fns
...
improvement: add mocks helper module for test env
2016-06-10 10:18:44 +01:00
Hannah Wolfe
74d4dcfba3
Merge pull request #6955 from kirrg001/fix/models-events-test
...
fix: model_events.js will cause errors for other tests
2016-06-10 10:17:58 +01:00
Hannah Wolfe
015802b6eb
Merge pull request #6959 from kirrg001/improvement/db-connection
...
improvement: improve db/connection.js readability
2016-06-10 10:17:38 +01:00
kirrg001
81ddb47d8a
improvement: explict test assertions for config_spec.js tests
2016-06-10 10:59:38 +02:00
kirrg001
27d8eb5e70
improvement: add mocks helper module for test env
...
no issue
- add methods to mock/unmock not existent files
2016-06-10 09:23:00 +02:00
kirrg001
b057c2fc16
improvement: rename and extend test utils fixture functions
...
no issue
- rename insertPosts to insertPostsAndTags
- add insertPosts
- extend insertOne to choose index
2016-06-10 07:14:21 +02:00
kirrg001
901c9d75a0
improvement: improve db/connection.js readability
2016-06-10 07:08:02 +02:00
Hannah Wolfe
20f4166cc5
Version matching middleware
...
refs #6949
- Adds a new VersionMismatchError with status 400 (bad request)
- Adds middleware that checks the X-Ghost-Version header if it is provided
- If it is not provided, the middleware does nothing
- If it is provided, and the versions match, the middleware does nothing
- If it is provided, and the versions don't match, the middleware returns a VersionMismatchError
- Includes both unit and a functional test to prove the middleware works alone and as part of the whole system
2016-06-09 17:08:44 +01:00
Hannah Wolfe
f489d7df72
xmlrpc + slack init() -> listen() & fixup tests
...
no issue
- changes xmlrcp & slack `init` function to be `listen`
- update the code to use `listen` instead of `init`
- changes the tests to make sure that event listeners are not wired up
- adds 100% test coverage
Since we added slack event listeners, the xmlrpc event tests have been throwing an error:
> Unhandled rejection Error
See: http://puu.sh/phvjZ.png
This is because both xmlrpc & slack are listening to `post.published` events.
xmlrpc didn't require any extra stubbing, but the slack listener did
By turning the listeners off after the tests, we reset the environment to not impact the next event test
We probably need to do more work like this to improve the systems around event handling and
make them more robust
2016-06-09 15:38:19 +01:00
kirrg001
37317db031
fix: model_events_spec.js just throws a general event for "everyone"
2016-06-09 15:43:08 +02:00
Lukas Strassel
696a06fa00
Allow domain name to be referenced on an external page in the navigation.
...
closes #6939
- added a test for the specific issue
- modified the url generation to allow the url in an external pages slug
2016-06-09 15:28:58 +02:00
Hannah Wolfe
9ddcecccab
Merge pull request #6936 from SuchSoftware/6935
...
Fixes #6935 - Let Bluebird know Promise is not runaway
2016-06-09 11:46:35 +01:00