1580 Commits

Author SHA1 Message Date
Jef van Schendel
b957cba0cb First push with new style (includes css file, logo image, fonts) 2012-01-06 19:56:50 +01:00
Jef van Schendel
7646e695bf Fix div breaking in user.html; add media query bits 2012-01-06 13:44:00 +01:00
Jef van Schendel
173999a7e4 Resize image below 660px width 2012-01-06 13:34:25 +01:00
Jef van Schendel
7945cd21ba * Rename mediagoblin_header, mediagoblin_body, mediagoblin_footer, mediagoblin_header_right, mediagoblin_logo
* Add html5shiv for older browsers
* Small size fix (940px instead of 960pgx)
2012-01-05 23:36:16 +01:00
Jef van Schendel
a91e4e07e7 Add closing bracket so the whole thing doesn't break down 2012-01-05 22:46:21 +01:00
Jef van Schendel
ee0b9ea282 Remove last 960.gs leftover; fix classes for edit forms 2012-01-05 21:52:28 +01:00
Jef van Schendel
d2fce291b5 Fix merge conflicts 2012-01-05 21:42:56 +01:00
Jef van Schendel
7df9f45c32 Several changes for mobile layout 2012-01-05 21:36:24 +01:00
Jef van Schendel
34b4090cbf Always show 'Change account settings' link 2012-01-05 15:58:03 +01:00
Elrond
b48abba303 Fix Unit Tests for new password changing 2012-01-05 14:54:03 +01:00
Elrond
49af00e491 Make show-password-js work for change password too
The show password js depends on the password field to have
an id of "password". So give it a proper id.

Also fixed the label generation for the case of field.name
and field.id being different.
2012-01-05 14:47:15 +01:00
Elrond
4a24500aa4 Fix more StrictUndefined issues 2012-01-05 14:46:27 +01:00
Jef van Schendel
1c53f98c09 Add change-account-settings link to user.html 2012-01-05 00:18:29 +01:00
Jef van Schendel
a473deda9a Merge branch 'master' of gitorious.org:mediagoblin/mediagoblin 2012-01-05 00:17:51 +01:00
Jef van Schendel
c8071fa591 Create edit_account.html 2012-01-05 00:17:45 +01:00
Elrond
f1cdd278e7 f691: Use StrictUndefined for templates and fix some issues
References to undefined variables in templates were
silently ignored/converted to None/empty strings. This
makes coding lazy stuff easy, but it makes catching typos
harder.
(It would have catched one of the SQL things earlier!)

But on the other hand it might make the current templates
error out everywhere. In fact, early testing has shown two
instances, that errored out. Those are fixed with this
commit too.

If this turns out to make things more complex and useless
than actually solving any problems, it can easily be
dropped again.
2012-01-04 23:56:16 +01:00
Elrond
6a59a8abd4 Import MigrationManager from mongo in mongo backend.
Inside the mongo db backend, use the mongo
MigrationManager. This is hopefully the last reference to
the generic MigrationManager reference on db.util.
2012-01-04 22:31:52 +01:00
Jef van Schendel
9c196287ad Add Markdown for submit page, edit page, profile edit page; thus fixing ticket #690 2012-01-04 17:48:16 +01:00
Elrond
8545cfc97d Dot-Notation for MediaEntry.queued_media_file 2012-01-04 11:57:39 +01:00
Elrond
049284b1da Dot-Notation for MediaEntry.state 2012-01-04 11:57:39 +01:00
Elrond
228c4470f4 Dot-Notation for MediaEntry.media_files 2012-01-04 11:57:39 +01:00
Elrond
010fe2d71b sql convert: Use more library functions
1. Use the new setup_connection_and_db_from_config in the
   sql backend.

2. Use sql and mongo specific functions wherever
   appropiate instead of the generic "db.X" one. This makes
   the converter more indepedent of the current backend
   choice.
2012-01-01 23:51:14 +01:00
Jef van Schendel
ada0642e5a Seperate jQuery bit that was still in media.html 2012-01-01 22:58:32 +01:00
Elrond
445d811043 Fix unit tests for new forget password flow
After changing the password, the login page is now shown.
It contains a message.  (we can't test for that easily
currently.  There is a bug open on this problem.)

At least for the login page being shown now.
2012-01-01 19:20:38 +01:00
Jef van Schendel
35149b1124 Remove fp_changed_success.html, use log in page + notification message instead 2012-01-01 19:13:23 +01:00
Jef van Schendel
d8db95e4b7 Remove fp_email_sent.html and refs to it 2012-01-01 19:00:56 +01:00
Elrond
415077a743 Factor out check_db_migrations_current
When initializing the database connection the current mongo
based setup checked for new migrations and warned about
them. This was mongo specific so factor'd it out into a
more generic check_db_migrations_current function in the
mongo backend.

Also created a dummy one in the sql backend.
2012-01-01 18:36:42 +01:00
Jef van Schendel
f5d837fe4a Forgot this one. Also disable horizontal resize for the bio field 2012-01-01 18:14:39 +01:00
Jef van Schendel
ce86b1d5af Remove border-bottom from media_specs 2012-01-01 18:12:18 +01:00
Jef van Schendel
7fc782bb6d Disable horizontal resize for text areas. 2012-01-01 18:11:39 +01:00
Joar Wandborg
4601c30c2e Fixed submission error handling and broken tests
- Fixed broken test_auth test
- Fixed error handling on submission, it now raises the exception
  if it is not explicitly relevant to file submission.
2011-12-31 22:57:08 +01:00
Elrond
eab23e38d0 Merge remote branch 'remotes/joar/tests'
* remotes/joar/tests:
  Fixed broken confirm_password test
2011-12-31 21:57:51 +01:00
Joar Wandborg
a246ccca69 ASCII media type support & fix a bug in file submission error handling
* Added ASCII media processing
* Added ASCII media display
* Added ASCII media type

Rebased from Joar Wandborg's ascii art branch (squashed to remove the
commits borrowing code of dubious license)

Fixed a bug in file submission error handling:
 - Moved file-extension condition out of loop (what did it do there?)
 - Updated file submission tests
 - Changed error handling in file submission, should now report more
   than absolutely necessary.
2011-12-31 10:32:52 -06:00
Jef van Schendel
992e4f8032 Change forgotten password process: different redirect, added/changed messages 2011-12-30 21:29:15 +01:00
Jef van Schendel
694e965f45 Fix #712: Comment counter always uses plural 2011-12-30 20:17:59 +01:00
Jef van Schendel
6f55906078 Fix #715: On media submit page, "Separate" is misspelled 2011-12-30 19:45:00 +01:00
Joar Wandborg
7c7ba01ee3 Fixed broken confirm_password test 2011-12-30 19:11:47 +01:00
Jef van Schendel
426808cc8f Random changes that break stuff and eat piglets 2011-12-30 18:01:28 +01:00
Jef van Schendel
3ea6a305ce Lots of little fixes and removal of all 960.gs classes:
* Removed <p> margin-top
* Vertically align logo so Add-media button does not fall off
* Remove last 960.gs traces (grid_X/container_X) and add custom classes/sizes to css
* Add clear class
* Update form_box and add form_box_xl for bigger forms
* Switch all pages that use forms to new classes
* Remove padding from notification messages so they take full width
* Other tiny fixes I forgot about
2011-12-30 14:23:12 +01:00
Jef van Schendel
550d48d040 Forgot to include the newly created JS file 2011-12-29 22:56:42 +01:00
Jef van Schendel
4e9d467fc0 Isolate JavaScript; add new show_password.js to forgot-password-page as well 2011-12-29 22:54:31 +01:00
Jef van Schendel
dab1d70280 Finished #485 and worked out bugs: password fields always update, added margins, fixed Chrome width bug, wrapped checkbox in label element 2011-12-29 22:40:45 +01:00
Elrond
9f264942d8 Add a .save method on the sql db objects
This is a shortcut to adding the object to a session (if
needed) and giving a commit on the session.

In reality, calling code should probably utilize the
session on its own and call commit in an appropiate place.
2011-12-29 10:41:50 +01:00
Elrond
03c2286232 Support .get(fieldname) on sql db objects
Some parts of the code like to call .get("somefield") on
the db objects.  It's easy to support this on sqlalchemy
based objects, so lets do it.
2011-12-29 00:14:47 +01:00
Elrond
690672580e Fix "bin/gmg migrate" after mongo move
When moving most stuff from db to db/mongo, "gmg migrate"
was left out.

Fix it now!
2011-12-28 23:46:36 +01:00
Elrond
0724930a68 Show --log-file option in lazyserver help. 2011-12-28 23:27:46 +01:00
Elrond
88e90f41eb SQL Model: Add relationship properties
MediaEntry now has a get_uploader (property) loading the
appropiate User object for the MediaEntry (and caches it).
MediaComment has the same for author as get_author.
2011-12-28 22:58:44 +01:00
Elrond
c6263400cf SQL Model: Forgot MediaEntry.state field
While creating the new SQL model, the "state" field of
MediaEntry was left out. Currently using a plain unicode
string for it.

Maybe should use sqlalchemy.types.Enum?
2011-12-28 22:58:32 +01:00
Elrond
19ed039ba6 Implement _id proxy on sql objects (on User for now)
So that the old code can access the primary key still as
"._id".

Quite simple Python Descriptor thing.
Very generic.
2011-12-28 22:26:00 +01:00
Elrond
0575175846 Turn media.get_uploader into a property
sqlalchemy gives autoloading (hopefully caching) link to
other objects as properties. So turn get_uploader on the
current mongo based stuff into a property to ease
transition.
2011-12-27 20:41:31 +01:00