1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-24 06:20:56 +01:00

Minor Phame polish

Summary:
- Add Blogs crumb to posts
 - Tidy up post edit page copy
Ref T9897

Test Plan: Review a Post, Edit Post

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin

Maniphest Tasks: T9897

Differential Revision: https://secure.phabricator.com/D14677
This commit is contained in:
Chad Little 2015-12-05 08:46:48 -08:00
parent 5977215437
commit 6e7940cea2
2 changed files with 4 additions and 2 deletions

View file

@ -139,8 +139,7 @@ final class PhamePostEditController extends PhamePostController {
->setValue(rtrim($phame_title, '/')) ->setValue(rtrim($phame_title, '/'))
->setID('post-phame-title') ->setID('post-phame-title')
->setCaption(pht('Up to 64 alphanumeric characters '. ->setCaption(pht('Up to 64 alphanumeric characters '.
'with underscores for spaces. '. 'with underscores for spaces.'))
'Formatting is enforced.'))
->setError($e_phame_title)) ->setError($e_phame_title))
->appendChild( ->appendChild(
id(new AphrontFormSelectControl()) id(new AphrontFormSelectControl())

View file

@ -21,6 +21,9 @@ final class PhamePostViewController extends PhamePostController {
$blog = $post->getBlog(); $blog = $post->getBlog();
$crumbs = $this->buildApplicationCrumbs(); $crumbs = $this->buildApplicationCrumbs();
$crumbs->addTextCrumb(
pht('Blogs'),
$this->getApplicationURI('blog/'));
if ($blog) { if ($blog) {
$crumbs->addTextCrumb( $crumbs->addTextCrumb(
$blog->getName(), $blog->getName(),