Commit Graph

  • 930fb1f697 Remove tabs, fix indentation. Bharat Mediratta 2008-12-09 08:29:12 +00:00
  • 2f8e3292fe fixed album view button display in IE, link text is now visually hidden Chad Kieffer 2008-12-09 07:08:17 +00:00
  • 2fbd4c09e6 Checked in jQuery superfish menu plugin, applied to item options menu. Updated album/item view icons. Chad Kieffer 2008-12-09 06:40:20 +00:00
  • 5ae606786a update call from access::can() -> access::group_can() Bharat Mediratta 2008-12-09 00:50:58 +00:00
  • f69f3967ea move user::delete() to User_Model::delete() Bharat Mediratta 2008-12-09 00:07:26 +00:00
  • e3ad42a276 Add access::can() which verifies that the user belongs to a group that has the given permission. Bharat Mediratta 2008-12-09 00:02:20 +00:00
  • bd3a472be7 Rename access::can() to access::group_can() Bharat Mediratta 2008-12-08 10:46:53 +00:00
  • 85239ec750 Ignore gallery_unit_test/views/kohana_*.php Bharat Mediratta 2008-12-08 10:46:06 +00:00
  • b0f39497b4 Some minor beautification. Bharat Mediratta 2008-12-08 08:32:44 +00:00
  • 1094501251 Only add the unit_test and gallery_unit_test modules if we're in TEST_MODE Bharat Mediratta 2008-12-08 08:27:17 +00:00
  • fb93722e9e moved erro page from unit_test to gallery_unit_test Felix Rabinovich 2008-12-08 08:27:13 +00:00
  • 0a0852328a moved erro page from unit_test to gallery_unit_test Felix Rabinovich 2008-12-08 08:24:01 +00:00
  • b878ed174d Refactor Menu code to create allow you to create menus using a chainable factory interface and retrieve them by ids. Streamlined the HTML creation code a little bit in the process, moved the basic menu functionality into Theme_View and created the option to have different menus other than site_navigation(). Bharat Mediratta 2008-12-08 06:14:34 +00:00
  • 655581f3c9 Show unit test errors as text; not as html Felix Rabinovich 2008-12-08 05:19:21 +00:00
  • 8592aad2bb Replace protected array and __get() with just class variables. This is faster and tighter. Bharat Mediratta 2008-12-08 04:55:39 +00:00
  • 736829490a Minor cleanups. Bharat Mediratta 2008-12-08 04:50:56 +00:00
  • 528a48a96e Minor cleanups. Bharat Mediratta 2008-12-08 04:47:31 +00:00
  • 73496de94f Tighten up head() Bharat Mediratta 2008-12-08 04:39:21 +00:00
  • ee2299d6d0 Restructure Menu processing to respect the differnent types of menu items (Menu's, Menu_Link, Menu_Dialog) Tim Almdal 2008-12-08 00:23:33 +00:00
  • bd033cda8f Move form.html.php from themes/default/views to core/views Tim Almdal 2008-12-07 23:05:00 +00:00
  • ba2b39624b correct menu processing such that urls=# aren't given class gDialogLink Tim Almdal 2008-12-07 22:19:26 +00:00
  • 3449827c5a Change the menu processing to add the gDialogLink class if the url starts with a #. this results in a modal dialog box being opened. At this point the url is not retrieved and the text just shows up in the dialog box... need to look at that Tim Almdal 2008-12-07 22:10:23 +00:00
  • eaffc5e085 Changed how drawForms handles hidden fields. I make the assumption that hidden fields will never have an error or label so rather then recursing to draw the hidden fields, we just render them. Also moved the hidden fields outside the <ul>. Tim Almdal 2008-12-07 21:52:06 +00:00
  • 5f9e35bf93 Remove debugging code Tim Almdal 2008-12-07 21:34:19 +00:00
  • e518dafb19 1) Revert the changes to Form_Upload and Form_Textarea, so we don't have to change third party code. 2) Change drawForm to check for a non empty $input->class in order to determime if the element should be wrapped in <li>...</li>. If $input->class is empty then treat as a hidden field. Tim Almdal 2008-12-07 21:24:50 +00:00
  • 954fcf0342 Merge gallery3/branches/menus back into gallery3/trunk Tim Almdal 2008-12-07 19:45:46 +00:00
  • b409a376f3 1) Change the photo description field to a text area 2) Added a 'type' data element to both forge/Form_Textarea and forge/Form_Upload Tim Almdal 2008-12-07 17:09:21 +00:00
  • 5d23a6515d Finish writing unit tests for Access. No bugs found! Bharat Mediratta 2008-12-07 10:56:44 +00:00
  • fef188d787 Leave all locking in ORM_MPTT::move_to, don't worry about it in Item_Model::move_to, unless it turns out that we really need to. Bharat Mediratta 2008-12-07 09:25:40 +00:00
  • bf7ab8904a Change ORM_MPTT::add_to_parent() to take an ORM instead of an id so that it's consistent with ORM_MPTT::move_to() Bharat Mediratta 2008-12-07 08:46:44 +00:00
  • e40b54a468 Adjust exception text to our normal form. Bharat Mediratta 2008-12-07 08:32:30 +00:00
  • c9cc6ffd1a fix a couple of typos. Bharat Mediratta 2008-12-07 08:30:08 +00:00
  • 055aa04497 Rename moveTo to move_to and extend the test a bit. Bharat Mediratta 2008-12-07 08:23:22 +00:00
  • d086f31ea4 Style cleanups to make File_Structure_Test pass. Bharat Mediratta 2008-12-07 07:42:02 +00:00
  • ba18542527 Yay! Working item upload dialog from the album page! Chad Kieffer 2008-12-07 07:04:58 +00:00
  • c65ae12032 Let dialogs be draggable for now. Chad Kieffer 2008-12-07 04:58:07 +00:00
  • f0a1950597 Fix a bug in the redirect after adding photos. Bharat Mediratta 2008-12-07 04:56:39 +00:00
  • 36cda412f4 First go around at reusable modal dialogs. Moved jQuery UI CSS into screen.css, moved default theme JS to js folder. Named jQuery UI files to match the file names as they distribute them. Removed accordion, it's not used yet. Chad Kieffer 2008-12-07 04:49:26 +00:00
  • 9bfeb413ab Added title attribute. Chad Kieffer 2008-12-07 01:28:37 +00:00
  • 2aa84796f3 * Don't call _getadd_photo_html() when we don't have an items table. * Guard against errors when uninstalling modules that don't have any code left (eg: carousel) * Create the var/uploads dir automatically. Bharat Mediratta 2008-12-07 01:24:44 +00:00
  • adfe664d96 Removed tabs, todo, added description Chad Kieffer 2008-12-06 23:28:26 +00:00
  • fb6e22e145 Implemented photo::_get_photo_add(). You need to create the var/uploads directory and make it writable by the server. The location of the temporary upload directory is specified in config/upload.php Tim Almdal 2008-12-06 21:14:36 +00:00
  • 64c380a60d Correct @todo's in Item_Controller Tim Almdal 2008-12-06 20:27:55 +00:00
  • dca3cd2e8d Switch the slideshow link from text to icon. Chad Kieffer 2008-12-06 17:18:55 +00:00
  • 611b8f44ed Add firing comment_added and comment_updated events Tim Almdal 2008-12-06 06:10:15 +00:00
  • bda84d71eb Fix a bug where any uninstall removed the entire database. Bharat Mediratta 2008-12-05 06:27:02 +00:00
  • 89787fa8ab Make sure the pager clears the album grid. Chad Kieffer 2008-12-05 06:26:33 +00:00
  • 69f48d37c3 Removing carousel. Slideshow and planned album views should cover this functionality Chad Kieffer 2008-12-05 06:22:51 +00:00
  • bfd3a21dfd Added album and item view icons (album, hybrid, slideshow, full size). Added "Options" menu placeholder to display item options (add, edit, subscribe, permissions, etc.). Renamed gAlbumHeaderMenu to gItemMenu which can be used on both album and item views. Chad Kieffer 2008-12-05 06:06:02 +00:00
  • 0d1c040605 Don't need to pass the event, it's not used. Chad Kieffer 2008-12-05 06:01:44 +00:00
  • 2e908ec6e5 Read that $("#Selector").length was a good way to check whether an element exists in the DOM/jQuery object. Chad Kieffer 2008-12-05 05:59:50 +00:00
  • 8d1790a0b4 * Add a moveTo unit test * Pass the module::event(..., $data) by reference to the handlers Tim Almdal 2008-12-05 04:56:33 +00:00
  • 362f43169c Removed right border off of #Content container, don't need the separation between it and the Sidebar. Chad Kieffer 2008-12-05 04:24:54 +00:00
  • 6ea063bc4c Tweak some issues with the moveTo Processing Tim Almdal 2008-12-04 21:33:25 +00:00
  • 0f103b1c06 Moving albums around with a drag and drop interface seems to work and preserve the left right pointers. * changed _lock and _unlock to protected methods lock and lock respectively * added a moveTo method on the Item_Model * Corrected the hole closure on delete. * added moveTo on the ORM_MTPP class * Changed the rearrange javascript to do moves with ajax Tim Almdal 2008-12-04 20:05:58 +00:00
  • 80a7db61c9 Fix up the test framework to work now that we're only loading installed modules via the autoloader. Bharat Mediratta 2008-12-04 08:17:57 +00:00
  • 9ba9f7bf27 Change the startup code to only put installed modules on the autoload path. This breaks a bunch of places where we had hardcoded dependencies, so guard all of those cases. Restructure module::available() a bit and the way that we do install/uninstall in the scaffolding. Bharat Mediratta 2008-12-04 07:44:28 +00:00
  • deafa2f912 remove unused ->root Tim Almdal 2008-12-04 06:43:16 +00:00
  • bae905a4cb Improvements to access helper. Bharat Mediratta 2008-12-04 06:40:35 +00:00
  • 1ae3ed7e3b Get rid of the rearrange helper as the code could be inlined Tim Almdal 2008-12-04 06:36:14 +00:00
  • b9a0843d86 Remove an resemblence to a RESTful controller from Rearrange_Controller Tim Almdal 2008-12-04 06:28:42 +00:00
  • 4d76351017 Fix indentation Bharat Mediratta 2008-12-04 05:54:48 +00:00
  • c67a4f485d style updates Bharat Mediratta 2008-12-04 05:54:26 +00:00
  • 375e7c675e Implement ORM_MPTT::delete() properly. Inline ORM_MPTT::_grow() for now Rewrite ORM_MPTT tests to be domain specific; they no longer use album/photo helpers. Bharat Mediratta 2008-12-04 05:47:05 +00:00
  • 89a346c1e1 Rename Directory_Helper_Test to Dir_Helper_Test Bharat Mediratta 2008-12-04 05:45:00 +00:00
  • 24cbff29cc Replace grow_test and constrict_test with add_hierarchy_test and delete_hierarchy_test. Bharat Mediratta 2008-12-04 05:15:21 +00:00
  • 5c095cbd78 Add unit tests to test growing and contracting the left and right pointers Added a delete method to ORM_MPTT that contracts the tree when an item is deleted Tim Almdal 2008-12-04 01:12:44 +00:00
  • 9ae6acdc0a Before deleting an item, save the path to the image in the var directory as once the item is deleted, the $item->file_path() is no longer valid. Tim Almdal 2008-12-04 00:14:52 +00:00
  • e8cf2a3e67 Fix internationalized string. Bharat Mediratta 2008-12-03 23:32:29 +00:00
  • ccee9854c2 Rename file::unlink() to dir::unlink(). This creates an API that is clearer about its actions, otherwise we may accidentally blow away an entire hierarchy when we think we're deleting a single file (there's a reason why rm won't let you delete dirs that aren't empty!) Bharat Mediratta 2008-12-03 23:31:10 +00:00
  • 76196be483 Remove @todo Tim Almdal 2008-12-03 22:48:23 +00:00
  • 7bb4b6029d Add a MY_file class that extends the file helper by creating an unlink method that deletes a file or an album directory. Modify Items_Controller::_delete to call this new helper method when deleting an item Tim Almdal 2008-12-03 22:39:57 +00:00
  • d8511f2fde Implement two tests Bharat Mediratta 2008-12-03 19:10:23 +00:00
  • c3478675cd Fix a bug where we weren't actually deleting permissions (hooray for unit tests!) Bharat Mediratta 2008-12-03 19:09:56 +00:00
  • 03bc3c281e Make sure that we always run teardown, even when the test throws an exception Bharat Mediratta 2008-12-03 19:09:16 +00:00
  • 1e647c2a03 Drag and drop seems to work in the rearrange module Tim Almdal 2008-12-03 18:14:15 +00:00
  • 27a9c14d27 If the the post and get arrays don't contain a _method parameter, then use the request::method() to determine the actual request method (i.e. delete doesn't show up in either places) Tim Almdal 2008-12-03 17:33:18 +00:00
  • efc6270295 Test stubs Bharat Mediratta 2008-12-03 17:17:59 +00:00
  • 53664787d4 Add a filter to unit tests. Now you can do 'php index.php Album_Helper_Test Photo_Helper_Test' to just run those two Bharat Mediratta 2008-12-03 06:00:30 +00:00
  • f114814c03 Move the form html into the controller Bharat Mediratta 2008-12-03 05:59:39 +00:00
  • 39499cdf2e Add /welcome/form/add/photos to give you the add photo form. Bharat Mediratta 2008-12-03 05:40:59 +00:00
  • a4494b9f9a Put the output in pretty ASCII boxes. Bharat Mediratta 2008-12-03 05:15:03 +00:00
  • e03bb0f7c3 Re-enable access_cache propagation now that we've patched the MySQL driver. Bharat Mediratta 2008-12-03 04:28:14 +00:00
  • dc35a005bc Don't cache the table field definition when we're in test mode, else all the table changing shenanigans we do to add permissions and groups will fail to register. Bharat Mediratta 2008-12-03 04:27:29 +00:00
  • 718ac67a02 get rid of a stray space that was breaking the File_Structure_Test Bharat Mediratta 2008-12-03 04:17:02 +00:00
  • c1886aab88 Temporarily disable some code to get tests to pass. Bharat Mediratta 2008-12-03 04:05:24 +00:00
  • 7f9b765571 Fix errors in the preamble Bharat Mediratta 2008-12-03 03:53:46 +00:00
  • 844e5573f0 Make sure that the dev is not using the same db for tests as they are for production (this one's for you, valiant!) Bharat Mediratta 2008-12-03 03:49:45 +00:00
  • 705698a425 Drop the database and rm -rf test/var instead of calling uninstall on all modules. This guarantees a clean start w/out worrying about weirdness in the uninstaller code. Bharat Mediratta 2008-12-03 03:44:48 +00:00
  • 37758d15de Drop the right tables at uninstall time Bharat Mediratta 2008-12-03 03:43:50 +00:00
  • 98ea31a86d Grouped Ajax/Dom scripting related styles (gInPlaceEdit, gClose, etc.). Began gInPlaceEdit styles. Chad Kieffer 2008-12-03 03:24:45 +00:00
  • 6f959deed9 Rename generic test.php to gallery_unit_test.php to make navigation to this file a little easier Bharat Mediratta 2008-12-03 03:23:30 +00:00
  • db5bc20500 Fix a bad copy/pasted comment Bharat Mediratta 2008-12-03 03:18:43 +00:00
  • 0e752790a3 Removed per jozefs Bharat Mediratta 2008-12-02 21:41:07 +00:00
  • 2e42a5ea8c Remove the variable from inside _() Tim Almdal 2008-12-02 21:37:06 +00:00
  • 3953dde2c6 The rearrange module will now add an album if you drag the "new album" onto the album tree. I haven't had a chance to figure out why the form does get any styling or why a textarea is no included as a list item. Tim Almdal 2008-12-02 21:25:15 +00:00
  • ea11562e32 Oops, this was missing from the last fix. Bharat Mediratta 2008-12-02 04:54:37 +00:00
  • ae4c828b06 Fix a problem in _update_access_cache() where if the intent is default, we weren't properly propagating ALLOW where necessary. Bharat Mediratta 2008-12-02 04:38:45 +00:00
  • 52e63e7f75 Tighten up ul.permissions Bharat Mediratta 2008-12-01 23:48:07 +00:00
  • 9f1f10c4dd Turn <div/> into <div></div> to make Chrome happy. Bharat Mediratta 2008-12-01 23:46:43 +00:00