Commit Graph

1096 Commits

Author SHA1 Message Date
Hannah Wolfe
2004bcc531 Merge pull request #3767 from jaswilli/clear-ws-slug 2014-08-19 10:13:45 +01:00
Jason Williams
77af056fd0 Reset slug input text box after invalid input.
No Issue
- When an invalid, all whitespace slug is entered into the
  slug input in the post settings menu, it's rejected but
  the input's value still remains the same.  This resets the
  input back to its original value.
- Added test for the above behavior.
- Only show success notification if slug was actually changed.
- Convert whitespace from tabs to spaces in post-settings-menu.hbs
2014-08-18 21:10:57 +01:00
Hannah Wolfe
8be442a59a Merge pull request #3766 from jaswilli/user-slug
Correct behavior on updating user slug.
2014-08-18 20:55:54 +01:00
Hannah Wolfe
d3bab3e4db Fixing bad merge 2014-08-18 20:22:10 +01:00
Felix Rieseberg
c5bcc83b63 Post Settings: No 'Author' selection for 'author'
closes #3756
- The post settings menu’s option to change the post’s author isn’t
displayed if the user has the ‘author’ role.
- Also fixed some incorrect indentation in the template (no actual code
change)
2014-08-18 19:29:19 +01:00
Hannah Wolfe
4ca21a7d75 Merge pull request #3805 from TryGhost/gui-update-yolo
Gui Update
2014-08-18 19:20:40 +01:00
Hannah Wolfe
f29b088394 Fixing tests, PSM and settings pane
- resolving test failures where number of tests changed
- fixing issue with PSM label
- re-removing app settings screen code
2014-08-18 18:16:09 +01:00
John O'Nolan
495b3da40e God damn tests 2014-08-17 22:23:00 +03:00
Hannah Wolfe
30661f8ddb Merge pull request #3762 from blia/dev
Fixed TypeError when updating slug
2014-08-17 16:02:14 +01:00
John O'Nolan
7f82aca17c Content management cleanup 2014-08-17 15:01:35 +03:00
John O'Nolan
6e119567c5 Settings nav overhaul 2014-08-17 15:01:35 +03:00
Paul Adam Davis
d400bd7c4e Use old form styles with class changes for radios & checkboxes 2014-08-17 14:58:03 +03:00
Paul Adam Davis
0a93fbc96a Working new dropdowns
- Implement new GUI 2.0 dropdowns into templates
2014-08-17 14:58:03 +03:00
John O'Nolan
d323b495a7 Implement new button markup 2014-08-17 14:57:07 +03:00
John O'Nolan
fe7805c0cf New publish button markup implementation 2014-08-17 14:53:47 +03:00
John O'Nolan
2331572978 Adding global app frame wrappers
This makes the new responsive styles work in a basic way. It'll probably need revisiting to break out the header area into a partial (maybe?)
2014-08-17 14:53:47 +03:00
John O'Nolan
b73d60bc2e Implement new global-nav markup 2014-08-17 14:40:44 +03:00
Hannah Wolfe
8edbaa9ae0 Merge pull request #3785 from jaswilli/post-status
Revert post status on failed save.
2014-08-15 18:27:47 +01:00
Hannah Wolfe
23d97fb7b1 Merge pull request #3670 from felixrieseberg/iss3641
Validation fix for number of posts/page
2014-08-15 18:27:14 +01:00
Hannah Wolfe
fcdbfbcc17 Merge pull request #3769 from novaugust/iss3764
Hide role dropdown on user page if user is owner
2014-08-15 17:53:46 +01:00
Jilles Soeters
4bb94e99f0 Added target="_blank" to all links that go to the support page. 2014-08-15 16:46:24 +02:00
Jason Williams
bb50791dce Correct behavior on updating user slug.
No Issue
- Defer save until after slug is checked.
- If new slug is empty or all whitespace, reset to previous value.
- If new slug is the same as existing slug except for an increment
  value (e.g. ghost-user-2), use the original slug.
- If the slug has changed, change the URL path to reflect the
  change so that the browser refresh and back button still work.
- Added tests.
2014-08-15 04:00:19 +00:00
Jason Williams
09ede03ce4 Revert post status on failed save.
Refs #3667, Refs #3776
- If saving a post fails, revert its status back to the
  pre-save value.
- Added tests to check post status after failed save attempt
  on both new and existing posts.
2014-08-15 00:22:10 +00:00
Hannah Wolfe
153a0c818f Merge pull request #3776 from felixrieseberg/iss3667
Ensure editor awareness if publishing fails
2014-08-14 21:19:21 +01:00
Hannah Wolfe
801ca568e4 Merge pull request #3738 from felixrieseberg/iss3728
Error notification if send test mail returns 500
2014-08-14 20:38:08 +01:00
Hannah Wolfe
ec05c703ec Merge pull request #3749 from novaugust/ghost-logo-link
Update ghost-logo, amend the amdendments, death to jQuery
2014-08-14 20:19:00 +01:00
Felix Rieseberg
beba43b8f3 Ensure editor awareness if publishing fails
closes #3667
- If the ‘save’ function on a new post fails, the local Ember model
still beliefs that the status is ‘published’, resulting in wrong
buttons. A simple catch fixes that.
2014-08-14 11:05:05 -07:00
Felix Rieseberg
9d2b29df8a Validation fix for number of posts/page
closes #3641
- Reworded error messages, remove “please” (credits go to @YouriAckx)
2014-08-13 12:08:09 -07:00
Hannah Wolfe
8d9eaa5240 Merge pull request #3733 from rwjblue/use-ghost-paths-util
Use the ghost-paths consistently.
2014-08-13 18:28:11 +01:00
Matt Enlow
150ce6c9b9 Hide role dropdown on user page if user is owner
Closes #3764
2014-08-12 18:06:34 -06:00
Kirill Yakovenko
a0d5817203 Fix TypeError when updating slug
- added check slug before trim
2014-08-12 17:46:14 +03:00
Felix Rieseberg
4cd78e3e4d Error notification if send mail api returns 500
closes #3728
- If the mail config is broken, the ajax call will fail with 500 and
not return an error.
- This change catches 500 and wraps the error in a notification.
2014-08-11 09:15:12 -07:00
Matt Enlow
8fb6555df5 Update ghost-logo, death to jQuery
Amends #3740 (which amended #3736), ref #3623
- Removed futzy jquery for setting href on logo; binding to ApplicationView property
- Killed dead code
2014-08-11 09:52:55 -06:00
Hannah Wolfe
6aba193bb5 Merge pull request #3740 from PaulAdamDavis/ghost-logo-link
Change Ghost logo link back to an anchor
2014-08-11 12:20:42 +01:00
Paul Adam Davis
15285c1593 Add ghost logo anchor tag
Amends #3736, references #3623

With `button.ghost-logo`, there's no `href`, so cannot be opened in a new window. This changes it back to an anchor and appends the blog URL to a href attribute. Win!

Bumps Ghost-UI version to 0.8.13 bring in related CSS changes.
2014-08-11 12:08:08 +01:00
John O'Nolan
d1a481d2e1 Merge pull request #3744 from PaulAdamDavis/user-actions-button
Change user actions button tag
2014-08-11 13:03:22 +02:00
Robert Jackson
970ccff961 Ensure that slug is always synced for User form. 2014-08-11 11:42:53 +01:00
Paul Adam Davis
4f4562e452 Change user actions button tag
No issue

- Changes the user actions button to a `<button>` element.
2014-08-11 11:29:29 +01:00
Hannah Wolfe
2b1beee7da Merge pull request #3736 from novaugust/ghost-burgers
Fix -navbar events attachment
2014-08-10 22:45:50 +01:00
Matt Enlow
0a2034f7e4 Fix -navbar events attachment
Closes #3623
- Move hamburger logic to action with terrible name, "toggleSidebarOrGoHome"
- Move ".js-close-sidebar" events to a document.on(event, *selector*, f) to make sure they attach even when the js-close-sidebars aren't on page (ie, hidenav)
2014-08-10 15:31:47 -06:00
Sebastian Gierlinger
0752ae2197 Merge pull request #3731 from ErisDS/issue-3724
Expose blog URL to client app
2014-08-10 20:51:45 +02:00
Hannah Wolfe
ccdcb7a4f8 Merge pull request #3730 from jyek/auth-route
Update authentication endpoint for subdirectory
2014-08-10 19:23:31 +01:00
Hannah Wolfe
8ae5e65462 Expose blog URL to client app
fixes #3724

 - provide config.url to the ember client app via a data attribute
 - create server and client side helpers to output the URL
 - wire up the client side helper
 - add a class for testing, and add tests for both the server and client side
2014-08-10 18:49:37 +01:00
Justin Yek
d6fca73f68 Update authentication endpoint for subdirectory
Fixes bug where user is unable to log into admin when subdirectory is specified
2014-08-11 01:29:36 +08:00
Robert Jackson
f8069b7ca9 Use the ghost-paths consistently.
Always using the utility function ensures that we have the ability to
update/change/etc these paths without scouring the codebase.

For example, if we ever decide to bump the API version it would be nice
if there was only one location it needed to be updated at.
2014-08-10 13:10:29 -04:00
Hannah Wolfe
3707993794 Merge pull request #3729 from rwjblue/ensure-author-in-psm-is-reset
Ensure PSM author is reset when changing posts.
2014-08-10 16:26:36 +01:00
Robert Jackson
9e07e18d2a Ensure PSM author is reset when changing posts. 2014-08-10 10:40:04 -04:00
John O'Nolan
3c8a6a5464 Fix wrong author slug on user settings page 2014-08-10 10:37:28 +03:00
Felix Rieseberg
1da2047236 Fix 'broken' debug tools template
closes #3715
- Includes wrapper class for @pauladamdavis css
2014-08-09 09:20:50 -07:00
Felix Rieseberg
69348b5bbb Error if user has already been invited
closes #3681
2014-08-08 16:41:16 -07:00