1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-19 20:10:55 +01:00

Misc Phame Updates

Summary: Color nodata as nodata, fix picture redirect, give hints when items aren't set on blogs. Ref T9897

Test Plan: Tested each of these items.

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin

Maniphest Tasks: T9897

Differential Revision: https://secure.phabricator.com/D14657
This commit is contained in:
Chad Little 2015-12-03 13:54:08 -08:00
parent 39903769f0
commit 905d0f43b1
3 changed files with 14 additions and 8 deletions

View file

@ -80,13 +80,18 @@ final class PhameBlogManageController extends PhameBlogController {
->setObject($blog)
->setActionList($actions);
$properties->addProperty(
pht('Skin'),
$blog->getSkin());
$skin = $blog->getSkin();
if (!$skin) {
$skin = pht('(No external skin)');
}
$properties->addProperty(
pht('Domain'),
$blog->getDomain());
$domain = $blog->getDomain();
if (!$domain) {
$domain = pht('(No external domain)');
}
$properties->addProperty(pht('Skin'), $skin);
$properties->addProperty(pht('Domain'), $domain);
$feed_uri = PhabricatorEnv::getProductionURI(
$this->getApplicationURI('blog/feed/'.$blog->getID().'/'));

View file

@ -25,7 +25,7 @@ final class PhameBlogProfilePictureController
return new Aphront404Response();
}
$blog_uri = '/phame/blog/view/'.$id;
$blog_uri = '/phame/blog/manage/'.$id;
$supported_formats = PhabricatorFile::getTransformableImageFormats();
$e_file = true;

View file

@ -57,7 +57,7 @@ final class PhamePostListView extends AphrontTagView {
$phame_post = PhabricatorMarkupEngine::summarize($post->getBody());
$phame_post = new PHUIRemarkupView($viewer, $phame_post);
} else {
$phame_post = phutil_tag('em', array(), pht('Empty Post'));
$phame_post = phutil_tag('em', array(), pht('(Empty Post)'));
}
$blogger = phutil_tag('strong', array(), $blogger);
@ -101,6 +101,7 @@ final class PhamePostListView extends AphrontTagView {
if (empty($list)) {
$list = id(new PHUIInfoView())
->setSeverity(PHUIInfoView::SEVERITY_NODATA)
->appendChild($nodata);
}