mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-29 10:26:46 -04:00
Merge branch 'master' of git@github.com:gallery/gallery3
This commit is contained in:
+2
-2
@@ -17,8 +17,8 @@
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
class Javascript_Controller extends Controller {
|
||||
public function combined($key) {
|
||||
class Combined_Controller extends Controller {
|
||||
public function javascript($key) {
|
||||
if (preg_match('/[^0-9a-f]/', $key)) {
|
||||
// The key can't contain non-hex, so just terminate early
|
||||
Kohana::show_404();
|
||||
@@ -207,7 +207,7 @@ class Theme_View_Core extends View {
|
||||
}
|
||||
|
||||
// Handcraft the script link because html::script will add a .js extenstion
|
||||
return "<script type=\"text/javascript\" src=\"" . url::site("javascript/combined/$key") .
|
||||
return "<script type=\"text/javascript\" src=\"" . url::site("combined/javascript/$key") .
|
||||
"\"></script>";
|
||||
}
|
||||
|
||||
|
||||
@@ -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>
|
||||
@@ -57,6 +57,10 @@ h2 {
|
||||
font-size: 1.2em;
|
||||
}
|
||||
|
||||
#gSidebar .gBlock li {
|
||||
margin-bottom: .6em;
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: 1.2em;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user