Commit Graph

35997 Commits

Author SHA1 Message Date
Jacob Gable
063cf6a003 Suppress login notification if navigating to /ghost
Added a simple regex check of the requesting url.  Put a placeholder in
in case you want to do some more checking and show a different message.

Should close #135.
2013-06-19 15:22:03 -05:00
Hannah Wolfe
bc3b8541ab Milestone 0.1.1 version bump commit & updated Casper reference to match 2013-06-18 22:42:30 +01:00
Hannah Wolfe
f5e46449ef closes #103 - deployments
Added a standard grunt build task for doing deploys, this works in tandem with the ghost-deploy.sh script
Switched grunt-zip for grunt-contrib-compress as it seems more stable/reliable
2013-06-18 22:28:30 +01:00
Matthew Harrison-Jones
26d57fbb17 Fixes transitions on input elements and other globals not working in Firefox
Removed unnecessary :focus transition style and updated actual transitions to Bourbon syntax.
2013-06-18 13:37:16 +01:00
John O'Nolan
ce6ea8cd66 Updating readme to be more targeted at 0.2 developer access 2013-06-18 11:01:04 +02:00
Hannah Wolfe
d15f1f8961 closes #101 - data model updates
Further changes to the data model to ensure created_by, author_id and updated_by are all set to user 1
Updated settings such that the default type is always 'general', and changed the types in the fixtures to be slightly more useful
Added additional assertions to tests to cover more assumptions about data
2013-06-17 23:59:08 +01:00
Hannah Wolfe
316985feab Pointer to Casper updated
Casper has been updated to match the name change of ghostGlobals to
settings
2013-06-17 23:36:12 +01:00
Hannah Wolfe
d0eace2d36 Merge pull request #166 from ErisDS/settings-cache
Settings cache & clean up "ghostGlobals"
2013-06-17 15:33:18 -07:00
Hannah Wolfe
50eb91fe51 issue #165 - reloading settings
- ghost.js - split the settings loading out of ghost.init, so that we have a function for loading / reloading settings
- api.js - implemented a new requestHandler, the cachedSettingsRequestHandler which handles all aspects of local caching for settings when making requests
- app.js - updated the settings api routes to use the new cached request handler
2013-06-17 23:24:05 +01:00
Hannah Wolfe
32bbf2ba57 issue #165, issue #124 - cleaning up ghostGlobals
- ghost.js - globals/globalConfig has become settings / settingsCache to make it clearer
- app.js - the ghostGlobals local cache is gone, and the use of res.locals has been cleaned up and simplified, although this needs to be properly split into frontend and admin locals (to be finished in #124)
- frontend/index.js - doesn't need to be passed globals and nav properties as res.locals does this for us
2013-06-17 23:12:13 +01:00
John O'Nolan
cdb9ecab76 Merge pull request #170 from matthojo/Input-fix
Restore rounded corners on form inputs, fixes #169
2013-06-17 06:54:48 -07:00
Matthew Harrison-Jones
b46ac790ab Fixes wrong conversion from Compass to Bourbon. 2013-06-17 14:49:37 +01:00
Hannah Wolfe
f58c8eb6c3 Merge pull request #163 from jgable/exportData
Data import and export
2013-06-17 01:19:48 -07:00
Hannah Wolfe
8d8a6e0949 Wiring up the content settings panel to save blog description
Also cleaned up a bit of broken markup
2013-06-16 22:47:10 +01:00
Hannah Wolfe
0d5b6e8915 Added consistent error handling throughout the models 2013-06-16 22:36:28 +01:00
Hannah Wolfe
0a500bd104 Updating Casper reference to point to todays changes. 2013-06-16 20:49:47 +01:00
Matthew Harrison-Jones
14aabec80c Notifications can now be dismissed via click / tap 2013-06-16 19:45:16 +01:00
Hannah Wolfe
0f0769ab2b issue #157 - init ordering and error handling
reordering init so that settings are always loaded after the db is initialised
adding error handling to promises
2013-06-16 17:14:01 +01:00
Hannah Wolfe
382da5daf0 Adding a test for published at. 2013-06-16 16:09:54 +01:00
Hannah Wolfe
74dc64f1a3 Merge pull request #164 from cobbspur/helpers
Adding core helper function
2013-06-16 06:33:05 -07:00
cobbspur
b9e1ddcb2e Adds handlerbars helper 'foreach'
Function allows you to iterate through an array or object  in handlebars
Sets Key Values for @first/ @last entry and @odd/@even to true/false
2013-06-16 14:12:28 +01:00
ErisDS
17c8c02eae closes #117 - published order
Fixes the knex query so that posts are correctly returned in the order of published_at, desc
2013-06-16 12:21:49 +01:00
Hannah Wolfe
49999a7f15 Merge pull request #162 from javorszky/iss132
/register/ => /signup/
2013-06-16 01:45:57 -07:00
John O'Nolan
b278ed6aa7 Merge pull request #152 from matthojo/Users-Settings
Refactored users settings page - see #147
2013-06-16 01:33:51 -07:00
Hannah Wolfe
49f6cc92d4 Merge pull request #161 from tgriesser/published_at
Setting published_at when post changes to published status.
2013-06-16 01:33:24 -07:00
Tim Griesser
fad7087cd1 Setting published_at when post changes to published status 2013-06-15 19:24:27 -04:00
Jacob Gable
0c4ccc284b Data import and export 2013-06-15 20:52:32 +00:00
Hannah Wolfe
1369789aec closes #150 - Updating Grunt
Grunt tasks are now hopefully a little bit less confusing
Have updated the readme to match
2013-06-15 19:33:52 +01:00
Gabor Javorszky
78cbaf0387 /register/ => /signup/
Fixes issue #132. Also added `js-login-container` class to the
signup box, as it wasn't faded in due to javascript not picking
up the element.
2013-06-15 19:16:15 +01:00
Hannah Wolfe
7b932b9986 Merge pull request #160 from jgable/fixDeployPaths
Fix relative paths for deployment
2013-06-15 10:53:48 -07:00
Jacob Gable
a63690a471 Fix relative paths for deployment
In order to run with forever / supervisorctl, the relative paths need to
be converted to full ones based on the __dirname.
2013-06-15 10:54:49 -05:00
Hannah Wolfe
b816225dca Merge pull request #159 from jgable/fixRequireTree
Error check and default set for require-tree.
2013-06-15 08:48:51 -07:00
Hannah Wolfe
c59e12549e Merge pull request #158 from tgriesser/uuids
Adding uuid's for the posts, users, settings
2013-06-15 08:48:26 -07:00
Jacob Gable
b4b8be2bb8 Error check and default set for require-tree. 2013-06-15 09:22:50 -05:00
Tim Griesser
a5b9274bb5 adding uuid's for the posts, users, settings 2013-06-15 10:16:20 -04:00
ErisDS
057791893f Merge branch 'pr/155'
Merging Pull Request 155
2013-06-15 11:31:36 +01:00
Hannah Wolfe
4307b8c94d Changing Casper submodule to point to master 2013-06-15 11:23:29 +01:00
Gabor Javorszky
b0b11573f6 Restricting Admin user creation
Solves #138.
* Removed user and user_roles from fixture
* Restricted user creation to one user. That user is id 1, is admin
* Changed tests so they accommodate for this fact
* Can not create new user (fails on test, flashes on signup)
2013-06-15 10:10:26 +01:00
Hannah Wolfe
aedd9d7131 Merge pull request #156 from javorszky/iss112
Replaced config.blogData with settings
2013-06-15 01:37:12 -07:00
Gabor Javorszky
81d317a122 Replaced config.blogData with settings
Solves #112
* Removed config.blogData
* Changed Ghost.init() to accommodate new settings bits
* (data was already in the fixtures)
2013-06-15 00:39:27 +01:00
Matthew Harrison-Jones
0d75b737b8 Refactored users settings page
Improved standards of CSS and also refactored HTML markup. Search bar
also is implemented, with a prototype animation for displaying input
field.
2013-06-14 14:01:33 +01:00
Hannah Wolfe
5d901e5238 Merge pull request #130 from jgable/buildTask
Nightly build task
2013-06-13 23:08:22 -07:00
Hannah Wolfe
37fd6f7a06 Re-adding the image fixtures which I forgot to readd when I was moving them around 2013-06-13 21:44:18 +01:00
John O'Nolan
1fab45669e Adjusting form styles and animations for checkboxes. Fixes #7 2013-06-13 14:31:16 +02:00
John O'Nolan
43db602b41 Merge pull request #145 from matthojo/Checkbox-Styling
Removed the need for iCheck CSS dependency. See #7
2013-06-13 05:04:47 -07:00
John O'Nolan
5215387e07 Minor tweaks to login form animations and styles - fixes #134 2013-06-13 13:58:37 +02:00
Matthew Harrison-Jones
8d66cbd6e8 Removed the need for iCheck CSS dependency.
Made all iCheck images into CSS and removed the iCheck CSS stylesheet.
2013-06-13 12:54:57 +01:00
John O'Nolan
ed8ccc2170 Merge pull request #143 from matthojo/Login-Screen
Fixes login box being off centred on small screens
2013-06-13 04:36:12 -07:00
Matthew Harrison-Jones
de09e7d19c Fixes login box being off centred on small screens
Accounted for top offset to keep login container centred. Login container fades in on load.
Tested on a variety of window sizes and appears to be centred on all of them (measured it to make sure).
2013-06-13 09:38:40 +01:00
John O'Nolan
f2e913ddfd Merge pull request #141 from matthojo/Login-Screen
Keep login centered, fixes #134
2013-06-11 22:48:28 -07:00