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 the applications included in %s.', | ||||
PhabricatorPlatformSite::getName()); | |||||
$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 on %s.', | ||||
PhabricatorPlatformSite::getName()); | |||||
} | } | ||||
$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 %s, these optional steps can help you learn '. | ||||
'the basics. Conceptually, Phabricator is structured as a graph, and '. | 'the basics. Conceptually, %s is structured as a graph, and '. | ||||
'repositories, tasks, and projects are all independent from each other. '. | 'repositories, tasks, and projects are all independent from each other. '. | ||||
'Feel free to set up Phabricator for how you work best, and explore '. | 'Feel free to set up %s for how you work best, and explore '. | ||||
'these features at your own pace.'); | 'these features at your own pace.', | ||||
PhabricatorPlatformSite::getName(), | |||||
PhabricatorPlatformSite::getName(), | |||||
PhabricatorPlatformSite::getName()); | |||||
$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); | ||||
} | } | ||||
} | } |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0