Commit Graph

4149 Commits

Author SHA1 Message Date
Hannah Wolfe
13757041d9 Merge pull request #4270 from mispy/footnotes2
Footnotes extension for Showdown
2014-12-03 13:38:47 +00:00
Paul Davis
893bd1939c Merge pull request #4568 from jaswilli/buttons
Change anchors without hrefs to buttons.
2014-12-03 12:59:20 +00:00
Paul Davis
52a9cddc71 Merge pull request #4550 from felixrieseberg/iss4446
gh-trim-focus-input autofocus fix for iOS Safari
2014-12-03 12:59:02 +00:00
Sebastian Gierlinger
9b8141bb08 Merge pull request #4530 from ErisDS/issue-4498
API - no more m-2-m relation ids by default
2014-12-02 20:49:47 +01:00
Hannah Wolfe
4cb909542a API - no more m-2-m relation ids by default
closes #4498

- remove toJSON code which returns only IDs from objects
- don't auto-include tags & fields in post responses
- don't auto-include roles in user responses
- fix #allthethings that made assumptions about the auto-includes, or otherwise were only working because of the auto-include
2014-12-02 19:24:44 +00:00
Felix Rieseberg
69662bd5d2 gh-trim-focus-input autofocus fix for iOS Safari
Closes #4446
- Mobile Safari doesn’t support the HTML5 `autofocus` attribute, but
also doesn’t play nice with jQuery’s `focus()` and `select()` methods.
- Mobile Safari wouldn’t automatically select the input field anyway,
so this PR simply removes the “jumping input fields” error without
changing any actual behaviour.
- Disallowing the programmatic selection of input fields (with select,
focus or similar methods) is apparently considered a feature rather
than a bug (ref http://bugs.jquery.com/ticket/12789)
- `autofocus` attribute is now only set on non-iOS devices
2014-12-02 09:14:32 -08:00
Jason Williams
b6dff38d32 Change anchors without hrefs to buttons. 2014-12-02 15:02:37 +00:00
Hannah Wolfe
89905a8e3c Merge pull request #4560 from cobbspur/labs
Move ugly debug to Settings  Labs
2014-12-02 10:34:17 +00:00
cobbspur
edfa74f349 Move ugly debug to Settings Labs
closes #4534

- Adds new Labs route
- Wires route in settings page
- Move and rename debug templates and logic to labs
- Redirect /debug to settings/labs
2014-12-01 19:19:08 +00:00
Hannah Wolfe
c06e649ab1 Merge pull request #4554 from sebgie/issue#3872
URL safe base64 encoding
2014-12-01 16:56:14 +00:00
Sebastian Gierlinger
9ddabffa10 URL safe base64 encoding
closes #3872
- updated base64 escaping to respect + and \
- updated base64 escaping to remove = during transport
- updated tests
2014-12-01 16:59:49 +01:00
Hannah Wolfe
efbb5b6906 Merge pull request #4559 from JohnONolan/sitemap-xsl
Introduce sitemap XSL template
2014-12-01 15:34:37 +00:00
John O'Nolan
0d54fc88c1 Introduce sitemap XSL template
Based on Yoast's All in One SEO plugin for WordPress implementation
2014-12-01 16:10:14 +02:00
Hannah Wolfe
1e4a3cb204 Merge pull request #4551 from jaswilli/editor-401-modal
Do not display "auth failed" modal on clean posts.
2014-12-01 11:04:59 +00:00
Hannah Wolfe
aa44743c67 Merge pull request #4531 from Gargol/issue-4485
Cleans up HTML data attributes on body in default.hbs
2014-12-01 10:54:19 +00:00
Hannah Wolfe
2088fed5f7 Merge pull request #4547 from jaswilli/post-saving
Prevent silent failures and recover after error.
2014-12-01 10:46:28 +00:00
Hannah Wolfe
d2d9e4aea2 Merge pull request #4348 from jgable/sitemaps
Generate sitemap.xml
2014-12-01 09:28:14 +00:00
Jason Williams
3322fd6ff8 Merge pull request #4553 from jgable/fixSetupLink
Update getting started link
2014-11-30 23:53:50 -06:00
Jacob Gable
fe7e4311f1 Update getting started link
No Issue

Fixed link anchor address that was changed
2014-11-30 20:52:37 -08:00
Jason Williams
df4e0349ca Do not display "auth failed" modal on clean posts.
Refs #4543
- Check EditorController.isDirty before displaying the
  authorization failed modal dialog.  This prevents the modal
  appearing immediately upon entering the editor in cases where
  auth has failed prior to opening the editor.
2014-11-30 20:53:59 +00:00
Jason Williams
0a7d161822 Prevent silent failures and recover after error.
Refs #4543
- Alway return model out of save handler so sub-classes which
  call this._super() on save have a model on success and failure.
- Always return resolved promise out of post slug generator.
- Test the errors object in the error notification helper to avoid
  throwing an unhandled exception and silently failing.
- Consider a post model "dirty" if it is in an error state.
2014-11-30 20:38:24 +00:00
Jacob Gable
2cfa18475a Generate sitemap files
Closes #623

- Add basic init and eventing scaffold
- Add sitemap-index.xml generation
- Broke out generators to individual files, added request handler
- Add page, author and tag xml files; add index mapping
- Add SiteMapManager unit tests
- Add Generators tests
- Cache invalidation headers for sitemap-*.xml
- Redirect sitemap.xml to index and rename to sitemap-index
- Handle page convert and publish/draft changes
- Add very basic functional test for route existence
- Add cache headers to sitemap routes
2014-11-30 10:49:45 -08:00
Hannah Wolfe
f3de619ea7 Merge pull request #4548 from felixrieseberg/iss4545
Use non-deprecated moment.substract()
2014-11-30 12:51:42 +00:00
Felix Rieseberg
2ef0861d37 Use non-deprecated moment.substract()
Closes #4545
- Go with subtract(value, string) instead of subtract(string, value)
2014-11-29 17:58:55 -08:00
Nazar Gargol
df5a598718 Cleans up HTML data attributes on body in default.hbs
closes #4485

- removes data attributes used on body in default.hbs
- introduces new way to generate configuration through meta tags
- config initializer consumes configurations from the meta tags using parser
- moves blog_title helper/value to be a property in a configuration api
2014-11-29 17:09:43 +01:00
Hannah Wolfe
4f94c77634 Merge pull request #4542 from jaswilli/misc-cleanup
Miscellaneous client cleanup
2014-11-29 16:05:37 +00:00
Hannah Wolfe
423f0031f6 Merge pull request #4538 from jaswilli/config
Add Ghost version to config object.
2014-11-29 16:05:04 +00:00
John O'Nolan
f6e7bcc089 Merge pull request #4533 from PaulAdamDavis/logo-no-hover-bg
Swap nav item & logo style order
2014-11-29 16:54:14 +01:00
John O'Nolan
e1743e3501 Merge pull request #4536 from PaulAdamDavis/labs-icon
Add Labs, Nav & Grab icons
2014-11-29 16:53:52 +01:00
Jason Williams
90d12fd990 Miscellaneous client cleanup
No issue
- Consolidate extension of Ember.Router.
- Remove unneeded local jshint flags and '_' as a global.
- Cleanup client README.md.
- Fix error message.
2014-11-29 02:42:08 +00:00
Jason Williams
86cb690474 Merge pull request #4518 from ErisDS/rss-fixes
Change RSS content type & use absolute URL in meta
2014-11-28 13:07:07 -06:00
Hannah Wolfe
6f0bca8d57 Merge pull request #4522 from felixrieseberg/iss4487
Dynamic Titles in Ghost Admin
2014-11-28 19:06:44 +00:00
Jason Williams
1d562c8914 Add Ghost version to config object.
No Issue
- Use Ghost version value that is already loaded instead of
  reading package.json from the filesystem and parsing it on
  every call into the configuration API.
2014-11-28 18:08:50 +00:00
Paul Adam Davis
9c66f236a2 Add Labs, Nav & Grab icons
References #4535, #4534

- Add an Atom icon for Labs page
- Adds Compass and Grab icons for the Navigation page
2014-11-28 15:29:29 +00:00
Paul Adam Davis
08afada499 Swap nav item & logo style order
Closes #4532

- Swaps the order of nav-item and .ghost-logo styles, as .ghost-logo was being overwritten by .nav-item, allowing a hover state
2014-11-28 10:21:14 +00:00
Felix Rieseberg
7c4381c812 Dynamic Titles in Ghost Admin
- Every route can set a title token that is combined with the blog’s
title, resulting in titles like ‘Content - Test Blog’.
- Subroutes are supported (‘Settings - General - Test Blog’)
- The blog’s name is applied to and taken from the `config` object to
spare Ember a REST call via `store.find(‘settings’)`.
- Tests have been changed to test for the new titles.
- The initially proposed solution
(https://github.com/paddle8/ember-document-title) doesn’t play nice
with EAK, which is why I went with this solution
(https://gist.github.com/machty/8413411) by Ember.JS core dev @Machty.
2014-11-27 15:41:00 -08:00
Hannah Wolfe
1db30f896f Merge pull request #4527 from rwjblue/unit-tests
Add initial client unit test.
2014-11-27 11:48:16 +00:00
Robert Jackson
ef71d932f3
Add initial client unit test. 2014-11-26 23:20:50 -05:00
Hannah Wolfe
f4388712f8 Merge pull request #4502 from felixrieseberg/iss4431
Ensure Post Image Uploader Reset
2014-11-25 19:07:32 +00:00
Jason Williams
50cb92d4fd Merge pull request #4512 from sanddudu/patch-3
Fix gravatarLookup method
2014-11-25 09:56:50 -06:00
sanddudu
904727a927 Fix gravatarLookup method
Closes #4511
- Add missing "return"
- Fix error handling
2014-11-25 21:30:53 +08:00
Hannah Wolfe
31ae0c6923 Change RSS content type & use absolute URL in meta
no issue

- changes the content type for the RSS feeds from text/xml to
  application/rss+xml
- changes the link rel=alternate tag to use an absolute URL for the feed
  in the blog meta data
2014-11-24 22:33:49 +00:00
Felix Rieseberg
ce9d590f34 Ensure Post Image Uploader Reset
Closes #4431

- The PSM does not reset on a transition from editor (existing post) to
editor (new post). If the existing post had a cover image, the image
uploader would not be reset during the transition and appear slightly
broken in the editor for the new post.
- In this PR: A reference to the uploader is saved, allowing the route
for editor/new to instruct the PSM controller to have the uploader
reset.
2014-11-24 09:43:17 -08:00
Jason Williams
72af4ee4c1 Merge pull request #4514 from ErisDS/subdir-tests
Adding comprehensive subdirectory route tests
2014-11-24 11:17:21 -06:00
Hannah Wolfe
05a400384d Merge pull request #4513 from PaulAdamDavis/close-tag-settings-on-exit
Close tag settings menu on transition
2014-11-24 16:27:15 +00:00
Hannah Wolfe
7126c10a04 Merge pull request #4515 from PaulAdamDavis/tag-click-area
Larger edit tag hit area
2014-11-24 15:56:54 +00:00
Hannah Wolfe
af7bbb83e4 Merge pull request #4091 from hswolff/remove-a-cd
Removes objectTypeModelMap to reduce circular dependency.
2014-11-24 11:59:07 +00:00
Paul Adam Davis
7b1cfce2e9 Larger edit tag hit area
Closes #4505

- Increases the size of hit area on tags settings pages
- Comments out the styles for nested tags as these will need revisiting
2014-11-24 11:08:02 +00:00
Hannah Wolfe
cb726d57ef Adding comprehensive subdirectory route tests
closes #2230, refs #4477, #4476

- Test that subdirectories route correctly no matter how they're specified
2014-11-24 08:28:34 +00:00
Paul Adam Davis
8373d1d5b0 Close tag settings menu on transition
Closes #4504

- Adds a `willTransition` action that closes the tag settings menu when transitioning to another page
2014-11-23 21:17:29 +00:00