Bharat Mediratta
2c61ad361e
Remove some unnecessary blank lines.
2009-05-02 21:19:40 +00:00
Bharat Mediratta
f2479cc65a
Mark functions as static
2009-05-02 21:13:13 +00:00
Bharat Mediratta
4b790f5b76
Revert r20668; if we call our helper 'gallery' then it interferes with g2_import since it uses the Gallery2 embed interface which loads up G2's Gallery class as well. Grumble.
2009-05-02 20:49:09 +00:00
Bharat Mediratta
5950f49210
Rename core helper to gallery helper to indicate that it's more of an app-wide helper. 'core' doesn't make as much sense
2009-05-02 20:37:45 +00:00
Bharat Mediratta
b4c9a97050
Create item helper and move move_item(), remove_album_cover() and
...
make_album_cover() functions into it.
2009-05-02 20:34:02 +00:00
Bharat Mediratta
0fd82598b5
Move make_album_cover and remove_album_cover out of Item_Model and
...
into the core helper. Clean up interactions so that when we remove an
album cover we pick a new one, or clean out the old album cover if
there are no other choices.
2009-05-02 20:14:13 +00:00
Bharat Mediratta
486517fac5
Clean up API to be organized around the functionality it provides, not the feature its provided for.
2009-05-02 19:11:22 +00:00
Tim Almdal
71cac8bf15
Forgot these when i created the make_album_cover method
2009-05-01 23:32:35 +00:00
Tim Almdal
820cbdf1c3
Refactor the creation and removal of the album covers into
...
make_album_cover and remove_album_cover methods in Item_Model.
Usage: $photo->make_album_cover() $album->remove_album_cover()
2009-04-29 15:57:29 +00:00
Tim Almdal
0d49773559
Reset the parent thumbnail in Item_Model::delete instead of where the
...
delete was happening. This will insure that it is consistently done
for all deletes and we don't have to remember to replicate the code.
2009-04-29 00:40:59 +00:00
Tim Almdal
9176dadfd6
Move the module::event("before_item_delete") into the
...
Item_Model::delete method. This will insure that it will get called
for all events. Currently it is not being called for children of an
album when the parent album is deleted.
2009-04-29 00:29:53 +00:00
Tim Almdal
1596c9f3da
Change _adjust_thumb_size to adjust_thumb_size and make public so we
...
can access if from organize
2009-04-28 21:26:12 +00:00
Bharat Mediratta
234aed87e6
auto install organize module
2009-04-28 21:07:03 +00:00
Chad Kieffer
0f6d15b304
Fixed typo in comment, added docblock.
2009-04-24 04:55:48 +00:00
Bharat Mediratta
6b4fa9105f
Disable automatic session id regeneration because ajax requests cause it to bomb.
2009-04-23 00:49:35 +00:00
Tim Almdal
79712cb0b4
Remove the negative weighting for albums. The are now positioned
...
based on the insertion order.
2009-04-22 22:20:19 +00:00
Bharat Mediratta
47f531fc9c
Mark a task as stalled if it's > 15 seconds old (because tasks should ping back much faster than that)
2009-04-22 19:51:25 +00:00
Bharat Mediratta
33775f9fb0
Throw an exception in graphics::resize() if the input file is empty
2009-04-22 19:50:38 +00:00
Bharat Mediratta
8141fd5088
Set the default logging to 'notice' to make it more user friendly.
2009-04-22 19:32:24 +00:00
Tim Almdal
f9ec5d6de4
Make the scaling based on the target thumbnail size that was specified
...
at thumbnail creation. This will remove the upscaling effect
2009-04-22 14:05:16 +00:00
Chad Kieffer
b4bca043ac
Added method to determine proportion of current thumb_size to the default, 150. Use this in the the default theme, or any other, to reduce the size of CSS widths and heights in albums, including .gItem.
2009-04-22 05:31:29 +00:00
Tim Almdal
1956a6ae95
Refactor the move functionality into a helper function so it can be
...
called from organize
2009-04-22 04:20:05 +00:00
Bharat Mediratta
e9867fb97c
Theme the cancel-all link like the remove-all link.
2009-04-21 04:17:56 +00:00
Andy Staudacher
55256b459b
Fix UI string
2009-04-19 07:05:18 +00:00
Bharat Mediratta
6e05e917df
Redirect item/NN requests to absolute urls
2009-04-18 23:52:02 +00:00
Bharat Mediratta
0fe4398765
whitespace cleanup
2009-04-18 23:07:08 +00:00
Bharat Mediratta
f243e8d41c
Be graceful if exec() is disabled
2009-04-17 09:50:53 +00:00
Bharat Mediratta
471c1d5b3d
Don't show the 'no toolkit found' message unless we actually didn't find one
2009-04-17 09:48:36 +00:00
Andy Staudacher
f8bc0a40fe
Fix for ticket 203: Don't interpolate the translation string for the l10n client translation input field
2009-04-17 02:19:56 +00:00
Jakob Hilden
03960546be
added icons to permissions UI
2009-04-12 18:27:45 +00:00
Jakob Hilden
8db55de4f0
changed order of form fields in photo and album forms so that the confusing "name" field is not on top anymore
...
changed "name" label to "Filename" for photos and "Directory Name" for albums
2009-04-12 17:52:26 +00:00
Bharat Mediratta
670e0d8f85
Fix indentation.
2009-04-12 06:41:43 +00:00
Tim Almdal
53a08aa592
Missed a closing para )
2009-04-09 19:31:02 +00:00
Tim Almdal
2523720561
Change the weight for albums from zero, which could give us
...
indeterminate ordering, so that ablums are initially shown first.
2009-04-09 18:17:53 +00:00
Tim Almdal
6e819603af
Clean up delete code as per Bharat's note
2009-04-09 17:18:23 +00:00
Tim Almdal
fe9b08e506
Merge the micro_thumb_tag method into thumb_tag and add a third
...
parameter to indicate that a micro thumb is being generated
2009-04-09 16:30:49 +00:00
Bharat Mediratta
ff732d9c7e
Fix the spelling of "appearance_menu" and update user_menu so that the
...
user/groups admin menu option appears again.
2009-04-09 02:25:27 +00:00
Tim Almdal
523c467eed
Fixes issues with Server Add:
...
1) Fixes Ticket #208
2) Fixes Ticket #190
3) Fixes an unticketed issue where two items could collide when
creating the thumbnail and/or resize. For example, loading a.flv and
a.jpg would have generated the same thumbnail image. This change adds
a random value to the name to avoid conflicts.
4) Added item::__set() to clear the relative path if the name changes
2009-04-08 15:11:55 +00:00
Jakob Hilden
b6f59e17f1
changed the items in quickpaneoptions dropdown menu (which appears in the quickpane for albums) to be easier clickable and changed markup to use <ul> (more semantically correct)
2009-04-07 07:14:36 +00:00
Bharat Mediratta
a4d63d5a41
Exclude lib/swfupload from our scan paths
2009-04-06 08:59:39 +00:00
Bharat Mediratta
63edb37076
Fix up the quick-edit code on the photos page. Everything but "move"
...
is implemented. Can't do move easily because it's tricky to handle
the post-move redirect.
2009-04-06 08:10:42 +00:00
Bharat Mediratta
6d940ce8cd
Add case-sensitive versions of file extensions to the file_types list
...
so that .JPG works on case sensitive systems like Unix. Also add
.jpeg to the list.
Fixes ticket #183 .
2009-04-06 04:05:43 +00:00
Bharat Mediratta
292b51ddd3
Rework the links section of the "Welcome to Gallery3" block so that
...
the links work and it's more helpful.
In the process, rename the Presentation menu to be Appearance because
that makes more sense to me (and at least one other user who wrote
about it on -devel).
2009-04-06 03:14:13 +00:00
Bharat Mediratta
c936eebcf7
Don't do graphics detection in core_installer::install() because that
...
gets run at scaffolding::package() time, not on the target machine.
Instead, create a core module variable to trigger running
graphics::choose_default_toolkit() on the first admin login after install.
Fixes ticket #206 .
2009-04-05 20:43:05 +00:00
Tim Almdal
f1eec57221
Add a weight column to the items model. Change the album ordering to
...
use this as the default instead of id. This prepares the way for
manual reordering in the organize functionality.
2009-04-05 16:57:51 +00:00
Bharat Mediratta
892e46368b
Set the queue limit to 1000.
2009-04-03 08:17:58 +00:00
Bharat Mediratta
6883762238
Completely task-ify the localization scanning code and restore the
...
incoming_translation key cache. The only part of this that is not
broken down is the l10n_client::fetch_updates() part.
2009-04-02 23:56:00 +00:00
Tim Almdal
b05b89798a
Continuation of r20518. Remove all the cases were the csrf values in
...
views were being manually set. Also removed it from the Admin_View.
2009-04-02 21:41:10 +00:00
Tim Almdal
160b54760f
Fix the issue identified in
...
http://gallery.menalto.com/gallery_3.0_alpha_3_released?page=1#comment-304581
ticket #195
2009-04-02 13:01:16 +00:00
Bharat Mediratta
96aa486060
Add missing 2nd argument for Theme_View()
2009-03-31 20:34:12 +00:00