Commit Graph

770 Commits

Author SHA1 Message Date
Bharat Mediratta
d9c1dd67d4 Change the way we launch PicLensLite so that it doesn't upscale small images.
This resolves ticket #205.
2009-04-05 02:41:38 +00:00
Bharat Mediratta
802f2431c7 Concatenate chopped up internationalized string. 2009-04-03 23:12:52 +00:00
Bharat Mediratta
f7435112c5 Clean up JS/HTML so that renaming works properly (it had hardcoded
urls before).  Clean up indentation and localization code while I'm
in there.
2009-04-03 22:53:43 +00:00
Tim Almdal
9ed0dd51bf Fix for ticket #201.
1) create common update function so processing consistent between the
user edit and admin edit.
2) created common private helper function to build the user edit form
the same way.
So a user can now change their user name if the new one doesn't exist.
2009-04-03 17:33:07 +00:00
Tim Almdal
d35a0cdb61 Fix for ticket #200. When an error occurs the current uri is no
longer admin/server_add but admin/server_add/add_path and the equality
check fails.
2009-04-03 15:40:41 +00:00
Tim Almdal
f1cb43430b First iteration of the organize functionality (orginally called bulk
edit).  There is limited functionality in no edits work.  This is
primary a chance for the team to review the ui.  It is in a separate
module to isolate the changes.  Eventually, it will be moved back into core.
2009-04-03 00:50:43 +00:00
Bharat Mediratta
921f3a2eee Put csrf token into Admin_View and Theme_View by default, then use it
directly wherever possible instead of access::csrf_token().
2009-03-27 03:43:21 +00:00
Bharat Mediratta
d7719a7e72 Gracefully deal with the case where we resume a stalled task but there
was no work left to be done.  This fixes a divide by zero error.
2009-03-26 20:26:06 +00:00
Tim Almdal
ab787233d6 Fix for ticket #184. Sort the output children as DirectoryIterator
does not provide a sort order.  Separate the directory and files, sort
them individually and then merge them together so directories are at
the top of the list
2009-03-25 18:14:03 +00:00
Tim Almdal
3cb2c42e49 Fix for ticket #181. Valiant take note of the change to
admin_users.php.  I had to remove the check for the locale as it
hasn't been added to the form.
2009-03-25 16:21:36 +00:00
Jakob Hilden
b909132f54 tag changes in the tag admin should now work as expected 2009-03-25 04:47:25 +00:00
Tim Almdal
414e58a427 Fix the problem I created by trying to run the task again after it was completed. 2009-03-24 18:03:32 +00:00
Tim Almdal
00ffb24eb0 Add a pause button to the server add dialog and if it is clicked then
the upload is paused.  If the dialog is closed and the task is not
complete then a warning message is displayed on the album.
2009-03-24 17:41:20 +00:00
Andy Staudacher
ed7175092c Refactor all translation strings that have ambiguous placeholders.
E.g. "%link_startClick here%link_end" is now '<a href="%url">Click here</a>'.

Note: This isn't always the best solution. E.g. consider "Foo <a href='%url' class='gDialogLink'>bar</a>." Now the translator has to deal with 
preserving CSS classes too...
2009-03-21 07:44:46 +00:00
Bharat Mediratta
61d8a143ea Rejigger the way we do reinstalls while Kohana is running.
core_installer::install() now takes an $initial_install param that
allows us to enforce that we're doing a clean install.  Use this in
both the scaffolding and the unit test code.

Greatly simplify the scaffolding uninstall/reinstall code.
2009-03-19 02:35:51 +00:00
Tim Almdal
938bca7601 Remove back ticks from sql 2009-03-18 03:35:08 +00:00
Tim Almdal
8082060434 Forgot to remove a back tick 2009-03-18 01:24:54 +00:00
Tim Almdal
8e1817d4e4 Couple of sql statements that had incorrect prefix handling or no
prefix handling.
2009-03-18 01:20:30 +00:00
Bharat Mediratta
7cf0313e7b Remove the in-place tag editing code from the default theme. It
should be implemented in the tags module for now, and then possibly
generalized out to lib later on.
2009-03-17 20:59:24 +00:00
Bharat Mediratta
c81ee12411 Don't allow empty tag names 2009-03-17 20:57:51 +00:00
Bharat Mediratta
8dd24edf73 Fix correctness issue if there are no tables (list_tables will return null)
Clean out the module caches directly now that the module loading robustness code is gone.
2009-03-17 18:16:54 +00:00
Andy Staudacher
a04fe5246c Fix the locale field in the change user settings form 2009-03-17 17:19:45 +00:00
Andy Staudacher
ee2f09c968 Fix edit user form handler 2009-03-17 15:49:02 +00:00
Bharat Mediratta
0a520f389f rss/updates doesn't have an item. Clean up some typos here. 2009-03-17 05:41:16 +00:00
Bharat Mediratta
522fe45787 filesize() dies if the file doesn't exist, which can happen in the
case that a gallery is slightly corrupt.  In that case, just ignore
the error.
2009-03-17 05:40:21 +00:00
Bharat Mediratta
8786ee3ffb Initialize $tags properly 2009-03-17 05:25:38 +00:00
Bharat Mediratta
a908c0e878 Fix typo: $max_page -> $max_pages 2009-03-17 05:24:19 +00:00
Bharat Mediratta
0f5ccc9aa3 Switch from using SimpleUploader to using swfUpload as our flash based
uploader.  This is modeled on
http://codex.gallery2.org/Gallery3:Upload_UX but is not yet complete.

Notes:
* Changed #gProgressBar to .gProgressBar to support multiple progress
  bars on the same page
* Added a bunch of CSS to the "needs a home" section in
  themes/default/css/screen.css
2009-03-17 05:20:37 +00:00
Bharat Mediratta
2dba075e8a Fix typo: tag_block -> tag_theme
Overlooked when I renamed this class.
2009-03-17 00:37:39 +00:00
Bharat Mediratta
6a2e8ec1cc Set $item and $tag in the Theme_View so that calls like $theme->item()
which fall through to calling &View::__get() have an lvalue to return,
else you can't return them by reference.

Also, don't show sidebar blocks for pages that don't have an item so
that the rss and tag modules don't break the search page.
2009-03-16 11:17:27 +00:00
Bharat Mediratta
ccc867f629 Get rid of $hidden; it was never defined 2009-03-16 09:11:30 +00:00
Bharat Mediratta
8458eba279 Switch the locale::$locales data structure to be an array instead of a
stdClass because we're not allowed to asort() stdClass objects in PHP
5.2.6.
2009-03-16 09:08:12 +00:00
Bharat Mediratta
6aadb0bc77 Fix indentation 2009-03-16 09:01:50 +00:00
Bharat Mediratta
768418ea49 Remove unused orig_public_key from the form, it wasn't actually doing anything (and was causing an error). 2009-03-16 08:55:36 +00:00
Bharat Mediratta
c15e4c61a3 Proxy the url through _auth() to user::get_login_form() 2009-03-16 08:05:44 +00:00
Bharat Mediratta
54e07d0769 Get rid of the extra robust code we had in here to make the
scaffolding work when the Gallery wasn't installed yet.  Now we force
users through the installer.
2009-03-16 08:05:07 +00:00
Bharat Mediratta
784adf835e clean up style attr 2009-03-16 07:16:54 +00:00
Bharat Mediratta
401c701369 Remove unnecessary slash from url::site() arg. 2009-03-16 07:07:40 +00:00
Chad Kieffer
c377ffc2a5 Ticket #97. Applied button css where missing. Minor form css improvements. 2009-03-16 05:50:05 +00:00
Chad Kieffer
542ab6db1f Combined "Logged in as..." and "Modify Profile" to by just "Logged in as FullName" 2009-03-16 04:54:00 +00:00
Bharat Mediratta
83912bce20 Missed this in the last commit 2009-03-16 04:42:39 +00:00
Bharat Mediratta
736d74d05f Clean up the login, maintenance login and required-top-level-login code.
We now have two clear and separate login approaches:
  login/ajax
  login/html

Choose the one that's appropriate.  Totally simplified the maintenance
page to be separate from the theme and dead simple, and use login/html
approach there.  Totally simplified the top level login
(login_page.html.php) to just be a login page, not the rest of the
chrome on the page and use the login/ajax approach there.

Don't use access::required in albums and then catch the exception,
instead use access::can and check the return code.

Improve the text for maintenance mode.
2009-03-16 04:33:45 +00:00
Bharat Mediratta
cbc7c870fa Stop loading jeditable-- we don't use it anymore 2009-03-16 04:30:17 +00:00
Bharat Mediratta
8abf48dd79 Move atom, developer, polar_rose and gmaps modules into gallery-contrib 2009-03-15 22:23:04 +00:00
Tim Almdal
bf4cd1b813 Move profiling and debugging out of the scaffolding and into the
developer module.
2009-03-15 20:35:24 +00:00
Tim Almdal
6ac6c6a7e0 Updates to the developer tool create module.
It now creates a fully functional sidebar block, a dialog pop up on
the option menu for albums or photos, a dashboard block and an admin
screen.
2009-03-15 19:27:30 +00:00
Tim Almdal
7c5ba9d422 Refactored the developer module. When a new module is generated a
skeleton adminstration page is generated as well.
@todo is still generate a skeleton block and a skeleton dialog.
2009-03-15 05:15:45 +00:00
Bharat Mediratta
1071b91409 Use relative urls for the feed links. 2009-03-14 18:42:01 +00:00
Tim Almdal
a3c513b786 * remove debug code 2009-03-14 02:21:38 +00:00
Tim Almdal
229eca2918 * Allow module names with spaces
* remove debug code
2009-03-14 02:16:06 +00:00