diff options
author | Chad Kieffer <ckieffer@gmail.com> | 2009-06-28 17:53:20 -0600 |
---|---|---|
committer | Chad Kieffer <ckieffer@gmail.com> | 2009-06-28 17:53:20 -0600 |
commit | 2b804ebdcea2127ca481ae3fb25a33a3bc5a78c3 (patch) | |
tree | a130eef94f4cfe54dd88bbacad09a2bb0e3fb083 | |
parent | 1c44537097e01f50c6c2840d0020d6a2406e2878 (diff) |
Convert info module's block to use a list instead of a table. Addresses request in ticket #441.
-rw-r--r-- | modules/info/views/info_block.html.php | 75 | ||||
-rw-r--r-- | themes/default/css/screen.css | 4 |
2 files changed, 37 insertions, 42 deletions
diff --git a/modules/info/views/info_block.html.php b/modules/info/views/info_block.html.php index 9f9ec5df..3a96937c 100644 --- a/modules/info/views/info_block.html.php +++ b/modules/info/views/info_block.html.php @@ -1,44 +1,35 @@ <?php defined("SYSPATH") or die("No direct script access.") ?> -<table class="gMetadata"> - <tbody> - <tr> - <th><?= t("Title:") ?></th> - <td><?= p::clean($item->title) ?></td> - </tr> - <? if ($item->description): ?> - <tr> - <th><?= t("Description:") ?></th> - <td><?= p::clean($item->description) ?></td> - </tr> +<ul class="gMetadata"> + <li> + <strong class="caption"><?= t("Title:") ?></strong> + <?= p::clean($item->title) ?> + </li> + <? if ($item->description): ?> + <li> + <strong class="caption"><?= t("Description:") ?></strong> + <?= p::clean($item->description) ?> + </li> + <? endif ?> + <? if ($item->id != 1): ?> + <li> + <strong class="caption"><?= t("Folder name:") ?></strong> + <?= p::clean($item->name) ?> + </li> + <? endif ?> + <? if ($item->captured): ?> + <li> + <strong class="caption"><?= t("Captured:") ?></strong> + <?= date("M j, Y H:i:s", $item->captured)?> + </li> + <? endif ?> + <? if ($item->owner): ?> + <li> + <strong class="caption"><?= t("Owner:") ?></strong> + <? if ($item->owner->url): ?> + <a href="<?= $item->owner->url ?>"><?= p::clean($item->owner->full_name) ?></a> + <? else: ?> + <?= p::clean($item->owner->name) ?> <? endif ?> - <? if ($item->id != 1): ?> - <tr> - <th><?= t("Name:") ?></th> - <td><?= p::clean($item->name) ?></td> - </tr> - <? endif ?> - <? if ($item->id != 1): ?> - <? $parent = $item->parent(); ?> - <tr> - <th><?= t("Album: ") ?></th> - <td> - <a href="<?= url::site("albums/{$parent->id}?show=$item->id") ?>"> - <?= p::clean($parent->title) ?> - </a> - </td> - </tr> - <? endif ?> - <? if ($item->captured): ?> - <tr> - <th><?= t("Captured:") ?></th> - <td><?= gallery::date_time($item->captured) ?></td> - </tr> - <? endif ?> - <? if ($item->owner): ?> - <tr> - <th><?= t("Owner:") ?></th> - <td><a href="#"><?= p::clean($item->owner->name) ?></a></td> - </tr> - <? endif ?> - </tbody> -</table> + </li> + <? endif ?> +</ul>
\ No newline at end of file diff --git a/themes/default/css/screen.css b/themes/default/css/screen.css index d3c4de6f..e37de70e 100644 --- a/themes/default/css/screen.css +++ b/themes/default/css/screen.css @@ -57,6 +57,10 @@ h2 { font-size: 1.2em; } +#gSidebar .gBlock li { + margin-bottom: .6em; +} + h3 { font-size: 1.2em; } |