Commit Graph

257 Commits

Author SHA1 Message Date
Bharat Mediratta
006e0b4f28 Replace the old "add photo" form with the simple uploader version in
the "add a photo" quick menu option.
2009-05-20 03:24:39 +00:00
Tim Almdal
762ca22544 This takes us the next step closer to providing bulk edit. We still
can't edit, but we are getting closer :-).
This change sets up a framework for modules to contribute edit panels
to the organize drawer. Currently implemented General (albums and
photos), Sort Order (albums only) and Manage Tags
2009-05-18 19:34:03 +00:00
Bharat Mediratta
ad16488643 Turn on IN_PRODUCTION mode now across the board. Create our own error
page where we'll show whatever information is useful.  Get rid of the
IN_PRODUCTION hack in MY_View.php that we no longer need.
2009-05-18 06:30:32 +00:00
Bharat Mediratta
5a6aef9c23 Fix preamble 2009-05-18 00:05:50 +00:00
Bharat Mediratta
75cf17d0d6 Make denied links not clickable at the root level when the permission
is already denied.  Ie, at the root level you can't click the item to
reset because there's no permission to inherit from, so denied is now
just a non-actionable status.
2009-05-15 01:25:11 +00:00
Bharat Mediratta
627e83adc1 Cache variables in core._cache so that we can retrieve them all in a
single query.  In most cases, we were fetching 4-5 variables per page
load, so this is 2-3x faster.
2009-05-14 03:56:29 +00:00
Jakob Hilden
cb1a5113f8 permissions UI facelift 2009-05-14 00:12:46 +00:00
Tim Almdal
daebdab0c6 Address the final point in #226. Disable the make album cover icon if
the pane has the ui-state-disabled class
2009-05-13 22:56:51 +00:00
Bharat Mediratta
ce4a8224d8 Allow admins to modify variables. This way when something goes wrong,
we can tell them what to do in the forums and we don't have to build
super smart admin UIs to help users with weird edge cases.

This plus r20789 is probably a good enough fix for #232.
2009-05-13 21:32:22 +00:00
Bharat Mediratta
12380b8b39 Add the "advanced settings" controller which lets you see all the
vars.  We'll eventually turn this into a registry where you can edit
settings directly (at your own risk).
2009-05-13 19:48:57 +00:00
Bharat Mediratta
983dc66684 Display the server load average in the platform block. Fixes ticket #198. 2009-05-13 01:32:11 +00:00
Bharat Mediratta
b8d3478b95 Beautify the error message. 2009-05-10 21:32:27 +00:00
Bharat Mediratta
c14194ab2d Warn users if they have suhosin.session.encrypt enabled that it'll break the uploader 2009-05-10 20:54:15 +00:00
Bharat Mediratta
99da170def Document why we skip the parent state for the root album. 2009-05-10 20:16:18 +00:00
Bharat Mediratta
0373cb0676 Use lower-case aliases for greater portability (thanks Romain LE DISEZ) 2009-05-08 17:48:30 +00:00
Tim Almdal
2991831c03 Fix for ticket #72 2009-05-06 14:45:44 +00:00
Bharat Mediratta
890b716c8f Show the 'activate gd' button even when there's a warning about missing rotation 2009-05-06 04:27:23 +00:00
Chad Kieffer
812cb94b1e Usability update: include an "Activate Toolkit Name" button with available toolkits 2009-05-06 03:47:58 +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
Jakob Hilden
03960546be added icons to permissions UI 2009-04-12 18:27:45 +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
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
Bharat Mediratta
892e46368b Set the queue limit to 1000. 2009-04-03 08:17:58 +00:00
Chad Kieffer
a57d0d93a8 Add quick edit pane to resize images, ticket #189 2009-03-31 05:14:40 +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
a142aee609 Convert language updates over to task form. It's still very rough,
the task only has one step from zero to 100.
2009-03-26 07:10:47 +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
b942930c70 Add title string to this page. Doesn't show yet because its in a gPanel 2009-03-20 20:31:50 +00:00
Jakob Hilden
6fc1952134 minor UI and CSS improvements
(the styling of the flash button is a not themable solution and I put the CSS in the file for now)
2009-03-20 17:22:12 +00:00
Chad Kieffer
591403d794 Added rotate cc and ccw icons to themeroller theme and css to default theme, applied to quick pane rotate buttons. Hope that jQuery UI includes rotate icons eventrually so we don't have to maintain this. 2009-03-18 06:15:37 +00:00
Tim Almdal
3a5de959b9 Fix for ticket #143 2009-03-18 02:49:04 +00:00
Andy Staudacher
222f6e2e23 Functional l10n_client / server interaction:
- Get / verify API Key from l10n server
 - Submit translations
 - Fetch translations / updates

Reference: Tasks: 75, 76, 55

TODO: Move out of core (and a series of other tasks).
2009-03-18 00:53:44 +00:00
Bharat Mediratta
3f87c16223 Fix missing preambles 2009-03-17 18:33:51 +00:00
Chad Kieffer
920804bd47 Style breadcrumb in photo upload dialog 2009-03-17 05:57:40 +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
1a2402dbd8 Fix bug, $active -> $site. 2009-03-16 08:59:38 +00:00
Bharat Mediratta
c05a1103e7 Use a query to get the database version. Newer versions of PHP bomb
if you're using mysqli, and it asks for a connection which we can't easily get
from Kohana.
2009-03-16 08:25:49 +00:00
Chad Kieffer
c377ffc2a5 Ticket #97. Applied button css where missing. Minor form css improvements. 2009-03-16 05:50:05 +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
Tim Almdal
0bc64efa4a Thin down the scaffolding code so that all that is there is the test
data creation and the packaging code.  The rest ofthe functionality is
either no longer required, or moved to the developer module (MPTT
Tree).
Also provide checking for the active user to be an admin.
2009-03-16 03:50:57 +00:00
Tim Almdal
b4f8d824f7 Remove profiling and debugging from the scaffold info screen. 2009-03-15 22:05:38 +00:00
Chad Kieffer
5b5893b628 Minor after install message edits, added updated Gallery logo alt description 2009-03-12 04:23:53 +00:00
Bharat Mediratta
7aea8f0385 Add a 'cancel all' link too 2009-03-09 07:45:38 +00:00
Bharat Mediratta
e37faa0008 More tasks cleanup.
Don't join through to the users table; that won't work in embedded
mode.  Instead, add Tasks_Model::owner() that calls user::lookup() and
refer to the object directly in the view.

Add Admin_Maintenance:remove_finished_tasks() so that we can easily do
old task cleanup.

Hide Running / Finished sections if there aren't any running or
finished tasks.
2009-03-09 07:28:19 +00:00
Bharat Mediratta
72c7fed975 Log the user in as admin after running the web installer, and give
them a nice "Welcome to Gallery 3" dialog.  The text in there needs a
little work but it's a start.

In the process, re-build the install.sql using the scaffolding code.
2009-03-08 21:21:09 +00:00
Chad Kieffer
33eb05ef9a Applied jQuery UI buttons to quick edit pane. Not tested, but icons should display iin IE6 now. Rotate icons will need to be updated later. 2009-03-05 06:03:04 +00:00