Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F102700935
DiffusionRepositoryManageController.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Feb 23, 08:18
Size
927 B
Mime Type
text/x-php
Expires
Tue, Feb 25, 08:18 (2 d)
Engine
blob
Format
Raw Data
Handle
24403662
Attached To
rPH Phabricator
DiffusionRepositoryManageController.php
View Options
<?php
abstract
class
DiffusionRepositoryManageController
extends
DiffusionController
{
protected
function
buildApplicationCrumbs
()
{
$crumbs
=
parent
::
buildApplicationCrumbs
();
if
(
$this
->
hasDiffusionRequest
())
{
$drequest
=
$this
->
getDiffusionRequest
();
$repository
=
$drequest
->
getRepository
();
$crumbs
->
addTextCrumb
(
$repository
->
getDisplayName
(),
$repository
->
getURI
());
$crumbs
->
addTextCrumb
(
pht
(
'Manage'
),
$repository
->
getPathURI
(
'manage/'
));
}
return
$crumbs
;
}
public
function
newBox
(
$title
,
$content
,
$action
=
null
)
{
$header
=
id
(
new
PHUIHeaderView
())
->
setHeader
(
$title
);
if
(
$action
)
{
$header
->
addActionItem
(
$action
);
}
$view
=
id
(
new
PHUIObjectBoxView
())
->
setHeader
(
$header
)
->
appendChild
(
$content
)
->
setBackground
(
PHUIObjectBoxView
::
WHITE_CONFIG
);
return
$view
;
}
}
Event Timeline
Log In to Comment