Commit Graph

335 Commits

Author SHA1 Message Date
Bharat Mediratta
f5bc55e72d Add labels to the form groups. 2008-12-18 22:35:16 +00:00
Bharat Mediratta
052bb79d68 Add <fh:complete/> 2008-12-18 18:50:27 +00:00
Bharat Mediratta
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().

The menus are the same as before, but I changed the HTML to be
consistent with the way that we do it in the regular site, and this
broke the superfish styles.  I don't know how to fix this.. help me
Chad!
2008-12-18 07:32:34 +00:00
Chad Kieffer
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).
Let's make sure that all forms generated are complete and well formed and then use JS and CSS to control their display and behavior in different contexts.
2008-12-18 02:50:40 +00:00
Bharat Mediratta
c92fbfd3c3 Add <generator> element to try to make Polar Rose happy (it doesn't work, though) 2008-12-18 00:29:22 +00:00
Bharat Mediratta
db110df5ba Absoluteify some urls to make feedvalidator.org happy 2008-12-18 00:28:30 +00:00
Bharat Mediratta
d4f1f6400f Polar Rose facial recognition module. Currently in a non-working
state because their server is not RFC2109 compliant.  Filing a bug.
2008-12-18 00:16:03 +00:00
Bharat Mediratta
55f63f6c9f Add item view permission checks.
Switch from absolute urls to relative ones.

Relative urls break the flash based slideshow, but the Cooliris
extension works.  I'll file a bug.
2008-12-18 00:02:59 +00:00
Bharat Mediratta
b37047ff55 Add Item_Model::viewable() which we can use to restrict any query to
just items viewable by the active user.  Ie:

  ORM::factory("item")
    ->where("name", "foo")
    ->find_all()

Would get all items with the name "foo".

  ORM::factory("item")
    ->viewable()
    ->where("name", "foo")
    ->find_all()

Restricts it to just the set of items that the user is allowed to see.
2008-12-17 22:39:33 +00:00
Bharat Mediratta
093fb407a8 Fix a bug where setting the active user did not reset group_ids (unit tests ftw!) 2008-12-17 19:23:04 +00:00
Bharat Mediratta
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.
2008-12-17 18:32:08 +00:00
Bharat Mediratta
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
2008-12-17 17:40:45 +00:00
Bharat Mediratta
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.

In the process, rename "thumbnail" to "thumb" everywhere in honor of
Chad (well, ok because it's shorter)..
2008-12-17 04:45:35 +00:00
Tim Almdal
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. 2008-12-17 01:26:40 +00:00
Chad Kieffer
9fa566a1c9 Added label to add tag form input 2008-12-17 01:19:13 +00:00
Chad Kieffer
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. 2008-12-17 00:45:52 +00:00
Bharat Mediratta
34484fb1b5 Dump out the stack trace on errors. 2008-12-16 23:33:43 +00:00
Bharat Mediratta
59bb72df88 Fix preamble 2008-12-16 23:11:24 +00:00
Tim Almdal
363548bfc4 2008-12-16 20:40:29 +00:00
Tim Almdal
b0c21915e9 Oops, remove the () on the parameter to $("#Dialog").ready(...) so we pass the function, not the results of the function call. 2008-12-16 19:16:34 +00:00
Tim Almdal
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. 2008-12-16 19:12:24 +00:00
Tim Almdal
59bc7dc22c 1) change the selector for the the function to gDialog
2) Once the dialog is resized, center it
2008-12-16 19:06:03 +00:00
Tim Almdal
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
2008-12-16 17:30:18 +00:00
Bharat Mediratta
8bd7afeb5b TEST_MODE always exists now, so check its value, don't rely on its existence to know that we're in test mode. 2008-12-16 05:13:04 +00:00
Bharat Mediratta
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.

These optimizations reduce the number of queries for a 9-photos page from ~200
to ~45.  Still way too many!
2008-12-16 04:29:00 +00:00
Bharat Mediratta
02aa98b6e0 Colorize test output 2008-12-16 02:25:47 +00:00
Tim Almdal
92e6ed8a8a Start of the dialog to specify the watermark placement. For convience, using the imagemagik nomicalture regarding watermark locations (east, west, center, etc.)
You can drag the watermark around but it doesn't stay in place.
Need to figure out how to resize the dialog box

and all of the supporting javascript
2008-12-15 23:08:18 +00:00
Bharat Mediratta
b6363bcb03 Update to reflect changes in Kohana ORM relationship code.
Now you must call ORM::save() after ORM::add() and ORM::remove().
2008-12-15 20:49:05 +00:00
Bharat Mediratta
3ae6ae53e6 (merge of vendor/kohana/modified/modules/unit_test r19226) Re-add english versions of unit test messages 2008-12-15 10:09:42 +00:00
Bharat Mediratta
3131662c19 Reapply r19116:
Add support for filtering tests down to the Class::method level.

Upstream ticket:
  http://dev.kohanaphp.com/ticket/961
2008-12-15 09:51:48 +00:00
Bharat Mediratta
b5e6f79f5f Reapply patch to make tests always call teardown.
Upstream ticket:
  http://dev.kohanaphp.com/ticket/960
2008-12-15 09:45:55 +00:00
Bharat Mediratta
93977e579c Refresh of Forge r168 from vendor/forge/modified 2008-12-15 09:22:32 +00:00
Bharat Mediratta
4fe895a2c4 Delete forge in preparation to refresh it from vendors/forge/modified 2008-12-15 09:21:44 +00:00
Bharat Mediratta
628058b4ed Refresh from kohana svn trunk r3771 2008-12-15 08:52:32 +00:00
Bharat Mediratta
31759cb3b3 Delete trunk/kohana and trunk/modules/unit_test in preparation to refresh
them properly from the vendor branch.
2008-12-15 08:37:09 +00:00
Tim Almdal
20d5f45218 Fix the reference to jquery-ui.packed.js 2008-12-15 06:37:56 +00:00
Tim Almdal
1cb0268589 Change the label on the watermark form upload element, so the error message is at least somewhat meaningful 2008-12-15 04:40:09 +00:00
Tim Almdal
15c22471cc Cleanup watermark.js 2008-12-15 04:23:57 +00:00
Bharat Mediratta
96d906c903 Update Forge to r168 from upstream.
Resolves these issues:
  http://code.google.com/p/kohanamodules/issues/detail?id=6
  http://code.google.com/p/kohanamodules/issues/detail?id=7
2008-12-15 03:59:03 +00:00
Tim Almdal
b2107c3734 1) Move the deletion of the vars into module::delete helper
2) remove the watermark_add_form.html.php
2008-12-15 03:49:48 +00:00
Chad Kieffer
119344d9db Switched login display from display in the header to a dialog. Validation errors don't display on first failed attempt, will fix later. Moved jquery js, images, css out to respective folders. 2008-12-15 02:45:50 +00:00
Tim Almdal
e66a31bf45 Change the login form so that the legend is populated 2008-12-15 02:40:17 +00:00
Tim Almdal
db7e60da32 Change the watermark module to use forge.
Also the watermark file is now stored in varpath.
and the location is stored in the module vars table
2008-12-14 23:53:30 +00:00
Tim Almdal
4b4e9e8e45 The start of the watermark module. It doesn't save the watermark at this point. This is more of trying out the approach where Forge is not used for forms. Basic html and the Validation library. 2008-12-14 19:43:04 +00:00
Tim Almdal
1c279887aa Should be get_var not set_var 2008-12-14 03:48:32 +00:00
Tim Almdal
fc1e7a9333 1) fix Forge_Group to display the label (will raise a bug with Kohana)
2) Change form.html.php to use the group label instead of the name
3) Converted the add photo to explicity set the label of the field (new coding standard)
2008-12-14 03:19:31 +00:00
Felix Rabinovich
23343fc4f6 Revert accidental commit 2008-12-14 02:46:28 +00:00
Felix Rabinovich
34c9aa52b8 Fixed tabs and line endings 2008-12-14 02:45:07 +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
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