mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-27 09:12:41 +01:00
Fix overescaping for Repositories home screen
Summary: Fixes T2623. Test Plan: {F34157} {F34158} Reviewers: chad, vrana Reviewed By: chad CC: aran Maniphest Tasks: T2623 Differential Revision: https://secure.phabricator.com/D5156
This commit is contained in:
parent
5d2e0ecc8a
commit
1539b21b45
1 changed files with 19 additions and 10 deletions
|
@ -151,14 +151,23 @@ final class DiffusionHomeController extends DiffusionController {
|
|||
'href' => $repository_tool_uri,
|
||||
),
|
||||
'repository tool');
|
||||
$no_repositories_txt = 'This instance of Phabricator does not have any '.
|
||||
'configured repositories. ';
|
||||
$preface = pht('This instance of Phabricator does not have any '.
|
||||
'configured repositories.');
|
||||
if ($user->getIsAdmin()) {
|
||||
$no_repositories_txt .= 'To setup one or more repositories, visit the '.
|
||||
$repository_tool.'.';
|
||||
$no_repositories_txt = hsprintf(
|
||||
'%s %s',
|
||||
$preface,
|
||||
pht(
|
||||
'To setup one or more repositories, visit the %s.',
|
||||
$repository_tool));
|
||||
} else {
|
||||
$no_repositories_txt .= 'Ask an administrator to setup one or more '.
|
||||
'repositories via the '.$repository_tool.'.';
|
||||
$no_repositories_txt = hsprintf(
|
||||
'%s %s',
|
||||
$preface,
|
||||
pht(
|
||||
'Ask an administrator to setup one or more repositories '.
|
||||
'via the %s.',
|
||||
$repository_tool));
|
||||
}
|
||||
|
||||
$table = new AphrontTableView($rows);
|
||||
|
|
Loading…
Reference in a new issue