diff options
author | Chad Kieffer <chad@2tbsp.com> | 2009-01-14 06:36:47 +0000 |
---|---|---|
committer | Chad Kieffer <chad@2tbsp.com> | 2009-01-14 06:36:47 +0000 |
commit | c383b2fc35bbe1864acb79b784b4cd3a2f82a95e (patch) | |
tree | 2cd09ea90f3c56adca6ecd45f29f3016196d52fa /core/views | |
parent | 2a7d4b43653d8d340bae185c48dde4de4f8741be (diff) |
Visually attach the quick edit menu to the thumbnail container. Added more edit options (move, select as album cover, delete, additional options).
Need to decide which belong in the bar and which belong in a dropdown menu under "options."
Diffstat (limited to 'core/views')
-rw-r--r-- | core/views/quick_pane.html.php | 46 |
1 files changed, 38 insertions, 8 deletions
diff --git a/core/views/quick_pane.html.php b/core/views/quick_pane.html.php index 75149e18..2a8c66ef 100644 --- a/core/views/quick_pane.html.php +++ b/core/views/quick_pane.html.php @@ -1,24 +1,54 @@ <?php defined("SYSPATH") or die("No direct script access.") ?> <? if ($item->type == "photo"): ?> + +<a class="edit gDialogLink" href="<?= url::site("quick/form_edit/$item->id") ?>" + title="<?= t("Edit this item's metadata") ?>"> + <span> + <?= t("Edit this item") ?> + </span> +</a> + <? if (graphics::can("rotate")): ?> -<a class="counter-clockwise" href="<?= url::site("quick/rotate/$item->id/ccw?csrf=" . access::csrf_token()) ?>"> +<a class="clockwise" href="<?= url::site("quick/rotate/$item->id/cw?csrf=" . access::csrf_token()) ?>" + title="<?= t("Rotate 90 degrees clockwise") ?>"> <span> - <?= t("Rotate CCW") ?> + <?= t("Rotate 90 degrees clockwise") ?> + </span> +</a> +<a class="counter-clockwise" href="<?= url::site("quick/rotate/$item->id/ccw?csrf=" . access::csrf_token()) ?>" + title="<?= t("Rotate 90 degrees counter clockwise") ?>"> + <span> + <?= t("Rotate 90 degrees counter clockwise") ?> </span> </a> <? endif ?> -<a class="edit gDialogLink" href="<?= url::site("quick/form_edit/$item->id") ?>"> +<a class="move" href="<?= url::site("quick/form_edit/$item->id") ?>" + title="<?= t("Move this item to another album") ?>"> <span> - <?= t("Edit") ?> + <?= t("Move this item to another album") ?> </span> </a> -<? if (graphics::can("rotate")): ?> -<a class="clockwise" href="<?= url::site("quick/rotate/$item->id/cw?csrf=" . access::csrf_token()) ?>"> +<a class="cover" href="#" + title="<?= t("Select as album cover") ?>"> <span> - <?= t("Rotate CCW") ?> + <?= t("Select as album cover") ?> </span> </a> -<? endif ?> + +<a class="delete" href="#" + title="<?= t("Delete this item") ?>"> + <span> + <?= t("Delete this item") ?> + </span> +</a> + +<a class="options" href="#" + title="<?= t("Additional options") ?>"> + <span> + <?= t("Additional options") ?> + </span> +</a> + <? endif ?> |