diff options
| author | Bharat Mediratta <bharat@menalto.com> | 2009-02-08 00:42:17 +0000 |
|---|---|---|
| committer | Bharat Mediratta <bharat@menalto.com> | 2009-02-08 00:42:17 +0000 |
| commit | 7ebbe189d4a6955532fb17f4cb9466115279ca35 (patch) | |
| tree | 22d9c328815d15ddd53ec8120f02071c255e83bf /core/views | |
| parent | d9b4d96c670187aab0c7f37477da3f0c7a628767 (diff) | |
Implement the "additional options" part of the quick menu. It's only
for albums, because we don't currently have additional options for
photos yet.
Diffstat (limited to 'core/views')
| -rw-r--r-- | core/views/quick_pane.html.php | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/core/views/quick_pane.html.php b/core/views/quick_pane.html.php index b5f40d94..60cbb426 100644 --- a/core/views/quick_pane.html.php +++ b/core/views/quick_pane.html.php @@ -44,9 +44,27 @@ </a> <? endif ?> -<a class="options" href="#" - title="<?= t("Additional options") ?>"> +<? if ($item->is_album()): ?> +<a class="options" href="#" title="<?= t("additional options") ?>"> <span> <?= t("Additional options") ?> </span> </a> + +<div id="gQuickPaneOptions" style="display: none"> + <a class="add_item gDialogLink" href="<?= url::site("form/add/albums/$item->id?type=photo") ?>" + title="<?= t("Add a photo") ?>"> + <?= t("Add a photo") ?> + </a> + + <a class="add_album gDialogLink" href="<?= url::site("form/add/albums/$item->id?type=album") ?>" + title="<?= t("Add an album") ?>"> + <?= t("Add an album") ?> + </a> + + <a class="permissions gDialogLink" href="<?= url::site("permissions/browse/$item->id") ?>" + title="<?= t("Edit permissions") ?>"> + <?= t("Edit permissions") ?> + </a> +</div> +<? endif ?> |
