Changeset View
Changeset View
Standalone View
Standalone View
src/applications/guides/module/PhabricatorGuideQuickStartModule.php
Show First 20 Lines • Show All 126 Lines • ▼ Show 20 Lines | $item = id(new PhabricatorGuideItemView()) | ||||
->setDescription($description); | ->setDescription($description); | ||||
$guide_items->addItem($item); | $guide_items->addItem($item); | ||||
$title = pht('Explore Applications'); | $title = pht('Explore Applications'); | ||||
$href = PhabricatorEnv::getURI('/applications/'); | $href = PhabricatorEnv::getURI('/applications/'); | ||||
$icon = 'fa-globe'; | $icon = 'fa-globe'; | ||||
$icon_bg = 'bg-sky'; | $icon_bg = 'bg-sky'; | ||||
$description = | $description = | ||||
pht('See all the applications included in Phabricator.'); | pht('See all available applications.'); | ||||
$item = id(new PhabricatorGuideItemView()) | $item = id(new PhabricatorGuideItemView()) | ||||
->setTitle($title) | ->setTitle($title) | ||||
->setHref($href) | ->setHref($href) | ||||
->setIcon($icon) | ->setIcon($icon) | ||||
->setIconBackground($icon_bg) | ->setIconBackground($icon_bg) | ||||
->setDescription($description); | ->setDescription($description); | ||||
$guide_items->addItem($item); | $guide_items->addItem($item); | ||||
Show All 10 Lines | if (!$instance) { | ||||
$icon_bg = 'bg-green'; | $icon_bg = 'bg-green'; | ||||
$description = pht( | $description = pht( | ||||
'Your invitations have been accepted. You will not be alone on '. | 'Your invitations have been accepted. You will not be alone on '. | ||||
'this journey.'); | 'this journey.'); | ||||
} else { | } else { | ||||
$icon = 'fa-group'; | $icon = 'fa-group'; | ||||
$icon_bg = 'bg-sky'; | $icon_bg = 'bg-sky'; | ||||
$description = | $description = | ||||
pht('Invite the rest of your team to get started on Phabricator.'); | pht('Invite the rest of your team to get started.'); | ||||
} | } | ||||
$item = id(new PhabricatorGuideItemView()) | $item = id(new PhabricatorGuideItemView()) | ||||
->setTitle($title) | ->setTitle($title) | ||||
->setHref($href) | ->setHref($href) | ||||
->setIcon($icon) | ->setIcon($icon) | ||||
->setIconBackground($icon_bg) | ->setIconBackground($icon_bg) | ||||
->setDescription($description); | ->setDescription($description); | ||||
$guide_items->addItem($item); | $guide_items->addItem($item); | ||||
} | } | ||||
$intro = pht( | $intro = pht( | ||||
'If you\'re new to Phabricator, these optional steps can help you learn '. | 'If you\'re new to this software, these optional steps can help you '. | ||||
'the basics. Conceptually, Phabricator is structured as a graph, and '. | 'learn the basics. Feel free to set things up for how you work best '. | ||||
'repositories, tasks, and projects are all independent from each other. '. | 'and explore these features at your own pace.'); | ||||
'Feel free to set up Phabricator for how you work best, and explore '. | |||||
'these features at your own pace.'); | |||||
$intro = new PHUIRemarkupView($viewer, $intro); | $intro = new PHUIRemarkupView($viewer, $intro); | ||||
$intro = id(new PHUIDocumentView()) | $intro = id(new PHUIDocumentView()) | ||||
->appendChild($intro); | ->appendChild($intro); | ||||
return array($intro, $guide_items); | return array($intro, $guide_items); | ||||
} | } | ||||
} | } |