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:
@@ -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;
|
||||
|
||||
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user