mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-20 12:30:56 +01:00
More links on Blog manage page
Summary: Adds a view live and view internal link to the blog and crumbs manage page. Test Plan: Click on new links. Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin Differential Revision: https://secure.phabricator.com/D16142
This commit is contained in:
parent
35bb320cfb
commit
ccf43c412e
1 changed files with 11 additions and 2 deletions
|
@ -32,12 +32,19 @@ final class PhameBlogManageController extends PhameBlogController {
|
||||||
|
|
||||||
$picture = $blog->getProfileImageURI();
|
$picture = $blog->getProfileImageURI();
|
||||||
|
|
||||||
|
$view = id(new PHUIButtonView())
|
||||||
|
->setTag('a')
|
||||||
|
->setText(pht('View Live'))
|
||||||
|
->setIcon('fa-external-link')
|
||||||
|
->setHref($blog->getLiveURI());
|
||||||
|
|
||||||
$header = id(new PHUIHeaderView())
|
$header = id(new PHUIHeaderView())
|
||||||
->setHeader($blog->getName())
|
->setHeader($blog->getName())
|
||||||
->setUser($viewer)
|
->setUser($viewer)
|
||||||
->setPolicyObject($blog)
|
->setPolicyObject($blog)
|
||||||
->setImage($picture)
|
->setImage($picture)
|
||||||
->setStatus($header_icon, $header_color, $header_name);
|
->setStatus($header_icon, $header_color, $header_name)
|
||||||
|
->addActionLink($view);
|
||||||
|
|
||||||
$curtain = $this->buildCurtain($blog);
|
$curtain = $this->buildCurtain($blog);
|
||||||
$properties = $this->buildPropertyView($blog);
|
$properties = $this->buildPropertyView($blog);
|
||||||
|
@ -48,7 +55,9 @@ final class PhameBlogManageController extends PhameBlogController {
|
||||||
pht('Blogs'),
|
pht('Blogs'),
|
||||||
$this->getApplicationURI('blog/'));
|
$this->getApplicationURI('blog/'));
|
||||||
$crumbs->addTextCrumb(
|
$crumbs->addTextCrumb(
|
||||||
$blog->getName());
|
$blog->getName(),
|
||||||
|
$this->getApplicationURI('blog/view/'.$id));
|
||||||
|
$crumbs->addTextCrumb(pht('Manage Blog'));
|
||||||
$crumbs->setBorder(true);
|
$crumbs->setBorder(true);
|
||||||
|
|
||||||
$object_box = id(new PHUIObjectBoxView())
|
$object_box = id(new PHUIObjectBoxView())
|
||||||
|
|
Loading…
Reference in a new issue