Commit Graph
1188 Commits
Author SHA1 Message Date
Bharat Medirattaand 99c780fd76 Add an id to the exif link anchor.
Signed-off-by:  <unostar@danalan.info>
2009-06-20 09:40:58 +08:00
Andy Staudacherand 2d54edc50e Fix format of source message in l10n client (adding a newline between plural forms)
Signed-off-by:  <unostar@danalan.info>
2009-06-20 09:40:57 +08:00
Andy Staudacherand 1d9f9138fb Fix plural messages in l10n scanner - Bad typo lead to basically breaking all plural ("other") forms.
Signed-off-by:  <unostar@danalan.info>
2009-06-20 09:40:55 +08:00
Bharat Medirattaand 39b12cb432 Make an attempt to catch all situations where loading an item from G2
returns an error, and log them appropriately.  This should fix a slew
of import failures from corrupt G2 installs.

Signed-off-by:  <unostar@danalan.info>
2009-06-20 09:40:53 +08:00
Andy Staudacherand f75f7af88e Fix l10n messages (malformed html)
Signed-off-by:  <unostar@danalan.info>
2009-06-18 23:23:58 +08:00
Andy Staudacherand 4ec997ee74 Fix/remove unnecessary escaping of double quotes in l10n scanner.
Signed-off-by:  <unostar@danalan.info>
2009-06-18 23:23:56 +08:00
Tim Almdaland a179d6bdf8 Correct the "inappropriate intimacy" smell that bharat's refined senses pick up
Signed-off-by:  <unostar@danalan.info>
2009-06-18 16:29:43 +08:00
Tim Almdaland 9af8027cf3 Fix for ticket #366
Move the creation of the setting menu back to gallery_menu::admin, now that
there is a mechanism to remove empty menu items

Signed-off-by:  <unostar@danalan.info>
2009-06-18 16:29:41 +08:00
Tim Almdaland e2863cf1c5 Fix for ticket #366
1) Stored the menu element type in the menu element
2) Scanned the menu before display removing any empty sub menus.
Went with the removal approach because there will more users than developers

Signed-off-by:  <unostar@danalan.info>
2009-06-18 16:29:39 +08:00
unostar 753ce3e025 Add "custom_translations" instruction to captcha form builder to add possibility to localize and customize form. 2009-06-17 01:26:47 -07:00
Bharat Medirattaand 1a911d4b5c Fix a bug that was overwriting the quick-pane HTML causing the quick
panes not to appear.  Oops.  Bug was introduced in the rss refactor:
1b656be713

Signed-off-by:  <unostar@danalan.info>
2009-06-17 15:26:33 +08:00
Tim Almdaland f83a080bf1 Change the page.html file so that if the type of page is login, the sidebar contents are are not shown
Signed-off-by:  <unostar@danalan.info>
2009-06-17 13:51:35 +08:00
Andy Staudacherand cbeee943b1 Beautify "Show All" link, and only show when it's not already showing all strings
Signed-off-by:  <unostar@danalan.info>
2009-06-17 13:51:32 +08:00
Andy Staudacherand 022d12cb86 Add option to list *all* l10n messages (that have been indexed) in l10n UI
TODO: The "Show All" link is almost invisible (link color ~= background)

Signed-off-by:  <unostar@danalan.info>
2009-06-17 13:51:31 +08:00
Bharat Medirattaand 236d5ff76d Add support for uploading .jpeg files (in addition to .jpg)
Fix for ticket #428

Signed-off-by:  <unostar@danalan.info>
2009-06-17 13:51:28 +08:00
Bharat Medirattaand 04853f1996 Swap Jakob's placeholder in for mine.
Signed-off-by:  <unostar@danalan.info>
2009-06-17 13:51:27 +08:00
Bharat Medirattaand 18a313c454 Use a placeholder image if ffmpeg is missing instead of throwing an
exception which would get silently swallowed by swfUpload.

Signed-off-by:  <unostar@danalan.info>
2009-06-17 13:51:26 +08:00
Bharat Medirattaand 15f3d58b02 Add the real image url to the anchor elements for our full size links
so that right clicking works.

Turn the full size rendering code into a function and call it with
arguments, instead of creating a hacky named data structure to hold
the info.

Further partial fixes for ticket #427.

Signed-off-by:  <unostar@danalan.info>
2009-06-17 13:51:21 +08:00
Bharat Medirattaand 8af66822e2 Move all the fullsize code into the theme to make it less confusing.
Partial fix for ticket #427.

Signed-off-by:  <unostar@danalan.info>
2009-06-17 13:51:20 +08:00
Andy Staudacherand b48c4300d4 Fix html bug in l10n message
Signed-off-by:  <unostar@danalan.info>
2009-06-17 13:51:15 +08:00
Bharat Medirattaand 821918cb65 Refactor common xxx_menu() code into private _menu() helper.
Signed-off-by:  <unostar@danalan.info>
2009-06-17 04:56:52 +08:00
Bharat Medirattaand a405e69dbb Refactor the comment_rss::feed() method to eliminate code duplication.
Signed-off-by:  <unostar@danalan.info>
2009-06-16 18:27:43 +08:00
Bharat Medirattaand 0b05383c45 Don't try to require GalleryCommentHelper.class if the module is not
active, since the code may not even be present.  This assumes that if
the G2 comment module *is* active that the code is present, but that's
part of the assumption that the G2 we're importing from is healthy.

Fixes ticket #409

Signed-off-by:  <unostar@danalan.info>
2009-06-16 18:27:36 +08:00
Bharat Medirattaand 4797f5b0cf Fix up the titles in the default theme. They've been broken for a
while.  This fixes ticket #342.

The bug is that we were using $item instead of $theme->item().  But we
were also not special casing tags properly, and they are effectively
first class citizens (at least for now) so treat them properly.  Also,
set page_title by default in the theme so that we don't have to do an
empty() check on it (makes the theme easier to read) and move the
title out of Tags_Controller so that the theme has more control over
it.

Signed-off-by:  <unostar@danalan.info>
2009-06-16 18:27:34 +08:00
unostar 1081eee201 Added "cutom_translations" instruction to Recaptcha to localize & cutomize recaptcha message. 2009-06-15 05:54:45 -07:00
Bharat Medirattaand 2a5ffaae7e Create a sidebar for tag pages
Move the <link> for the container feed (either gallery/album/<id> or
tag/tag/<id>) back into gallery_theme

Signed-off-by:  <unostar@danalan.info>
2009-06-15 17:31:24 +08:00
Bharat Medirattaand 0051c2c89b Refactor the way that the rss module works so that we're not allowing
the url to dictate arbitrary static method calls.

* Each xxx_rss helper has a single feed() call which takes an id as the argument

* xxx_rss::available_feedS() only returns feeds when they're applicable (ie
  if you're viewing a tag, it won't show you an item feed).

* Feed urls are now in the module/feed_id form so that we can bind a
  feed id to a given module

* Tightened up the Rss_Controller by using url::merge and some other tricks.

* Made the slideshow module express its own feed.

Signed-off-by:  <unostar@danalan.info>
2009-06-15 17:31:22 +08:00
Bharat Medirattaand 3b684655e2 Refactor feed code to use stdClass everywhere. Fix bugs in the
max-pages calculation code.  Move feed related data into the $feed
variable and only pass that to the view.

Signed-off-by:  <unostar@danalan.info>
2009-06-15 17:31:17 +08:00
Bharat Medirattaand 2ecb00c492 Trap gallery2 errors when we try to load an invalid user id and abort loading that user.
Signed-off-by:  <unostar@danalan.info>
2009-06-15 17:31:15 +08:00
unostar 08a5b75345 Add string to localizer 2009-06-15 02:02:25 -07:00
Tim Almdaland 83d1b15c1e Don't use stdClass to return the feed data. Just use an array.
Signed-off-by:  <unostar@danalan.info>
2009-06-15 04:26:07 +08:00
Tim Almdaland 6007843c4a Remove the sidebar flag from the feed definition returned by available_feeds and
replace with a type field with one of two values (head and block).  We need to
do this to determine what fields go in the rss block so we can ignore the
definitions that are related to the page head when creating the rss block that
goes into the sidebar.

Signed-off-by:  <unostar@danalan.info>
2009-06-15 04:26:03 +08:00
Tim Almdaland fdbffc870d Remove rss:item_feed, rss::tag_fead and rss_theme::head and move that
functionality in the <module_name>_theme::head function. Created rss::feed_link
to wrap the module supplied uri in the html link element.

Signed-off-by:  <unostar@danalan.info>
2009-06-15 04:26:01 +08:00
Tim Almdaland 879e81f0a1 Rename:
rss::get_feeds() -> rss::available_feeds()
 rss::process_feed() -> rss::feed_data()

Signed-off-by:  <unostar@danalan.info>
2009-06-15 04:26:00 +08:00
Tim Almdaland 10d9c6a92a Rename Rss_Controller::__call to Rss_Controller::feed, which changes the feed
url to rss/feed/<feed name>/[<id>]
Where feed name is the name of the feed (i.e. albums, updates, comments, tags
etc.) and id is the optional element id that the feed applies to.

Signed-off-by:  <unostar@danalan.info>
2009-06-15 04:25:58 +08:00
Bharat Medirattaand fda706f55c Get rid of the word "items" in the delete confirmation dialog.
Signed-off-by:  <unostar@danalan.info>
2009-06-15 04:25:41 +08:00
Bharat Medirattaand b0e7dded23 Add a warning about eAccelerator interfering with g2_import.
Signed-off-by:  <unostar@danalan.info>
2009-06-15 04:25:40 +08:00
Chad Kiefferand b86e657194 Switch quick delete from JS confirm to jQuery UI dialog, closes ticket #355.
Signed-off-by:  <unostar@danalan.info>
2009-06-15 01:10:13 +08:00
Bharat Medirattaand db321863a6 Move date/time format strings into a setting and bump the gallery
module to version 2.  First test of our upgrade code!

Signed-off-by:  <unostar@danalan.info>
2009-06-13 20:10:27 +08:00
Bharat Medirattaand 2afa437aa9 Add a closing </b> to the warning.
Signed-off-by:  <unostar@danalan.info>
2009-06-13 20:10:26 +08:00
Bharat Medirattaand 3d89951c77 Create gallery::date_time(), gallery::date() and gallery::time()
functions that format a unix timestamp into a date+time/date/time
string.

Partial fix for ticket #347.

Signed-off-by:  <unostar@danalan.info>
2009-06-13 20:10:24 +08:00
Bharat Medirattaand 96b533f1b2 Don't count the root as an album in the stats block. It'll just confuse our users.
Fixes ticket #369

Signed-off-by:  <unostar@danalan.info>
2009-06-13 20:10:23 +08:00
unostar 8645473df0 Corrected my mistake. 2009-06-13 05:06:37 -07:00
Tim Almdaland 5f3d33b58e Continue refactoring the rss module and distribute the creation of album and
tag feeds to the gallery and tag modules respectively.  This chould close
ticket #388

Signed-off-by:  <unostar@danalan.info>
2009-06-13 04:22:28 +08:00
Tim Almdaland fd3a81f1ee Move the processing of rss feeds from the rss controller to callbacks in the
modules that are supplying the feed. The rss controller becomes a router.
In this change the comment and updates fields are distributed.

Signed-off-by:  <unostar@danalan.info>
2009-06-13 04:22:26 +08:00
Tim Almdaland 94dc6baa49 Change from an event driven model to a call driven model similiar to the task
api.

Signed-off-by:  <unostar@danalan.info>
2009-06-13 04:22:25 +08:00
Tim Almdaland 0da812fdb0 Change the "request_feed_links" eventing handling so that individual modules
provide the part of the url (the suffix) that they are interested in and the
rss module will format the rest of the url.

Signed-off-by:  <unostar@danalan.info>
2009-06-13 04:22:22 +08:00
unostar f15b4a5f35 Multi-byte safe function to support all other languages. 2009-06-12 10:39:35 -07:00
Tim Almdaland 1981c9bb09 Rearrange the code in sidebar_block to logically group the code for readability.
Signed-off-by:  <unostar@danalan.info>
2009-06-12 21:21:57 +08:00
Tim Almdaland 4bd82c1167 Changed rss_theme::sidebar_blocks to fire the event "request_feed_links" to
allow modules to contribute rss feed links to the rss sidebar block.
Ticket #388.

Signed-off-by:  <unostar@danalan.info>
2009-06-12 21:21:55 +08:00