Add a borderless tag style

Summary: Formally support borderless tags in PHUITagView.

Test Plan: Used in Diffusion History List

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin

Differential Revision: https://secure.phabricator.com/D18074
This commit is contained in:
Chad Little
2017-06-04 11:52:27 -07:00
parent f66c6e5c1f
commit 65c9d789d2
6 changed files with 29 additions and 19 deletions

View File

@@ -333,6 +333,7 @@ abstract class DiffusionController extends PhabricatorController {
$tag = id(new PHUITagView())
->setName($commit)
->setColor(PHUITagView::COLOR_INDIGO)
->setBorder(PHUITagView::BORDER_NONE)
->setType(PHUITagView::TYPE_SHADE);
return $tag;

View File

@@ -110,7 +110,7 @@ final class DiffusionHistoryListView extends DiffusionHistoryView {
->setType(PHUITagView::TYPE_SHADE)
->setColor(PHUITagView::COLOR_BLUE)
->setHref('/D'.$d_id)
->addClass('diffusion-differential-tag')
->setBorder(PHUITagView::BORDER_NONE)
->setSlimShady(true);
}
}
@@ -155,6 +155,7 @@ final class DiffusionHistoryListView extends DiffusionHistoryView {
->setName($commit_name)
->setType(PHUITagView::TYPE_SHADE)
->setColor(PHUITagView::COLOR_INDIGO)
->setBorder(PHUITagView::BORDER_NONE)
->setSlimShady(true);
$item = id(new PHUIObjectItemView())