Add Phriction to the main nav menu

Summary:
A few minor things:

  - Add Phriction to the homepage.
  - Link to remarkup reference on the edit screen.
  - Add a help tab with a super basic help document.

Test Plan: Cursory inspection.
Reviewed By: codeblock
Reviewers: hsb, codeblock, jungejason, tuomaspelkonen, aran
CC: aran, epriestley, codeblock
Differential Revision: 655
This commit is contained in:
epriestley
2011-07-12 08:28:07 -07:00
parent 7d152def3e
commit 4c44c44964
8 changed files with 50 additions and 6 deletions

View File

@@ -132,6 +132,13 @@ class PhrictionEditController
$uri = PhrictionDocument::getSlugURI($uri);
$uri = PhabricatorEnv::getProductionURI($uri);
$remarkup_reference = phutil_render_tag(
'a',
array(
'href' => PhabricatorEnv::getDoclink('article/Remarkup_Reference.html'),
),
'Formatting Reference');
$form = id(new AphrontFormView())
->setUser($user)
->setAction($request->getRequestURI()->getPath())
@@ -151,7 +158,8 @@ class PhrictionEditController
->setLabel('Content')
->setValue($content->getContent())
->setHeight(AphrontFormTextAreaControl::HEIGHT_VERY_TALL)
->setName('content'))
->setName('content')
->setCaption($remarkup_reference))
->appendChild(
id(new AphrontFormSubmitControl())
->setValue($submit_button));