Commit Graph

  • e4bace4c74 Collapse Admin_Dashboard_Controller down into a single theme call, since now all dashboard blocks are stored in modules. Bharat Mediratta 2008-12-20 01:42:18 +00:00
  • b933d1a170 Move Recent Comments into its own block. Bharat Mediratta 2008-12-20 01:25:03 +00:00
  • 9afd9d05ae Move log entries into its own block Bharat Mediratta 2008-12-20 01:20:19 +00:00
  • 16a3e43b45 Move the "Photo Stream" section into its own block Bharat Mediratta 2008-12-20 01:16:46 +00:00
  • e12a4f2ae3 Move the "status messages" section into its own block. Bharat Mediratta 2008-12-20 01:13:57 +00:00
  • 68e9dcf027 Move Platform and Project News admin sidebar blocks into the new modular structure. Bharat Mediratta 2008-12-20 01:08:39 +00:00
  • ac4bb34cf2 Add admin sidebar blocks, and move the stats block into that pattern. Bharat Mediratta 2008-12-20 01:00:52 +00:00
  • aee3efe972 Create a pattern for admin dashboard blocks and make the "welcome" block. Bharat Mediratta 2008-12-20 00:52:20 +00:00
  • 30d541cb26 Copy this from the default theme and change <h3> to <h2> Bharat Mediratta 2008-12-20 00:51:15 +00:00
  • 99f131d9ae Create module::load_themes() to load the correct theme after we do routing and know whether we're going to an /admin page or a regular one. Bharat Mediratta 2008-12-20 00:50:37 +00:00
  • 6564007a9d Implement admin user editing. It's still very rough. Trying to figure out how to share forms between user and admin editing. Bharat Mediratta 2008-12-19 22:16:10 +00:00
  • 9d2d824336 Fix a bug in admin delegation. Bharat Mediratta 2008-12-19 22:14:14 +00:00
  • 17c0b01444 Add access::forbidden() Bharat Mediratta 2008-12-19 22:13:33 +00:00
  • 855a5928ce Create a new pattern for Site Admin controllers: Bharat Mediratta 2008-12-19 09:47:13 +00:00
  • 2438dba396 Delete the var/thumbs .htaccess files, too. Bharat Mediratta 2008-12-19 07:16:38 +00:00
  • 12e9c136f2 Add a bit more space under gHeader. Chad Kieffer 2008-12-19 06:10:45 +00:00
  • 5d2b1ae056 Don't try to validate the form unless it's a POST request. Bharat Mediratta 2008-12-19 03:05:11 +00:00
  • 0cf07fbeec Fix indentation. Bharat Mediratta 2008-12-19 03:02:58 +00:00
  • 6a58deb3a1 Missed this in last commit. Say it with me, run svn status before svn ci :) Chad Kieffer 2008-12-19 02:02:38 +00:00
  • 4a4ec2b486 Restored admin menu. Restored call to default theme's style sheet during development, to simplify the process. Admin specific styles go in admin_default/css/screen.css. Moved jquery files out to css and js. Chad Kieffer 2008-12-19 01:54:53 +00:00
  • 8b3e244578 We always have at least 1 page in an album. Bharat Mediratta 2008-12-19 01:26:49 +00:00
  • c00dc21ba8 Add session based CSRF protection to all forms Bharat Mediratta 2008-12-19 01:24:27 +00:00
  • 5ca17fd273 Allow server-side adding of images to other albums than the root Bharat Mediratta 2008-12-19 00:48:45 +00:00
  • 77c97daa37 Don't restrict image overlays Bharat Mediratta 2008-12-19 00:47:37 +00:00
  • f5bc55e72d Add labels to the form groups. Bharat Mediratta 2008-12-18 22:35:16 +00:00
  • a74537ad59 Don't wrap hidden inputs in <li/> Bharat Mediratta 2008-12-18 22:29:49 +00:00
  • 052bb79d68 Add <fh:complete/> Bharat Mediratta 2008-12-18 18:50:27 +00:00
  • c67234974d Refactor site admin menu into a theme function and build the menus in the various modules. In the process, rename xxx_menu::site_navigation() to just xxx_menu::site(). And add xxx_menu::admin(). Bharat Mediratta 2008-12-18 07:32:34 +00:00
  • aed68bfa9f I'm tired of clicking. Here are a few Selenium IDE tests. Chad Kieffer 2008-12-18 07:00:47 +00:00
  • c2598fe4d8 Dialog polishing. They now resize their height. Updated form styles in the context of dialog display (don't show legends, fieldset border, or submit button). Chad Kieffer 2008-12-18 02:50:40 +00:00
  • dc5faf0ebf Update cookie handling to ignore $Version, $Path and $Domain cookie attributes and make it RF2109 compliant. Bharat Mediratta 2008-12-18 00:41:55 +00:00
  • c92fbfd3c3 Add <generator> element to try to make Polar Rose happy (it doesn't work, though) Bharat Mediratta 2008-12-18 00:29:22 +00:00
  • db110df5ba Absoluteify some urls to make feedvalidator.org happy Bharat Mediratta 2008-12-18 00:28:30 +00:00
  • d4f1f6400f Polar Rose facial recognition module. Currently in a non-working state because their server is not RFC2109 compliant. Filing a bug. Bharat Mediratta 2008-12-18 00:16:03 +00:00
  • 55f63f6c9f Add item view permission checks. Switch from absolute urls to relative ones. Bharat Mediratta 2008-12-18 00:02:59 +00:00
  • b37047ff55 Add Item_Model::viewable() which we can use to restrict any query to just items viewable by the active user. Ie: Bharat Mediratta 2008-12-17 22:39:33 +00:00
  • fe39641089 Update Kohana code to r3799 from their svn head. All tests pass. Bharat Mediratta 2008-12-17 19:28:26 +00:00
  • 093fb407a8 Fix a bug where setting the active user did not reset group_ids (unit tests ftw!) Bharat Mediratta 2008-12-17 19:23:04 +00:00
  • 9b6ccfc7f3 Fix some lint errors Bharat Mediratta 2008-12-17 19:06:39 +00:00
  • 26f0b4e44d Clear out module list in load_modules() before trying any db operations Bharat Mediratta 2008-12-17 19:04:20 +00:00
  • d1c737ffac Extend the changes in list_tables() and list_fields() that uses TEST_MODE to avoid static members. Bharat Mediratta 2008-12-17 19:03:36 +00:00
  • fa5a8fde4a Switch from cookie sessions to database sessions. We can't use cookie sessions; it encodes all the value into the cookie which means little/no security, transfer costs, and storage limits. Bharat Mediratta 2008-12-17 18:32:08 +00:00
  • 130e26983a Add initialization to the user module to put the user and group_ids into the session, for easy access. This cuts down the number of queries when we're loading images through file_proxy.php Bharat Mediratta 2008-12-17 17:40:45 +00:00
  • 2abe82f106 Put Gallery3 under GPLv2 Bharat Mediratta 2008-12-17 17:10:08 +00:00
  • 01f6c67eb5 Added .gLoadingLarge and .gLoadingSmall to show ajax loading indicator. Applied to modal dialogs. Chad Kieffer 2008-12-17 06:22:08 +00:00
  • 78cd00312e Improve performance by finding the item without walking the tree. Instead, use the level and the name to get a short list of candidates, and check each one of those. In most cases, this query should give us the right result the first time. Bharat Mediratta 2008-12-17 05:53:05 +00:00
  • 8630d61051 Change the album thumbnail/resize from _album.jpg to .album.pjg because the leading underscore confuses the Kohana router. Bharat Mediratta 2008-12-17 04:55:49 +00:00
  • fc7b78492b Separate thumbnails out into var/thumbs. This clears up some ambiguity in Item_Model and simplifies file_proxy. It also means we can stop munging file names in the var/resizes hierarchy. Bharat Mediratta 2008-12-17 04:45:35 +00:00
  • f8a0c91ce6 Drag & Drop the watermark now works and so does the dropdown box. The target image is divided into a 3x3 quadrant referenced as: northwest, north, northeast, west, center, east, southeast, south, southwest. Similiar to the imagemagik garvities. Currently the watermark is placed in the left top of the particular quadrant. Tim Almdal 2008-12-17 01:26:40 +00:00
  • 9fa566a1c9 Added label to add tag form input Chad Kieffer 2008-12-17 01:19:13 +00:00
  • 3c05b95620 Added JS to set/reset simple forms' input values to their corresponding labels' value. Labels should always be used with visible inputs. Use this to style and control short form input display and behavior. Chad Kieffer 2008-12-17 00:45:52 +00:00
  • f4c6a20149 Remove error checking; if this fails let it fail noisily for now so that we can find problems faster. Bharat Mediratta 2008-12-16 23:59:33 +00:00
  • af32e5708d Remove all caching from ORM_MPTT. This was premature optimization: it wasn't benefitting us, and it will get in the way when we want to add implicit view protection to our queries. Bharat Mediratta 2008-12-16 23:36:56 +00:00
  • 34484fb1b5 Dump out the stack trace on errors. Bharat Mediratta 2008-12-16 23:33:43 +00:00
  • 59bb72df88 Fix preamble Bharat Mediratta 2008-12-16 23:11:24 +00:00
  • 8c7d0a76e5 Add file_proxy. This is controller gets triggered by .htaccess protection on var/albums and var/resizes and only displays files to the user if they have "view" permission on the base ite. Bharat Mediratta 2008-12-16 23:07:33 +00:00
  • 363548bfc4 Tim Almdal 2008-12-16 20:40:29 +00:00
  • b0c21915e9 Oops, remove the () on the parameter to $("#Dialog").ready(...) so we pass the function, not the results of the function call. Tim Almdal 2008-12-16 19:16:34 +00:00
  • c32988a097 Separate the handling of the dialog resizing into the watermark.js, so we don't have to download the watermark dialog initialization with each request. Tim Almdal 2008-12-16 19:12:24 +00:00
  • 59bc7dc22c 1) change the selector for the the function to gDialog 2) Once the dialog is resized, center it Tim Almdal 2008-12-16 19:06:03 +00:00
  • 04441e11cc 1) Remove the load watermark from the scaffolding... use the menu option 2) The set watermark dialog is now sizing properly. @todo is recenter in the window Tim Almdal 2008-12-16 17:30:18 +00:00
  • 931d8c6bdc Submit the form using ajaxSubmit Tim Almdal 2008-12-16 17:26:19 +00:00
  • 4c3c68ac10 Add Submit and Reset buttons to the dialog in order to trap the form submission so the form doesn't close. There might be a better way, but i couldn't think of it. Tim Almdal 2008-12-16 16:29:59 +00:00
  • a0e07764c1 Make the breadcrumb a little larger Bharat Mediratta 2008-12-16 11:04:47 +00:00
  • e2544da5b0 Alphabetize field names to make it easier to find 'em. Bharat Mediratta 2008-12-16 08:27:06 +00:00
  • 3e219aab6b Change htaccess rules to use mod_rewrite Bharat Mediratta 2008-12-16 08:17:00 +00:00
  • 8bd7afeb5b TEST_MODE always exists now, so check its value, don't rely on its existence to know that we're in test mode. Bharat Mediratta 2008-12-16 05:13:04 +00:00
  • 83363172b1 Don't use model_cache for get_version and set_version; that breaks the installer. Bharat Mediratta 2008-12-16 05:04:42 +00:00
  • 3273984582 Use model_cache::get() to reduce duplicate queries Bharat Mediratta 2008-12-16 04:56:51 +00:00
  • 65a340efd8 Fix a bug where we were using module::set_var() instead of module::get_var() resulting in loading all photos in an album on a single page and updating the var on every page load. Bharat Mediratta 2008-12-16 04:52:16 +00:00
  • e82b08db20 Make the profiler output more legible by adding some padding to the table. Bharat Mediratta 2008-12-16 04:45:52 +00:00
  • 52a7607336 Define TEST_MODE 0 when we're in production Bharat Mediratta 2008-12-16 04:31:33 +00:00
  • d9e02a5d0c Various optimizations: o Add model_cache::get() which caches models avoiding duplicate lookups o Stop using ORM relationships for Item_Model::owner so that we can use caching o For Item_Model::xxx_edit fields, don't make them editable for guests o Other minor stuff. Bharat Mediratta 2008-12-16 04:29:00 +00:00
  • dc08917345 Fix a bug where we were not deleting the .htaccess file on access::reset() Bharat Mediratta 2008-12-16 02:31:13 +00:00
  • 02aa98b6e0 Colorize test output Bharat Mediratta 2008-12-16 02:25:47 +00:00
  • 61618af0db Create and delete .htaccess files based on the view permissions for the group::everybody() user. Bharat Mediratta 2008-12-16 01:04:19 +00:00
  • 898d001330 Fix capitalization. Bharat Mediratta 2008-12-16 00:50:51 +00:00
  • eecf7bd518 phpdoc cleanup Bharat Mediratta 2008-12-16 00:31:50 +00:00
  • 3d2fc86604 Permission only function on albums. Bharat Mediratta 2008-12-16 00:30:05 +00:00
  • 92e6ed8a8a Start of the dialog to specify the watermark placement. For convience, using the imagemagik nomicalture regarding watermark locations (east, west, center, etc.) Tim Almdal 2008-12-15 23:08:18 +00:00
  • 2f8b4df0f5 Protect menus and blocks against the fact that we don't have an item on tag pages. Bharat Mediratta 2008-12-15 21:23:00 +00:00
  • 743ffe96ed Refresh from Kohana r3778. Bharat Mediratta 2008-12-15 21:18:38 +00:00
  • b6363bcb03 Update to reflect changes in Kohana ORM relationship code. Now you must call ORM::save() after ORM::add() and ORM::remove(). Bharat Mediratta 2008-12-15 20:49:05 +00:00
  • 1d3e1484a7 The admin high level menu is shown if the active user is not a guest. Other sub menus depend on the appropriate level of access Tim Almdal 2008-12-15 19:51:49 +00:00
  • b9c45407ec Reapply r18995: disable static table caches when we're in TEST_MODE. Bharat Mediratta 2008-12-15 10:10:59 +00:00
  • 3ae6ae53e6 (merge of vendor/kohana/modified/modules/unit_test r19226) Re-add english versions of unit test messages Bharat Mediratta 2008-12-15 10:09:42 +00:00
  • 8023325429 Fix Database::instance()->list_tables() Bharat Mediratta 2008-12-15 10:05:00 +00:00
  • 3131662c19 Reapply r19116: Add support for filtering tests down to the Class::method level. Bharat Mediratta 2008-12-15 09:51:48 +00:00
  • b5e6f79f5f Reapply patch to make tests always call teardown. Bharat Mediratta 2008-12-15 09:45:55 +00:00
  • 7b5713d485 (merge of vendor/kohana/modified r19221) Remove captcha, swift and pagination message catalogs; we don't need those Bharat Mediratta 2008-12-15 09:34:54 +00:00
  • 0567334c62 (merge of vendor/kohana/modified r19219) Add back in English localization strings, else we're missing a lot of critical strings at development time Bharat Mediratta 2008-12-15 09:31:55 +00:00
  • 93977e579c Refresh of Forge r168 from vendor/forge/modified Bharat Mediratta 2008-12-15 09:22:32 +00:00
  • 4fe895a2c4 Delete forge in preparation to refresh it from vendors/forge/modified Bharat Mediratta 2008-12-15 09:21:44 +00:00
  • 3b35e8b91c Refresh kohana from upstream svn trunk r3771. Bharat Mediratta 2008-12-15 08:56:18 +00:00
  • 628058b4ed Refresh from kohana svn trunk r3771 Bharat Mediratta 2008-12-15 08:52:32 +00:00
  • 31759cb3b3 Delete trunk/kohana and trunk/modules/unit_test in preparation to refresh them properly from the vendor branch. Bharat Mediratta 2008-12-15 08:37:09 +00:00
  • e73bd90285 Convert tabs to spaces Bharat Mediratta 2008-12-15 08:35:46 +00:00
  • 011fe8bc93 Get rid of windows line endings Bharat Mediratta 2008-12-15 08:35:30 +00:00
  • cf47b3d45c Fix that rascal IE. Added conditional HTML comment to use fix-ie.css for IE7 and earlier. Fixed bg images in album/item view buttons, IE 6/7 don't appear to handle background-position: center center :( Chad Kieffer 2008-12-15 07:08:13 +00:00
  • 20d5f45218 Fix the reference to jquery-ui.packed.js Tim Almdal 2008-12-15 06:37:56 +00:00