Commit Graph

  • 77f9e81fac Add missing closing > Bharat Mediratta 2008-12-01 23:44:14 +00:00
  • 6459f167fd Drag and Drop is starting to work. You can drag the New Album over any of the directorys and it will be allowed. Drag anything over New Album and it will return. You can drag an tree item except the root over the delete icon and it will be accepted. Now I need to build the ajax and server side functionality the at allows this to all work. Tim Almdal 2008-12-01 23:14:26 +00:00
  • 92563f813e Fix the fact that the tree wouldn't show up... just a wee bit overly aggressive in cleaning up what i thought was unused files Tim Almdal 2008-12-01 21:35:09 +00:00
  • 0ebd4f6b28 New Rearrange gui based on jqueryFileTree (http://www.abeautifulsite.net/notebook.php?article=58). I like the look of this one better. Still need to implement the drag and drop functionality. Tim Almdal 2008-12-01 20:54:25 +00:00
  • ed2cb2a86d Fix profiler settings in the scaffolding Bharat Mediratta 2008-12-01 10:40:40 +00:00
  • 2eed685883 style the permission tree a little tighter Bharat Mediratta 2008-12-01 10:27:36 +00:00
  • 5c303aa07b Add access::reset() so that you can specify your intent to use the parent's permissions. Bharat Mediratta 2008-12-01 09:57:03 +00:00
  • 88a70cbc04 Clean up styles a bit to make it more obvious what's going on. Show edit permissions too to demonstrate that we're doing something different for the different type of permissions. Bharat Mediratta 2008-12-01 09:02:46 +00:00
  • e3d7877d79 Add @todos Bharat Mediratta 2008-12-01 09:01:10 +00:00
  • 91c4bda1ec Prototype access control model. There's much left to do, but it's a working implementation. Bharat Mediratta 2008-12-01 08:50:00 +00:00
  • ab0fcb7453 In place editing in breadcrumbs is a bit much, plus, it breaks the layout. Removing, at least for now. Chad Kieffer 2008-12-01 06:57:37 +00:00
  • 26a512c352 Grouped inline form styles. No longer using gInline class in favor of specific form IDs that can be styled differently depending on which container they appear. Added gDescription class, dropped gUnderState for semantics. CSS cleanup. Chad Kieffer 2008-12-01 01:55:50 +00:00
  • 6b03b798f3 Move rearrange HTML generation into welcome.php so that we gracefully handle the case where the DB is not installed yet. Bharat Mediratta 2008-11-30 21:39:23 +00:00
  • 4271f7702a Add access model (not fully baked yet). Update scaffolding to allow addition of just albums (helpful for testing permissions) Bharat Mediratta 2008-11-29 22:47:15 +00:00
  • 6c2869f822 Changed CSS organization, removed form section. Moved generic form CSS up to top of sheet and specific form styles to be adjacent to related content. This should ensure inheritance works generic down to specific. Removed #gAddTags in favor of #gTags form. Chad Kieffer 2008-11-29 21:30:30 +00:00
  • 7ae004f76f The gui part of rearranging albums and photos on the welcome page. Haven't finished the ajax back end to actually do the move, but thought i'd put the gui up so people can play Tim Almdal 2008-11-29 20:02:30 +00:00
  • 70de32ebb4 Insure that the page and offset refere to valid items Tim Almdal 2008-11-29 17:08:42 +00:00
  • 9b9bdce821 Fix another bug caused by moving this from tag to tag_event Bharat Mediratta 2008-11-29 09:53:38 +00:00
  • 1b78f33444 Fix a bug where we were listening to the wrong event. Bharat Mediratta 2008-11-29 09:49:51 +00:00
  • d01010cd1d Use .width() instead of .innerWidth(). Now photo resize works in IE 7. Chad Kieffer 2008-11-28 23:24:13 +00:00
  • a73aade713 The start of a rearrange module Tim Almdal 2008-11-28 22:06:26 +00:00
  • bb8fa3c417 Dynamically reset the dimensions of resized photos to fit if they're too wide. Chad Kieffer 2008-11-28 22:02:46 +00:00
  • 4c2d4abb1c Remove debugging statements Tim Almdal 2008-11-28 21:55:26 +00:00
  • 6a76d6f747 Dynamically create the list of available modules. This permits new modules to be added without having to update the config.php file Tim Almdal 2008-11-28 21:22:34 +00:00
  • 8b6ed6c477 Create module::event() which runs Gallery events. It works by convention. To respond to the "photo_created" event in the gmaps module, you create modules/gmaps/helpers/gmaps_event.php containing class gmaps_event which has function photo_created. Bharat Mediratta 2008-11-28 19:37:01 +00:00
  • 1b1d385294 Check for APP13 before using it Bharat Mediratta 2008-11-28 18:41:11 +00:00
  • 89c4dadec2 Rename module::get_list() to module::installed() Bharat Mediratta 2008-11-28 18:39:18 +00:00
  • a7f6efa2f2 When an image is uploaded (i.e. created) the tag module will now extract any iptc keywords and add them as image tags. Tim Almdal 2008-11-28 18:04:59 +00:00
  • 4d71975f37 Add credits theme callback, point the powered-by link at GMC Bharat Mediratta 2008-11-28 09:46:29 +00:00
  • 6fbd79928c Move the <media:thumbnail> outside of the <media:group> to work around a bug in Cooliris. Bharat Mediratta 2008-11-28 07:13:21 +00:00
  • 5672fbea1e Rename tag_block_cloud.html.php to tag_cloud.html.php Bharat Mediratta 2008-11-28 07:05:11 +00:00
  • 2c86723942 Add an easy way to add a bunch of servers from the server side Bharat Mediratta 2008-11-28 05:45:35 +00:00
  • 29966cc4fc Set the page size to 30 images. No need to limit ourselves to 10 in a feed. Bharat Mediratta 2008-11-28 05:18:17 +00:00
  • dec97b42fe Create media_rss helper and move feed generation in there, so that we can get to the feed from other parts of the code. Bharat Mediratta 2008-11-28 04:51:17 +00:00
  • 3fa12655dd Correct parameter on gallery.album.created event firing Tim Almdal 2008-11-28 04:26:18 +00:00
  • 143337dbf0 Use return false instead of preventDefault() to prevent link action, thx Tim Chad Kieffer 2008-11-28 04:22:52 +00:00
  • 1239e38e45 Move the form drawing code back into form.html.php -- I'm going to take a shot at fixing it up in the view file so that it's mostly HTML, not mostly PHP. If that fails, I'll move it back into a helper. Bharat Mediratta 2008-11-28 03:09:18 +00:00
  • 0a6be1bf55 Fix some minor issues with the feed format Bharat Mediratta 2008-11-28 02:44:02 +00:00
  • 62e5f73b7b Re-enable the slideshow for tag views, since now we have a MediaRSS feed for them Bharat Mediratta 2008-11-28 01:42:01 +00:00
  • b69104b695 Fix a bug where we were loading the wrong item/tag Bharat Mediratta 2008-11-28 01:41:26 +00:00
  • 88b35c1182 Tags_Model::items() now lets you filter by item type Bharat Mediratta 2008-11-28 01:40:55 +00:00
  • fd519082e1 Add a media_rss feed for tag views. When visiting a photo, show the feed for the parent album. Bharat Mediratta 2008-11-28 01:20:17 +00:00
  • 18412bb14e Add tag() function Bharat Mediratta 2008-11-28 01:18:45 +00:00
  • 828f23896f Rename item events and create events for comment create, login, logout, user creation. I probably forgot some, but its a start. Tim Almdal 2008-11-28 00:51:38 +00:00
  • 3ad9b6174a Add event plumbing to allow the tag module to be notified when a photo is created. Eventually this will be used to parse the image meta data and extract tags; Tim Almdal 2008-11-28 00:19:08 +00:00
  • b8c034cb37 Reverted r18930. This is because in the media_rss module we don't generate a media rss feed link if we don't have an item. So if we go an throw a slideshow on there, it doesn't do anything because piclens can't find the feed to produce a slideshow. Tim Almdal 2008-11-27 22:21:16 +00:00
  • 26c9ec6d4b Make header buttons, line them up nicely and float them to the right so that they don't push the album grid down. Bharat Mediratta 2008-11-27 22:08:56 +00:00
  • bb388af21a Add tag_top() button Bharat Mediratta 2008-11-27 22:08:17 +00:00
  • bc210a708e Set resize to 640x480 for now to avoid breaking the default theme layout Bharat Mediratta 2008-11-27 22:08:00 +00:00
  • 8d4bd0c814 Update tests to reflect the fact that the admin group is gone. Bharat Mediratta 2008-11-27 19:46:39 +00:00
  • 6bc9c5868b Create a form_helper class containing the function Draw_Form so we don't have to always check to see if the DrawForm method is already defined in pages that could have multiple forms. Tim Almdal 2008-11-27 16:33:41 +00:00
  • bac4ff2046 1) Create a Theme_View class that combines the functionality of the Theme class with the View class. 2) Only define the form.html.php::DrawForm method once if there are multiple forms on the page (i.e. comments and add tags) Tim Almdal 2008-11-27 16:19:07 +00:00
  • 723eb2f611 Move the ADMIN global nav option into the core module and only show it if we're logged in as an admin user Bharat Mediratta 2008-11-27 11:43:48 +00:00
  • e183901dc3 Give the admin user actual admin privileges Bharat Mediratta 2008-11-27 11:43:11 +00:00
  • 34a286ae90 Add navigation_top() and navigation_bottom() insertion points Bharat Mediratta 2008-11-27 11:33:45 +00:00
  • 0b86568586 Use the dimensions of the real image Bharat Mediratta 2008-11-27 11:13:24 +00:00
  • d909fc1070 Make tags look a little better. Bharat Mediratta 2008-11-27 10:25:50 +00:00
  • c95c17b133 Centralize logging around installing/uninstalling modules. Bharat Mediratta 2008-11-27 09:45:26 +00:00
  • 92ca1ba9ab Style form#gAddTag nicely Bharat Mediratta 2008-11-27 06:34:45 +00:00
  • 850c3b90a3 Don't wrap hidden elements in list items Bharat Mediratta 2008-11-27 06:34:20 +00:00
  • 3992dad486 Move form generation off into tag::get_add_form(). We can't use a controller to generate the form (it's incompatible with our REST model where controllers print stuff) Bharat Mediratta 2008-11-27 06:25:21 +00:00
  • 09b27ecf98 Remove stray trailing blank lines Bharat Mediratta 2008-11-27 06:24:07 +00:00
  • 27e64f1dc6 Move javascript from default theme to appropriate modules Tim Almdal 2008-11-27 06:14:32 +00:00
  • 7e5f59bcb7 Add children_count to album/photo controllers for consistency with tags Bharat Mediratta 2008-11-27 05:59:37 +00:00
  • 326fa1dd27 Remove slideshow.js as it is not required Tim Almdal 2008-11-27 05:59:25 +00:00
  • d16790de0c Get rid of the placeholder "add tags here..." text, and clear the form on submit. Bharat Mediratta 2008-11-27 05:45:17 +00:00
  • 72d16756b1 Refactor cloud generation into a helper so that we can call it from Tags_Controller::_index(). This enables our Ajax code to reload the tags block after we submit a new tag, so update the JS to do that properly. Bharat Mediratta 2008-11-27 05:37:20 +00:00
  • 5447b83210 Clean up REST pattern in tags: 1) Generate the form in Tags_Controller::_form_add() 2) Process the form submit in Tags_Controller::_create() 3) Create the tag properly Bharat Mediratta 2008-11-27 05:00:50 +00:00
  • 8e33f5d7b9 Add page_type() function Bharat Mediratta 2008-11-27 04:58:38 +00:00
  • 480abae401 Fix indentation. Bharat Mediratta 2008-11-27 04:31:12 +00:00
  • b4b72b284b We are now submitting the ajax tag add form to the server correctly and rehooking the ajaxForm Tim Almdal 2008-11-27 01:48:01 +00:00
  • d881c91e0c Trying to add tags, but it doesn't work yet. For some reason that i can't figure out, the form never validates and I never get into the true branch of the if. I'm taking a break for awhile. Tim Almdal 2008-11-27 00:26:04 +00:00
  • e3fa1c8acd Link to the albums in the album tree. Bharat Mediratta 2008-11-26 23:10:15 +00:00
  • 691faa0e83 Draw an album tree in the access -> permissions tab. Bharat Mediratta 2008-11-26 23:07:37 +00:00
  • 91b1c4cf39 Skip the tags block if there're no tags Bharat Mediratta 2008-11-26 23:06:35 +00:00
  • 974f9f7788 Add a new "tag" page type. Bharat Mediratta 2008-11-26 21:50:45 +00:00
  • 4e8937ccef Indentation fix. Bharat Mediratta 2008-11-26 21:24:46 +00:00
  • 496007d2ae NULL -> null Bharat Mediratta 2008-11-26 21:15:37 +00:00
  • 9f37aaa1c2 Move Tag_Controller -> Tags_Controller to fit our REST pattern. Bharat Mediratta 2008-11-26 20:40:04 +00:00
  • aa19a79e06 Clean up unnecessary comments, remove stray references to Comment_Controller Bharat Mediratta 2008-11-26 20:33:06 +00:00
  • 38e1eef547 Some code audit fixes and adding some directory separator normalization code to make it work on Windows as well. Andy Staudacher 2008-11-26 20:21:39 +00:00
  • 25b0dff45c Add a thumbnail to the root directory, in case it gets displayed in a tag dynamic album Tim Almdal 2008-11-26 18:49:20 +00:00
  • b3be74166c Breadcrumbs now look right for dynamic tag albums Tim Almdal 2008-11-26 17:08:57 +00:00
  • e77fd34175 Duh, i have the count in the tag model... why do i need to do a query to count? Added text to the description instead of return an empty string Tim Almdal 2008-11-26 17:02:27 +00:00
  • af9a27216d Modify the tag model to behave like a virtual album. There are two outstanding issues that i still have to resolve. The first being there is no thumbnail for the root directory, so it doesn't look quite right. And secondly, the bread crumb shows the dynamic tag album as hot having a parent. I wanted it to be the root directory, but i will overcome :-) Tim Almdal 2008-11-26 16:48:00 +00:00
  • dfd0281512 Remove test since the method to be tested was removed Tim Almdal 2008-11-26 15:18:09 +00:00
  • 66f51f3c17 Initial commit of the translation class, I18n_Core and some tests. - Port of Ruby's I18n gem (http://rails-i18n.org/) - Added proper plural handling on top of that. - Using CLDR 1.6's plural form data - See I18n_Test for example usage. - Not integrated into G3 templates yet. Probably adding __() as alias for I18n::instance->translate(). - No specific plan yet where localization files should live. Andy Staudacher 2008-11-26 11:46:56 +00:00
  • 59d71baa08 Style the tag cloud add form. Bharat Mediratta 2008-11-26 10:48:22 +00:00
  • 39b6e84a57 Change sort_by_name to case insensitive sort. Bharat Mediratta 2008-11-26 10:48:00 +00:00
  • 98ee16ca49 Simplify tags code some more: 1) change buckets to be 1-7 not 0-6.. zero-based indicies don't make sense in the real world and are liable to confuse themers. Bharat Mediratta 2008-11-26 10:27:13 +00:00
  • e1f39ac13f Re-enable code to drop view columns from the items table when deleting groups. Bharat Mediratta 2008-11-26 09:38:39 +00:00
  • 427dc7a0d1 Ignore errors from dropping view columns from the items table. Bharat Mediratta 2008-11-26 09:34:31 +00:00
  • de56a33c9c Clean tag creation Tim Almdal 2008-11-26 06:37:12 +00:00
  • 18ce4a4c1f Actually call uninstall! Bharat Mediratta 2008-11-26 05:43:43 +00:00
  • e31456af47 Remove stray 'filter' instances Bharat Mediratta 2008-11-26 05:20:47 +00:00
  • 03bf3a6af2 Remove the more or less links Tim Almdal 2008-11-26 05:08:43 +00:00
  • 9c60566197 Add support for marking users as "admin" Bharat Mediratta 2008-11-26 04:54:43 +00:00
  • 226df2a8f8 Add support in the scaffolding for adding users to groups, adding and removing users and groups. Bharat Mediratta 2008-11-26 04:45:43 +00:00
  • 5ccb050413 group::create() and group::delete() now manage the view_## columns in the items table. Bharat Mediratta 2008-11-26 04:13:57 +00:00
  • 242b3a1403 Use lorem2 words as inputs to generateTags. Limiting the number of tags results in a better distribution of the tags (so the cloud looks nicer). Bharat Mediratta 2008-11-26 03:48:42 +00:00