Commit Graph
646 Commits
Author SHA1 Message Date
Felix Rabinovich 34c9aa52b8 Fixed tabs and line endings 2008-12-14 02:45:07 +00:00
Felix Rabinovich 13ad40ab5c Created admin controller and made admin obey admin theme settings 2008-12-14 02:23:37 +00:00
Chad Kieffer c322f1fe4c Removed call to jquery.dimension 2008-12-14 00:15:23 +00:00
Chad Kieffer aa81669ec5 Removed jquery.dimension. It's methods are part of jquery core. 2008-12-14 00:14:11 +00:00
Chad Kieffer a56c118d44 Sidebar and comment white space and text size updates. 2008-12-13 23:38:49 +00:00
Chad Kieffer 92102c891c Layout cleanup and simplification. Move view-mode buttons into sidebar, search to header_top. Reduced borders. Started album grid improvements. Minor white space improvements. Still need to handle text/photo alignment in album grid, improve placement of search. 2008-12-13 23:02:16 +00:00
Bharat Mediratta af8c74f612 Fix a bug where parent permissions were not getting inherited to newly
created albums and photos.
2008-12-13 20:06:20 +00:00
Bharat Mediratta d480778108 Don't have to check if the item is loaded now, access::can will guard against unloaded items 2008-12-13 19:49:58 +00:00
Bharat Mediratta 8ba5ea3cf8 Make sure that access::can fails if the item is not loaded 2008-12-13 19:49:33 +00:00
Bharat Mediratta 65e237a59a Fix security pattern. We can't successfully call access::can unless the item is loaded. 2008-12-13 09:53:36 +00:00
Bharat Mediratta ee688d1f37 Reload modules *after* we blow away the database to flush out caches 2008-12-13 08:37:41 +00:00
Tim Almdal e7a763a8c2 Add permission check on the tag add controller, in case some bypasses the view and tries to access the controller directly. 2008-12-13 08:27:14 +00:00
Tim Almdal fc3fd3321d Add a permissions check to determine if the active user has edit permission on the item in order to display the tag add form 2008-12-13 07:49:27 +00:00
Tim Almdal 80792d4fb1 Set the resize and thumbnail maximum dimension into the module vars table 2008-12-13 05:01:12 +00:00
Tim Almdal 7b7bf37e67 Set thumbnails to 200x200 and resizes to 640x640 and let the Image::resize method pick the right aspect ratio 2008-12-13 04:12:40 +00:00
Chad Kieffer ec5b8dabed Whoops. Missed this in the last commit. 2008-12-13 02:48:59 +00:00
Chad Kieffer cc9aa9e72c Admin menu now similar to Wordpress admin menu. 2008-12-13 01:48:35 +00:00
Tim Almdal 8f4fec1f3d Change the check from class_exists to module::is_installed 2008-12-12 23:02:53 +00:00
Tim Almdal 43e626f99e Change the resize option on creating thumbnails and resizes to Image::AUTO which will preserve the aspect ratio of the original image 2008-12-12 21:37:11 +00:00
Tim Almdal 942dbe175c Remove a couple of todo's by store the "theme name", "admin theme name" and "page size" in the vars table and initializing when the core module is installed 2008-12-12 19:39:38 +00:00
Tim Almdal 7715aa9c64 If the user class doesn't exist, then just set the owner_id to null. Another issue of generating data before the user class is installed 2008-12-12 19:36:07 +00:00
Bharat Mediratta e12451cf10 Refaactor module::install() and module::uninstall() out of the
scaffolding and unit test code so that we can use it consistently.
This fixes an issue where adding a module was not refreshing the
statically cached module list causing the test framework to break.
2008-12-12 08:41:48 +00:00
Bharat Mediratta 7e4d13d9bd Point the Site Admin link at the wireframe for now. 2008-12-12 08:00:07 +00:00
Bharat Mediratta 597cc0013c Make the error handler public, else it can't be called from outside
this class (which is the most likely scenario).
2008-12-12 07:55:19 +00:00
Bharat Mediratta 79226f0a8f Cache modules and module_names when we call load_modules so that we don't have to check every time 2008-12-12 07:53:54 +00:00
Chad Kieffer 6ef284ac40 Dashboard protoype updates: Added welcome/general info block, logo, login menu, link to view gallery, close links for blocks, changed Logs to Statistics, and upped the font size. 2008-12-12 07:47:25 +00:00
Bharat Mediratta a0415afc1d Use restore_error_handler() instead of a second set_error_handler() call 2008-12-12 07:44:19 +00:00
Bharat Mediratta 187f28a6b3 Yet another deal with bootstrapping when we've got no core install yet. 2008-12-12 07:42:26 +00:00
Tim Almdal 2fb94444d9 Randomly choose images from core/tests/images as test images 2008-12-12 07:40:53 +00:00
Bharat Mediratta e65f8d5022 Remove head() for now. 2008-12-12 07:25:43 +00:00
Bharat Mediratta 11d4e2d725 Don't show the access tab if the user module isn't installed 2008-12-12 07:12:48 +00:00
Tim Almdal 6fd19dedbc Remove local_import directory 2008-12-12 07:10:48 +00:00
Bharat Mediratta 54d27238f3 Fix module::_core_installed() hack. 2008-12-12 07:09:00 +00:00
Bharat Mediratta a3142246e4 Move the view permission cache directly into the item table for efficiency. Unit tests ftw! 2008-12-12 06:54:48 +00:00
Chad Kieffer ffbb164934 New scaffold images. Landscape, portrait, square. 2008-12-12 06:54:30 +00:00
Bharat Mediratta 8b3989b063 Add user::guest() convenience function 2008-12-12 06:54:13 +00:00
Bharat Mediratta b54b34ed78 Pass list of test dirs into Unit_Test::_constructor() as an argument
instead of modifying the config.
2008-12-12 05:39:06 +00:00
Chad Kieffer 987814cac2 Missed this on the last commit. (Menu updates and added Gallery Info block for admin dashboard prototype.) 2008-12-12 05:12:11 +00:00
Chad Kieffer 732e43747f Apply padding-left to avoid overlap of text on message type icons. Menu updates and added Gallery Info block for admin dashboard prototype. 2008-12-12 05:09:35 +00:00
Bharat Mediratta 697c2503ae Add support for filtering tests down to the Class::method level. 2008-12-12 05:02:44 +00:00
Tim Almdal b202816324 Remove the attempt at a local import module 2008-12-12 01:46:43 +00:00
Bharat Mediratta 35067cbced Expand on our core-is-installed checking code. 2008-12-12 01:22:03 +00:00
Chad Kieffer 63f6e037a7 Keep .gError and other message type classes from wallpapering bg icons on form and form child elements. 2008-12-12 01:08:25 +00:00
Bharat Mediratta 2cf3233f54 Get rid of all pseudo users and pseudo groups, while preserving all
other functionality.  This makes our user/group and access code
fully consistent.
2008-12-12 00:59:30 +00:00
Bharat Mediratta 0f41cab732 Guard load_modules() against the case that the database isn't installed. 2008-12-11 23:10:42 +00:00
Tim Almdal bd992a97b2 Remove the options menus from the albums and photo pages and move to the site menu 2008-12-11 21:27:16 +00:00
Tim Almdal bf10544e27 Destroy the popup dialog when it closes so there is nothing hanging around and we can reuse it for a different popup 2008-12-11 20:47:09 +00:00
Tim Almdal faeb52e7f4 remove the <span class="ui-tabs-nav"> from arround the site menu. It was clashing with the superfish styling. 2008-12-11 19:22:38 +00:00
Bharat Mediratta bcd10e4a7f Convert a stray <li> to </li> 2008-12-11 19:12:41 +00:00
Bharat Mediratta 914164d5eb Split _update_access_cache into two functions separating view from
non-view.  This is a step along the path towards moving the view
access cache into the item model.
2008-12-11 19:06:40 +00:00