Commit Graph

  • 103bd8e8d2 Add the original item height and width to the item table Tim Almdal 2008-11-19 22:45:30 +00:00
  • c8dc84d502 Change the regex to assert true for files that match the pattern "#/views/.*?(\.html|mrss)\.php$#" Tim Almdal 2008-11-19 22:39:44 +00:00
  • 8825687d03 Change the view_files_end_in_html_dot_php_test to view_files_correct_suffix_test and change it to also accept mrss as a valid suffix Tim Almdal 2008-11-19 22:20:23 +00:00
  • 7e5516302c clean up feed template Tim Almdal 2008-11-19 18:54:49 +00:00
  • 32b4a35568 Integrate Piclens lite as the slideshow Tim Almdal 2008-11-19 18:45:12 +00:00
  • b3314fc1dc Update the media rss template to include the resize and the fullsize added descendants by type method to the item model to allow for the selection of children by type Tim Almdal 2008-11-19 18:23:30 +00:00
  • 161998dde6 Fix some broken-ness: 1) Item_Controller::_create() and _update() were swapped 2) _create() was redirecting to the wrong urls on success 3) Change in-place return parameter from __return to _return 4) Change in-place code to tunnel _put via POST Bharat Mediratta 2008-11-19 06:35:54 +00:00
  • e14d5574b6 Cleanup media rss feed added parameters to thumbnail_url and resizes_url to be passed to the url::base call to generate ful urls Tim Almdal 2008-11-19 06:05:38 +00:00
  • 763f0808e9 Add the media rss feed link to the page header in the default theme Tim Almdal 2008-11-19 05:00:52 +00:00
  • fe75760d63 Make the album title in-place editable. Bharat Mediratta 2008-11-19 04:52:50 +00:00
  • 4ff0997c75 Fix a mistake in the route that let people try to get to the rest controller (it would fail, but this way they get a 404 instead of another error). Bharat Mediratta 2008-11-19 04:22:17 +00:00
  • 5638fc5fb6 Change the way that we do RESTful routing. Bharat Mediratta 2008-11-19 04:20:35 +00:00
  • e0efdee8b2 Fix /item -> /items to conform to new REST api. Bharat Mediratta 2008-11-19 04:14:09 +00:00
  • c0aa61787c Change output_format() to autodetect for html / xml / json Bharat Mediratta 2008-11-19 03:42:43 +00:00
  • 3e67a35cb0 change mime_type column from 255 chars to 64 Bharat Mediratta 2008-11-19 03:39:38 +00:00
  • 89bb3c42f7 Update the unit test for mime types. Can't test it right now because routing is broken for the test framework so we have to fix that first. Bharat Mediratta 2008-11-19 03:39:12 +00:00
  • 20a0700fcb Set the content type to application/rss+xml Bharat Mediratta 2008-11-19 03:29:57 +00:00
  • c7b2090f0c add the mime type column on the item table Tim Almdal 2008-11-19 03:29:53 +00:00
  • a197c057c8 rename views/feed.media_rss.php to views/feed.mrss.php because mrss is a more standard abbreviation for MediaRSS. Sigh. Bharat Mediratta 2008-11-19 03:23:40 +00:00
  • c67f9069d0 Rename views/media_rss.html.php -> views/feed.media_rss.php because as Tim points out, "it's not html". My bad! Bharat Mediratta 2008-11-19 03:21:43 +00:00
  • 9311c12f1f rename views/media.rss.php to views/media_rss.html.php for consistency. Bharat Mediratta 2008-11-19 03:18:59 +00:00
  • df4832bf6f Change Media_RSS_Controller so that it does not extend REST_Controller, since it doesn't refer to a fixed resource or collection of resources. Bharat Mediratta 2008-11-19 03:17:56 +00:00
  • 693080669a fix a few minor issues Tim Almdal 2008-11-19 02:50:11 +00:00
  • ad7ace9b72 The continuing evolution of the slideshow... 1) added a mime_type property to the item module(no database change) 2) created a media_rss module 3) moved most of the functionality for the downloading the images to the media_rss module Tim Almdal 2008-11-19 02:31:20 +00:00
  • b2772f5a05 * Renamed the album, item and photo controllers to albums, items and photos in order to follow the convention that controllers that refer to a collection of resources have plural names. * Added a bug workaround to routes.php Jozef Selesi 2008-11-19 00:12:25 +00:00
  • 1992343c2e * Changed REST API. Now there are two separate methods for forms: GET /form/edit/{controller}/{resource_id} -> controller::_form_edit($resource) GET /form/add/{controller}/{parameters} -> controller::_form_add($parameters) * Updated comment, user and core modules to reflect the API changes * Cleaned up routing and handling of requests to /{controller} Jozef Selesi 2008-11-18 23:40:47 +00:00
  • 4bf486955c The start of the slideshow module. Mostly framework stuff, no real implementation yet Tim Almdal 2008-11-18 19:09:24 +00:00
  • 4dfa22606f Correct the placement of the slideshow button on the photo.html page Tim Almdal 2008-11-18 16:39:35 +00:00
  • 6f4fae0786 Added the is_installed to the module helper and change to photo.html to not try to display a comment if it is not installed Tim Almdal 2008-11-18 16:26:36 +00:00
  • b63ea2cdbf - All comments of an item can now be seen /comments?item_id= - Return proper Content-Type header for GET /comments requests - Got rid of the query processing for index() in REST_Controller() - Small misc fixes Jozef Selesi 2008-11-18 15:48:08 +00:00
  • d4fc15f76c Fix a typo in the text MPTT link Bharat Mediratta 2008-11-18 09:07:46 +00:00
  • d8225e44c4 Fix a typo user_id -> owner_id Bharat Mediratta 2008-11-18 09:03:49 +00:00
  • 394de8ec0a Gracefully handle the no-comments case Bharat Mediratta 2008-11-18 09:03:26 +00:00
  • 3ebb751cda First iteration of REST controller refactoring. RESTful controllers that refer to collections should now have plural names and there should be only one controller per resource. Updated existing classes that implement REST_Controller. The routing now works like this: GET /controller -> controller::_index() POST /controller -> controller::_create() GET /controller/id -> controller::_show() PUT /controller/id -> controller::_update() DELETE /controller/id -> controller::_delete() GET /form/edit/controller/resource_id -> controller::_form() GET /form/add/controller/data -> controller::_form() Jozef Selesi 2008-11-18 08:28:32 +00:00
  • 59dbd1dc83 Move User_Controller to Users_Controller per jozefs request. Bharat Mediratta 2008-11-18 08:10:14 +00:00
  • 8b6796fa5f Synchronize the model rules with the database definitions and vice-versa. Tim Almdal 2008-11-18 00:38:36 +00:00
  • c031fcef23 Remove stray <ul> from comment list Bharat Mediratta 2008-11-17 04:54:13 +00:00
  • c91e90406b Add output formats to our REST controllers. Add support for JSON and XML to the comment controllers as a proof of concept. It's not fully baked; we should examine ways to create helpers to make this process easier. Bharat Mediratta 2008-11-17 00:30:18 +00:00
  • 0975e702a9 Add _method=put to the edit form Properly implement User_Controller::_put() Bharat Mediratta 2008-11-16 19:26:44 +00:00
  • 1a2cb5ff04 Put _method into the edit form's url; Implement Comment::_put() properly Bharat Mediratta 2008-11-16 19:23:41 +00:00
  • b6de985922 Handle _method in either GET or POST Bharat Mediratta 2008-11-16 19:22:27 +00:00
  • 5d14531af9 Drop the call to render() and just use the View's __toString method to print it out. Bharat Mediratta 2008-11-16 19:12:01 +00:00
  • bcb2230a6b Remove a @todo Bharat Mediratta 2008-11-16 10:19:01 +00:00
  • 4610fc8e7f Create Forge::add_rules_from() which pulls validation rules from the model and associates them with the form. This replaces the various _add_validation_rules() functions in the user and comment modules. Bharat Mediratta 2008-11-16 07:51:42 +00:00
  • ce7fbf979d Stop using the target param; replace the form by hand so that we can run ajaxify_comment_form() as needed. Otherwise the 2nd post attempt won't be ajax Bharat Mediratta 2008-11-16 07:27:36 +00:00
  • e3be3cecf5 Second half of renaming the tags module. Change all occurrences of gTags to gTag in the CSS. Bharat Mediratta 2008-11-16 07:20:58 +00:00
  • e87a37b855 Rename 'tags' module to 'tag' for consistency of pluralization Bharat Mediratta 2008-11-16 07:17:29 +00:00
  • 140736a1e4 Several large changes: Bharat Mediratta 2008-11-16 07:14:12 +00:00
  • b8b60df391 Rename gLogin -> gLoginForm Bharat Mediratta 2008-11-16 07:07:16 +00:00
  • be67187ad9 Create MY_Forge to specify the defaul html Tim Almdal 2008-11-16 06:43:31 +00:00
  • 1a79a10893 prevent direct access. take 2 Felix Rabinovich 2008-11-16 06:09:11 +00:00
  • d4c95a089e prevent direct access Felix Rabinovich 2008-11-16 06:06:13 +00:00
  • f27929e126 create a regular user and make scaffolding assign owner to logged in user Felix Rabinovich 2008-11-16 05:46:42 +00:00
  • 2d463c5531 use text::alternate where appropriate Bharat Mediratta 2008-11-15 21:54:16 +00:00
  • 6fd7194544 Destroy the session on logout, don't just delete the user. Bharat Mediratta 2008-11-15 21:47:21 +00:00
  • fbc810098f Do comment add in a single request, some code cleanup. Jozef Selesi 2008-11-15 17:39:14 +00:00
  • 5e10b44a95 Remove unnecessary pasted code. Jozef Selesi 2008-11-15 17:04:16 +00:00
  • 0f11c77bcd Set svn:eol-style to LF. Jozef Selesi 2008-11-15 16:53:07 +00:00
  • f9eaa8c220 Initial add comment implementation. Jozef Selesi 2008-11-15 16:52:23 +00:00
  • 66bd9d85b3 Show per-field error messages inline again Bharat Mediratta 2008-11-15 10:15:12 +00:00
  • ca05d94b70 Add gInline to the form's unordered list to clean it up. Bharat Mediratta 2008-11-15 09:27:04 +00:00
  • 89c6f8f914 Don't show gLoginMenu if there's no user module Bharat Mediratta 2008-11-15 09:09:29 +00:00
  • 16828a4bc7 Delete the user from the session when uninstalling the user module Bharat Mediratta 2008-11-15 09:08:59 +00:00
  • e901d613bf Add Theme::module() and module::get() Bharat Mediratta 2008-11-15 09:08:18 +00:00
  • c152e5db5a Only remove the user from the session when logging out. Bharat Mediratta 2008-11-15 09:05:21 +00:00
  • 5486238d8d Set svn:eol-style to LF. Jozef Selesi 2008-11-15 08:52:58 +00:00
  • db6061096e Item / Owner changes. Bharat Mediratta 2008-11-15 08:44:01 +00:00
  • 6dbf5ae172 Clean user / item relationship. Upload files gets the ownership of current user; and the views don't break if user module is not installed Felix Rabinovich 2008-11-15 08:19:14 +00:00
  • dc1090d005 Now, only logged in users can edit stuff in-place. Bharat Mediratta 2008-11-15 08:16:58 +00:00
  • 9d1a598ec0 Add support for modifying user data. It still needs work. Bharat Mediratta 2008-11-15 08:15:00 +00:00
  • ae7839ffaa Revise the user login code. Bharat Mediratta 2008-11-15 06:23:09 +00:00
  • 26c8772e16 jquery.form.js r5945 Bharat Mediratta 2008-11-15 05:27:46 +00:00
  • bd1ec2df1f The state of of the user registration functionality Tim Almdal 2008-11-14 18:16:13 +00:00
  • d7745f2ad8 Add the name attr to the input fields and use the form.serialize() method to generate the post data Tim Almdal 2008-11-14 17:23:10 +00:00
  • 61d957e372 Rename login.js to user.js Tim Almdal 2008-11-14 16:58:59 +00:00
  • ed90edfa96 Remove class="gInline" and set the css as suggested by thumb in -devel Tim Almdal 2008-11-14 16:56:17 +00:00
  • e0ec9dd76a Allow the HTTP get method to be called without an id to create any empty template. Tim Almdal 2008-11-14 16:51:11 +00:00
  • 5a2fe6bb0b Internationalize all strings Bharat Mediratta 2008-11-14 08:22:53 +00:00
  • 652cc48b77 change the display name to a varchar Tim Almdal 2008-11-14 07:42:20 +00:00
  • b5f48e4ab3 Use the shortform to load the resource. Tim Almdal 2008-11-14 07:30:47 +00:00
  • 2386902926 Remove the logout action from the login controller Tim Almdal 2008-11-14 07:20:00 +00:00
  • f0695f2030 Move logout to its own controller Bharat Mediratta 2008-11-14 05:21:47 +00:00
  • 71dc730986 Change quotes style Bharat Mediratta 2008-11-14 05:09:07 +00:00
  • 0fe8d44472 Create module helper and refactor all the code that creates, updates and deletes modules into it. Bharat Mediratta 2008-11-13 10:38:28 +00:00
  • 6d7130bffc Progress is being made... you can now logout Tim Almdal 2008-11-13 05:17:58 +00:00
  • f62719ba61 Login is now working, but you can't logout Tim Almdal 2008-11-13 04:56:12 +00:00
  • c9b07ff99e Only highlight text, radio, checkbox, select, and textarea elements in forms or list items with gError. Don't highlight submit, reset inputs. Chad Kieffer 2008-11-13 04:38:58 +00:00
  • d357ed4424 Adds the class gError to gLogin if the username or password is in error Tim Almdal 2008-11-13 04:07:03 +00:00
  • 7db9e60bd5 It's #gLogin, not #gLoginForm. My bad... Chad Kieffer 2008-11-13 03:54:23 +00:00
  • d52df803fa Removed padding on form text inputs, normalized font size of forms in header and sidebar. Chad Kieffer 2008-11-13 03:50:51 +00:00
  • c63ddc3432 Major updates to form CSS. Now using unordered lists for layouts. Added .gInline for forms like login, search, tags. Updated comment, login, search, and tagging forms. All form styles live in screen.css now. Still a lot to do, but this is a good foundation. Chad Kieffer 2008-11-13 03:39:18 +00:00
  • 74216a3c63 The login processing is starting to take shape. Login_Form is gone. The html for the login form is retrieve via an ajax call when the user clicks on login. Can't login with a valid id yet, but you certainly get error messages when things are wrong :-) Tim Almdal 2008-11-12 21:42:40 +00:00
  • 2a9f8b5bcd Added a legend to the fieldset Tim Almdal 2008-11-12 18:13:59 +00:00
  • 91b149adbf Generate the login view using fieldsets and an un order list Tim Almdal 2008-11-12 17:48:04 +00:00
  • 75527db81f Clean up alignment in the login menu when the login form is displayed Tim Almdal 2008-11-12 17:08:53 +00:00
  • 2019e9a931 Remove user_password class and move the functionality into the user helper class Tim Almdal 2008-11-12 15:53:39 +00:00
  • 56dcb953b0 Code cleanup, add test for time formatting function. Jozef Selesi 2008-11-12 15:43:05 +00:00
  • a1ca946a89 Make comment post time display more user-friendly by displaying 'today', 'yesterday', 'x days ago' etc. Jozef Selesi 2008-11-12 12:00:13 +00:00
  • ed8f1d4152 gBlockContent lives on the outer div, so remove it from the inner form. Bharat Mediratta 2008-11-12 10:54:01 +00:00
  • 453e15f502 Throw an exception when we can't upload a file. This is not the best solution, but it works for now. Bharat Mediratta 2008-11-12 10:11:05 +00:00