EditAsset: remove reference to old admin bar
This commit is contained in:
parent
2c24a0a7e7
commit
70fcd097cc
@ -94,10 +94,6 @@ class EditAsset extends HTMLController
|
|||||||
$page = new EditAssetForm($asset, $thumbs);
|
$page = new EditAssetForm($asset, $thumbs);
|
||||||
parent::__construct('Edit asset \'' . $asset->getTitle() . '\' (' . $asset->getFilename() . ') - ' . SITE_TITLE);
|
parent::__construct('Edit asset \'' . $asset->getTitle() . '\' (' . $asset->getFilename() . ') - ' . SITE_TITLE);
|
||||||
$this->page->adopt($page);
|
$this->page->adopt($page);
|
||||||
|
|
||||||
// Add a view button to the admin bar for photos.
|
|
||||||
if ($asset->isImage())
|
|
||||||
$this->admin_bar->appendItem($asset->getImage()->getPageUrl(), 'View this photo');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private function getThumbs(Asset $asset)
|
private function getThumbs(Asset $asset)
|
||||||
|
@ -12,7 +12,6 @@
|
|||||||
abstract class HTMLController
|
abstract class HTMLController
|
||||||
{
|
{
|
||||||
protected $page;
|
protected $page;
|
||||||
protected $admin_bar;
|
|
||||||
|
|
||||||
public function __construct($title)
|
public function __construct($title)
|
||||||
{
|
{
|
||||||
|
@ -250,7 +250,7 @@ class PhotoPage extends Template
|
|||||||
echo '
|
echo '
|
||||||
<div id="user_actions_box" class="content-box">
|
<div id="user_actions_box" class="content-box">
|
||||||
<h3>Actions</h3>
|
<h3>Actions</h3>
|
||||||
<a class="btn btn-primary" href="', BASEURL, '/editasset/?id=', $this->photo->getId(), '?confirm_delete">Edit photo</a>
|
<a class="btn btn-primary" href="', BASEURL, '/editasset/?id=', $this->photo->getId(), '">Edit photo</a>
|
||||||
<a class="btn btn-danger" href="', BASEURL, '/', $this->photo->getSlug(), '?confirm_delete">Delete photo</a>
|
<a class="btn btn-danger" href="', BASEURL, '/', $this->photo->getSlug(), '?confirm_delete">Delete photo</a>
|
||||||
</div>';
|
</div>';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user