Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F976720
PhabricatorConfigIssueViewController.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
PhabricatorConfigIssueViewController.php
View Options
<?php
final
class
PhabricatorConfigIssueViewController
extends
PhabricatorConfigController
{
private
$issueKey
;
public
function
willProcessRequest
(
array
$data
)
{
$this
->
issueKey
=
$data
[
'key'
];
}
public
function
processRequest
()
{
$request
=
$this
->
getRequest
();
$user
=
$request
->
getUser
();
$issues
=
PhabricatorSetupCheck
::
runAllChecks
();
PhabricatorSetupCheck
::
setOpenSetupIssueCount
(
PhabricatorSetupCheck
::
countUnignoredIssues
(
$issues
));
if
(
empty
(
$issues
[
$this
->
issueKey
]))
{
$content
=
id
(
new
PHUIErrorView
())
->
setSeverity
(
PHUIErrorView
::
SEVERITY_NOTICE
)
->
setTitle
(
pht
(
'Issue Resolved'
))
->
appendChild
(
pht
(
'This setup issue has been resolved. '
))
->
appendChild
(
phutil_tag
(
'a'
,
array
(
'href'
=>
$this
->
getApplicationURI
(
'issue/'
),
),
pht
(
'Return to Open Issue List'
)));
$title
=
pht
(
'Resolved Issue'
);
}
else
{
$issue
=
$issues
[
$this
->
issueKey
];
$content
=
$this
->
renderIssue
(
$issue
);
$title
=
$issue
->
getShortName
();
}
$crumbs
=
$this
->
buildApplicationCrumbs
()
->
addTextCrumb
(
pht
(
'Setup Issues'
),
$this
->
getApplicationURI
(
'issue/'
))
->
addTextCrumb
(
$title
,
$request
->
getRequestURI
());
return
$this
->
buildApplicationPage
(
array
(
$crumbs
,
$content
,
),
array
(
'title'
=>
$title
,
));
}
private
function
renderIssue
(
PhabricatorSetupIssue
$issue
)
{
require_celerity_resource
(
'setup-issue-css'
);
$view
=
new
PhabricatorSetupIssueView
();
$view
->
setIssue
(
$issue
);
$container
=
phutil_tag
(
'div'
,
array
(
'class'
=>
'setup-issue-background'
,
),
$view
->
render
());
return
$container
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Wed, Jun 18, 9:49 AM (1 d, 18 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
228184
Default Alt Text
PhabricatorConfigIssueViewController.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment