cobbspur
1d0bd6dda4
closes #201 changing font
...
- changes Lato for Open Sans
- adds link for Open Sans and removes Lato link
2013-07-01 20:31:12 +01:00
Hannah Wolfe
5c15c2d4b0
issue #186 - load plugins
...
- Adding activePlugins array to config.js
- Adding a loadPlugins function to ghost.js
- Tweaking fancyFirstChar.js so that it works again, getting rid of the function wrapper and constructor
2013-07-01 20:24:48 +01:00
Gabor Javorszky
6ab8109f40
Getting rid of adminnavbar filter and console.logs
...
Closes #219 . Self-explanatory, look at the code.
2013-06-30 16:50:26 +01:00
Jacob Gable
7498b520e4
Increment slug if duplicate
...
Refactored the generateSlug method to return a promise and check for
existing posts with matching slugs.
Should close #221
2013-06-25 20:48:48 -05:00
Hannah Wolfe
30bc4d8434
Fix for WOFF files
...
- get express to return the correct mime type for woff files
2013-06-25 22:47:29 +01:00
Hannah Wolfe
199d15133b
Navigation Helper
...
- renamed helper from ghostNav to nav and file from ghostNav to navigation
- switched template to use current-menu-item as per the styles
- cleaned up several unused items from config, and removed default link to admin
- updated tests
2013-06-25 22:44:34 +01:00
Hannah Wolfe
289a40e031
Cleaning up res.locals
...
- closes #124
- added new middleware to detect if a route should be admin or not
- updated ghostLocals to use this and return different locals
- updated ghost.js#initTheme to use the same test
2013-06-25 22:36:53 +01:00
Hannah Wolfe
4ed73edc62
fixes #202 - urls contain reserved chars
...
- further updates to the slugging function to check for certain words
- TODO: handle duplicates #221
2013-06-25 22:27:38 +01:00
Hannah Wolfe
2a7423c620
issue #136 - login redirects
...
Fixing logical error if there is no redirect
Also removing console log
2013-06-25 21:06:50 +01:00
Hannah Wolfe
7993cc22ab
fixes #202 - urls contain reserved chars
...
- added all reserved chars and \ to the list of chars which get filtered out
- added documentation
2013-06-25 19:07:19 +01:00
Hannah Wolfe
1005be472a
Fixing up some inconsistent TODO: items.
2013-06-25 17:58:26 +01:00
Hannah Wolfe
9e1191ae1e
Cleaner login redirects
...
- closes #136
- stripped /ghost/ out of all redirects
- changed redirect= to r=
2013-06-25 17:51:26 +01:00
cobbspur
376cf647e5
closes #197 & closes #196 pagination wiring and helper
...
- adds routes for homepage pagination
- adds helper function to compile template file for pagination
- adds next and prev to post for next and previous page
- adds handlebars template for pagination
2013-06-25 16:13:19 +01:00
Hannah Wolfe
afde1f7390
Merge pull request #214 from matthojo/Menu-Fixes
...
Fixed menus not hiding when clicking away.
2013-06-25 06:45:30 -07:00
Hannah Wolfe
588152898c
issue #58 - frontend jslint
...
Improvements to consistency
2013-06-25 13:47:48 +01:00
Hannah Wolfe
ba810fb0bb
issue #58 - removing the iiwf
...
Function wrapper and use strict pragma removed from all node files
2013-06-25 13:46:50 +01:00
Hannah Wolfe
2c7245e0e5
issue #58 - removing the iiwf
...
In order to remove the iiwf we need to be able to lint backend and frontend code separately.
Changed our devDependency for grunt-jslint to use a fork which has multiTask (PR sent to main repo)
Updated Gruntfile with split rules for the jslint tasks
As a result, a few files failed to pass the new rules, these have been fixed and added to the commit
2013-06-25 13:38:41 +01:00
Matthew Harrison-Jones
3b63eb78dc
Fixed menus not hiding
...
Also fixed `.dropdown` usage on menu bar.
2013-06-25 12:30:00 +01:00
Hannah Wolfe
ade3327a2a
Merge pull request #210 from matthojo/Remove-Profanities
...
Removing John's filth closes #208
2013-06-25 02:55:37 -07:00
Matthew Harrison-Jones
d45291d9a0
Removing John's filth
...
Removed frontend profanaties.
2013-06-25 10:46:03 +01:00
Matthew Harrison-Jones
d0f5fe6ddb
Removed functionally not working settings menu links.
2013-06-25 10:17:28 +01:00
Hannah Wolfe
3713cc4755
Merge pull request #207 from matthojo/Widget-Fixes
...
Widget Bug Fixes
2013-06-24 08:49:03 -07:00
Hannah Wolfe
8f322f0ecf
Merge pull request #205 from jgable/fixSettingsMultiSave
...
Fix settings multi save closes #174
2013-06-24 08:47:58 -07:00
Hannah Wolfe
59e150be5a
Merge branch 'master' into version-0.2.0
2013-06-24 16:47:19 +01:00
John O'Nolan
c4505b2457
Add link to Ghost VIP/Developer homepage on "G" in navbar
2013-06-24 14:32:02 +02:00
Matthew Harrison-Jones
0edeaeb17d
Widget Bug Fixes
...
Fixes bug with Ghost Widget and also fixes wrong active size option being shown in settings.
2013-06-24 13:11:02 +01:00
Jacob Gable
4810f410c4
Fix settings multi save
...
We were not undelegating our events on the element which was causing the
view to live on indefinitely in the background with its events still
bound.
2013-06-23 16:25:34 -05:00
Jacob Gable
2b7d0f054d
Import and Export UI
...
Added a basic UI and implementation for importing and exporting data.
Hooked up the routes and tested importing and exporting a version 001
file.
Slipped in the TemplateView in base.js but didn't end up using it. I
think it will encapsulate common logic for template views pretty well.
Should close #175 .
2013-06-23 16:06:57 -05:00
cobbspur
bf9c55a6fb
closes #187 foreach column parameter
...
- adds keys @rowStart and @rowEnd in foreach helper based on an argument passed in for the number of columns desired
- added setKeys function to remove duplication code
2013-06-23 16:46:02 +01:00
cobbspur
d1351dc8a3
closes #153 tabindex bug
...
- fixes tabindex issue on editor page
2013-06-23 11:49:30 +01:00
Hannah Wolfe
b7c1ed2aef
Merge pull request #191 from matthojo/template-moving
...
Updated reference to templates in Backbone views
2013-06-22 09:57:39 -07:00
Matthew Harrison-Jones
23d317ed3e
Updated reference to templates in Backbone views
2013-06-22 16:50:59 +01:00
Gabor Javorszky
07cbe984ae
Fix forge returning null on empty fetch
...
Closes #184 . It got broken because of a9c4a5409e
2013-06-22 13:49:32 +01:00
Hannah Wolfe
ecde2f078a
Merge pull request #189 from javorszky/iss184
...
Fix forge returning null on empty fetch
2013-06-22 05:44:38 -07:00
Gabor Javorszky
e40eb12a51
Fix forge returning null on empty fetch
...
Closes #184 . It got broken because of a9c4a5409e
2013-06-22 13:43:01 +01:00
Hannah Wolfe
c643976bab
Merge pull request #181 from matthojo/Input-Border-Fix
...
Fixes transitions on input elements and other globals not working in Firefox
2013-06-19 14:42:01 -07:00
Hannah Wolfe
28574e29c7
Merge pull request #183 from jgable/renameTmpl
...
Rename tmpl directory to tpl and remove content level. closes #137
2013-06-19 14:29:04 -07:00
Hannah Wolfe
5cb2f60cc5
Merge pull request #180 from matthojo/Notification-Dismissal
...
Notifications can now be dismissed via click / tap
2013-06-19 14:23:58 -07:00
Jacob Gable
ccdb63cc71
Rename tmpl directory to tpl and remove content level
...
Should close #137 .
2013-06-19 15:24:07 -05: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
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
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
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
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
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
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
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
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
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
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
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
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
Matthew Harrison-Jones
94c8c94ad1
Fixes login staying centred
...
Now included in `$(window).resize();` to update location of Login
container. The login is now more of a visually 'true' centre, with the offset being more towards the top.
Centring on resize, wasn't in original commit to remove one extra event listener.
2013-06-11 18:56:25 +01:00
John O'Nolan
2be5ce72ae
Merge pull request #140 from matthojo/Login-Screen
...
Vertically center login form, fixes #134
2013-06-11 09:56:47 -07:00
Matthew Harrison-Jones
fbd54942b5
Center Login container
2013-06-11 17:42:56 +01:00
John O'Nolan
bdd29fafaf
Appearance => Theme
2013-06-11 17:57:02 +02:00
John O'Nolan
1267f91935
Refactor + Restyle login/register screens. See #134
2013-06-11 16:45:42 +02:00
John O'Nolan
7e1bd2922e
Reducing overzealous sass indenting for performance.
2013-06-11 15:32:56 +02:00
John O'Nolan
501e8695f2
Correcting login screen markup/styling issues, fixes #133
2013-06-11 15:01:02 +02:00
Hannah Wolfe
0a0039820d
Merge pull request #127 from matthojo/Keyboard-Shortcuts
...
Added Keyboard Shortcuts to change Post Status and Save.
2013-06-11 05:24:36 -07:00
Hannah Wolfe
320bb311bc
Merge pull request #131 from javorszky/iss82-2
...
Registration no longer hangs on duplicate emails
2013-06-11 04:41:22 -07:00
Hannah Wolfe
06b5ab86fb
Merge branch 'pr119-merged'
...
Conflicts:
core/admin/views/settings.hbs
2013-06-11 11:56:01 +01:00
Hannah Wolfe
493cf6ea7f
Merge branch 'pr/126'
2013-06-11 10:30:00 +01:00
Matthew Harrison-Jones
44575cdb25
Added Keyboard Shortcuts to change Post Status and Save.
...
This also includes the updated Header tag shortcuts.
Also fixes keyboard shortcuts being broken due to `this` not being passed into shortcut each function.
2013-06-10 22:52:24 +01:00
Gabor Javorszky
e0caddeee7
Registration no longer hangs on duplicate emails
...
There was a return missing. This closes #82 again.
2013-06-10 21:26:20 +01:00
cobbspur
40d8b0321c
implements #38 html and scss for uploader
...
- Fixed broken html
- Added file input to html
- Styling for hidden file input button
- Styling for progress bar and loading
- Added javascript classes for hooking file upload
- Added loading image (cat)
2013-06-10 20:07:34 +01:00
John O'Nolan
4a630af54a
Removing box-shadow() mixin references that are deprecated in Bourbon, missed in previous commit. See #44
2013-06-10 09:51:49 +02:00
Ricardo Tomasi
cc6bb94e74
remove default .active tab from template. fixes #125
2013-06-09 19:56:47 -03:00
Hannah Wolfe
b3775feba0
Merge branch 'pr/119'
...
Conflicts:
core/admin/assets/js/router.js
core/admin/views/default.hbs
core/admin/views/settings.hbs
core/shared/data/fixtures/001.js
2013-06-09 21:41:07 +01:00
Gabor Javorszky
e271c6402f
Directory scanning on contents/themes and plugins
...
This implements #106 .
* Added require-tree which is based off of @ricardobeat's module. Fully async.
* I've moved active theme and active directory to settings from config as well.
* Modified settings.hbs and settings.js to display the raw json under Settings/Appearance
2013-06-09 20:17:54 +01:00
Hannah Wolfe
1df9b6e90a
Merge pull request #121 from jgable/filterPriority
...
Filter priorities
2013-06-09 12:12:04 -07:00
Hannah Wolfe
d3ac1c7fc7
Merge pull request #120 from jgable/permissable
...
Implement a permissable interface on models
2013-06-09 12:00:03 -07:00
Jacob Gable
55d8ff75b4
Filter priorities
...
Add the ability to specify a priority level when registering filters.
Also change doFilter to execute filters in priority order.
Closes #86
2013-06-09 11:16:25 -05:00
Hannah Wolfe
c733a1ac62
Merge pull request #114 from matthojo/Backbone-Widgets
...
Initial Backbone Widgets
2013-06-09 06:24:08 -07:00
Matthew Harrison-Jones
2e44a1f845
Converted static Widgets to Backbone.
...
Moved static HTML Widgets to Backbone.
Might need to move Widget data else where to keep it clean.
Will need to also implement API for future use.
2013-06-09 10:56:10 +01:00
Jacob Gable
1effc4e772
Implement a permissable interface on models
...
Added checks to the canThis process for a `permissable()` function
that would allow Models to override the permissions process.
2013-06-08 18:39:24 -05:00
Ricardo Tomasi
e2b3c40a34
Migrate settings page to Backbone
2013-06-08 19:36:54 -03:00
Ricardo Tomasi
c82e5976cc
Changes to Settings Model
...
- add email default setting to fixture
- make settings a single model
- create UNIQUE index on setting keys
2013-06-08 19:24:21 -03:00
Ricardo Tomasi
dc714611a9
move Ghost.View out of init, refactor
2013-06-07 23:16:28 -03:00
Hannah Wolfe
aa659d29b6
JSLint updates - function spacing consistency
...
- updating grunt-jslint to the latest version
- fixing up function spacing
2013-06-06 21:38:12 +01:00
Hannah Wolfe
60d90967e1
issue 101 - updating the data model
...
Added & removed many properties as required & fixed tests
Updated & also cleaned up the fixtures, inc images
Added order by published to the findPage query
2013-06-06 21:36:17 +01:00
Jacob Gable
e6f7c706cb
Permissions / ACL
...
- Created Role model
- Created Permission model
- Linked Users->Roles with a belongsToMany relationship
- Linked Permissions to Users and Roles with a belongsToMany relationship
- Created permissions helper with functions for initializing and
checking permissions (canThis)
- Unit tests for lots of things
2013-06-06 08:15:10 +01:00