Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F102758469
ReleephProjectViewController.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, 21:46
Size
1 KB
Mime Type
text/x-php
Expires
Tue, Feb 25, 21:46 (2 d)
Engine
blob
Format
Raw Data
Handle
24417183
Attached To
rPH Phabricator
ReleephProjectViewController.php
View Options
<?php
final
class
ReleephProjectViewController
extends
ReleephController
{
public
function
processRequest
()
{
// Load all branches
$releeph_project
=
$this
->
getReleephProject
();
$releeph_branches
=
id
(
new
ReleephBranch
())
->
loadAllWhere
(
'releephProjectID = %d'
,
$releeph_project
->
getID
());
$path
=
$this
->
getRequest
()->
getRequestURI
()->
getPath
();
$is_open_branches
=
strpos
(
$path
,
'closedbranches/'
)
===
false
;
$view
=
id
(
new
ReleephProjectView
())
->
setShowOpenBranches
(
$is_open_branches
)
->
setUser
(
$this
->
getRequest
()->
getUser
())
->
setReleephProject
(
$releeph_project
)
->
setBranches
(
$releeph_branches
);
$crumbs
=
$this
->
buildApplicationCrumbs
()
->
addCrumb
(
id
(
new
PhabricatorCrumbView
())
->
setName
(
$releeph_project
->
getName
())
->
setHref
(
$releeph_project
->
getURI
()));
if
(
$releeph_project
->
getIsActive
())
{
$crumbs
->
addAction
(
id
(
new
PhabricatorMenuItemView
())
->
setHref
(
$releeph_project
->
getURI
(
'cutbranch'
))
->
setName
(
'Cut New Branch'
)
->
setIcon
(
'create'
));
}
return
$this
->
buildStandardPageResponse
(
array
(
$crumbs
,
$view
,
),
array
(
'title'
=>
$releeph_project
->
getName
().
' Releeph Project'
));
}
}
Event Timeline
Log In to Comment