Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

Custom Post Templates UI #878

Merged
merged 1 commit into from
Oct 10, 2017
Merged

Custom Post Templates UI #878

merged 1 commit into from
Oct 10, 2017

Conversation

kevinansfield
Copy link
Collaborator

refs TryGhost/Ghost#9060, requires TryGhost/Ghost#9073

  • add {{gh-psm-template-select}} component
    • allows selection of a custom template for a post if the active theme has custom templates
    • loads themes on render, only hitting the server if not already in the store
    • disables select if post slug matches a post-*.hbs or page-*.hbs template
  • adds customTemplate attr to Post model
  • adds templates attr to Theme model with CPs to pull out custom vs post/page override templates
  • add .gh-select.disabled styles to make disabled selects look visually disabled

@coveralls
Copy link

Coverage Status

Coverage increased (+0.2%) to 72.583% when pulling ea956eb on custom-post-templates into 4e5fda2 on master.

refs TryGhost/Ghost#9060, requires TryGhost/Ghost#9073
- add `{{gh-psm-template-select}}` component
  - allows selection of a custom template for a post if the active theme has custom templates
  - loads themes on render, only hitting the server if not already in the store
  - disables select if post slug matches a `post-*.hbs` or `page-*.hbs` template
- adds `customTemplate` attr to `Post` model
- adds `templates` attr to `Theme` model with CPs to pull out custom vs post/page override templates
- add `.gh-select.disabled` styles to make disabled selects look visually disabled
@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 5694dc5 on custom-post-templates into ** on master**.

@kirrg001 kirrg001 merged commit 68442c5 into master Oct 10, 2017
@kevinansfield kevinansfield deleted the custom-post-templates branch January 12, 2018 12:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants