summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorChad Kieffer <ckieffer@gmail.com>2009-10-27 23:03:43 -0600
committerChad Kieffer <ckieffer@gmail.com>2009-10-27 23:03:43 -0600
commit4241e03d7549d4ebb14a0d8e5e0b830a4e032ce0 (patch)
tree21a8936bb6b97b7509bb2a4cd64c9d2e75e4e808 /modules
parent90cedf1ed0ce04e8529a0f1f048d60a5fad5d12f (diff)
Breadcrumb updates. Apply g-first and g-active consistently, use ems instead of px for nicer proportions, make font-size the same whether on the page or in a dialog.
Diffstat (limited to 'modules')
-rw-r--r--modules/gallery/views/permissions_browse.html.php14
-rw-r--r--modules/gallery/views/simple_uploader.html.php6
-rw-r--r--modules/server_add/views/server_add_tree_dialog.html.php10
3 files changed, 15 insertions, 15 deletions
diff --git a/modules/gallery/views/permissions_browse.html.php b/modules/gallery/views/permissions_browse.html.php
index e432f56b..0b27336e 100644
--- a/modules/gallery/views/permissions_browse.html.php
+++ b/modules/gallery/views/permissions_browse.html.php
@@ -6,8 +6,8 @@
url: form_url.replace("__ITEM__", id),
success: function(data) {
$("#g-edit-permissions-form").html(data);
- $(".active").removeClass("active");
- $("#item-" + id).addClass("active");
+ $(".g-active").removeClass("g-active");
+ $("#item-" + id).addClass("g-active");
}
});
}
@@ -38,18 +38,18 @@
<p><?= t("Edit permissions for album:") ?></p>
<ul class="g-breadcrumbs">
+ <? $i = 0 ?>
<? foreach ($parents as $parent): ?>
- <li id="item-<?= $parent->id ?>">
+ <li id="item-<?= $parent->id ?>"<? if ($i == 0) print " class=\"g-first\"" ?>>
<? if (access::can("edit", $parent)): ?>
- <a href="javascript:show(<?= $parent->id ?>)">
- <?= html::purify($parent->title) ?>
- </a>
+ <a href="javascript:show(<?= $parent->id ?>)"> <?= html::purify($parent->title) ?> </a>
<? else: ?>
<?= html::purify($parent->title) ?>
<? endif ?>
</li>
+ <? $i++ ?>
<? endforeach ?>
- <li class="active" id="item-<?= $item->id ?>">
+ <li class="g-active" id="item-<?= $item->id ?>">
<a href="javascript:show(<?= $item->id ?>)">
<?= html::purify($item->title) ?>
</a>
diff --git a/modules/gallery/views/simple_uploader.html.php b/modules/gallery/views/simple_uploader.html.php
index ff73dd6f..9285fffe 100644
--- a/modules/gallery/views/simple_uploader.html.php
+++ b/modules/gallery/views/simple_uploader.html.php
@@ -25,10 +25,12 @@
<?= t("Photos will be uploaded to album: ") ?>
</p>
<ul class="g-breadcrumbs">
+ <? $i = 0 ?>
<? foreach ($item->parents() as $parent): ?>
- <li> <?= html::clean($parent->title) ?> </li>
+ <li<? if ($i == 0) print " class=\"g-first\"" ?>> <?= html::clean($parent->title) ?> </li>
+ <? $i++ ?>
<? endforeach ?>
- <li class="active"> <?= html::purify($item->title) ?> </li>
+ <li class="g-active"> <?= html::purify($item->title) ?> </li>
</ul>
<div id="g-uploadqueue-infobar">
diff --git a/modules/server_add/views/server_add_tree_dialog.html.php b/modules/server_add/views/server_add_tree_dialog.html.php
index cd3b09cc..824a86a6 100644
--- a/modules/server_add/views/server_add_tree_dialog.html.php
+++ b/modules/server_add/views/server_add_tree_dialog.html.php
@@ -9,14 +9,12 @@
<p id="g-description"><?= t("Photos will be added to album:") ?></p>
<ul class="g-breadcrumbs">
+ <? $i = 0 ?>
<? foreach ($item->parents() as $parent): ?>
- <li>
- <?= html::purify($parent->title) ?>
- </li>
+ <li<? if ($i == 0) print " class=\"g-first\"" ?>> <?= html::purify($parent->title) ?> </li>
+ <? $i++ ?>
<? endforeach ?>
- <li class="active">
- <?= html::purify($item->title) ?>
- </li>
+ <li class="g-active"> <?= html::purify($item->title) ?> </li>
</ul>
<ul id="g-server-add-tree" class="g-checkbox-tree">