mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-29 00:40:57 +01:00
Mobile Crumbs.
Summary: Not for full review. This makes crumbs appear consistently in mobile. It helps give a quick link to the apps home, the page title currently on, and action icons for the object. It will take additional clean-up to make this consistent across apps. Passing for early review from a UEX perspective. I actually really like it and think onces it's everywhere, helps mobile feel complete. Test Plan: Testing in iOS and Simulator. Reviewers: epriestley, btrahan Reviewed By: epriestley CC: aran, Korvin Maniphest Tasks: T2796 Differential Revision: https://secure.phabricator.com/D5446
This commit is contained in:
parent
6115756e9d
commit
8a0fccf97a
14 changed files with 129 additions and 79 deletions
|
@ -2793,7 +2793,7 @@ celerity_register_resource_map(array(
|
||||||
),
|
),
|
||||||
'phabricator-crumbs-view-css' =>
|
'phabricator-crumbs-view-css' =>
|
||||||
array(
|
array(
|
||||||
'uri' => '/res/4f15b2ae/rsrc/css/layout/phabricator-crumbs-view.css',
|
'uri' => '/res/2857d229/rsrc/css/layout/phabricator-crumbs-view.css',
|
||||||
'type' => 'css',
|
'type' => 'css',
|
||||||
'requires' =>
|
'requires' =>
|
||||||
array(
|
array(
|
||||||
|
@ -3701,7 +3701,7 @@ celerity_register_resource_map(array(
|
||||||
), array(
|
), array(
|
||||||
'packages' =>
|
'packages' =>
|
||||||
array(
|
array(
|
||||||
'93e81012' =>
|
'bcecb316' =>
|
||||||
array(
|
array(
|
||||||
'name' => 'core.pkg.css',
|
'name' => 'core.pkg.css',
|
||||||
'symbols' =>
|
'symbols' =>
|
||||||
|
@ -3743,7 +3743,7 @@ celerity_register_resource_map(array(
|
||||||
34 => 'phabricator-object-item-list-view-css',
|
34 => 'phabricator-object-item-list-view-css',
|
||||||
35 => 'global-drag-and-drop-css',
|
35 => 'global-drag-and-drop-css',
|
||||||
),
|
),
|
||||||
'uri' => '/res/pkg/93e81012/core.pkg.css',
|
'uri' => '/res/pkg/bcecb316/core.pkg.css',
|
||||||
'type' => 'css',
|
'type' => 'css',
|
||||||
),
|
),
|
||||||
'95ceba95' =>
|
'95ceba95' =>
|
||||||
|
@ -3934,16 +3934,16 @@ celerity_register_resource_map(array(
|
||||||
'reverse' =>
|
'reverse' =>
|
||||||
array(
|
array(
|
||||||
'aphront-attached-file-view-css' => '6b1fccc6',
|
'aphront-attached-file-view-css' => '6b1fccc6',
|
||||||
'aphront-dialog-view-css' => '93e81012',
|
'aphront-dialog-view-css' => 'bcecb316',
|
||||||
'aphront-error-view-css' => '93e81012',
|
'aphront-error-view-css' => 'bcecb316',
|
||||||
'aphront-form-view-css' => '93e81012',
|
'aphront-form-view-css' => 'bcecb316',
|
||||||
'aphront-list-filter-view-css' => '93e81012',
|
'aphront-list-filter-view-css' => 'bcecb316',
|
||||||
'aphront-pager-view-css' => '93e81012',
|
'aphront-pager-view-css' => 'bcecb316',
|
||||||
'aphront-panel-view-css' => '93e81012',
|
'aphront-panel-view-css' => 'bcecb316',
|
||||||
'aphront-table-view-css' => '93e81012',
|
'aphront-table-view-css' => 'bcecb316',
|
||||||
'aphront-tokenizer-control-css' => '93e81012',
|
'aphront-tokenizer-control-css' => 'bcecb316',
|
||||||
'aphront-tooltip-css' => '93e81012',
|
'aphront-tooltip-css' => 'bcecb316',
|
||||||
'aphront-typeahead-control-css' => '93e81012',
|
'aphront-typeahead-control-css' => 'bcecb316',
|
||||||
'differential-changeset-view-css' => '8aaacd1b',
|
'differential-changeset-view-css' => '8aaacd1b',
|
||||||
'differential-core-view-css' => '8aaacd1b',
|
'differential-core-view-css' => '8aaacd1b',
|
||||||
'differential-inline-comment-editor' => '322728f3',
|
'differential-inline-comment-editor' => '322728f3',
|
||||||
|
@ -3957,7 +3957,7 @@ celerity_register_resource_map(array(
|
||||||
'differential-table-of-contents-css' => '8aaacd1b',
|
'differential-table-of-contents-css' => '8aaacd1b',
|
||||||
'diffusion-commit-view-css' => 'c8ce2d88',
|
'diffusion-commit-view-css' => 'c8ce2d88',
|
||||||
'diffusion-icons-css' => 'c8ce2d88',
|
'diffusion-icons-css' => 'c8ce2d88',
|
||||||
'global-drag-and-drop-css' => '93e81012',
|
'global-drag-and-drop-css' => 'bcecb316',
|
||||||
'inline-comment-summary-css' => '8aaacd1b',
|
'inline-comment-summary-css' => '8aaacd1b',
|
||||||
'javelin-aphlict' => '95ceba95',
|
'javelin-aphlict' => '95ceba95',
|
||||||
'javelin-behavior' => 'fe22443b',
|
'javelin-behavior' => 'fe22443b',
|
||||||
|
@ -4029,48 +4029,48 @@ celerity_register_resource_map(array(
|
||||||
'javelin-util' => 'fe22443b',
|
'javelin-util' => 'fe22443b',
|
||||||
'javelin-vector' => 'fe22443b',
|
'javelin-vector' => 'fe22443b',
|
||||||
'javelin-workflow' => 'fe22443b',
|
'javelin-workflow' => 'fe22443b',
|
||||||
'lightbox-attachment-css' => '93e81012',
|
'lightbox-attachment-css' => 'bcecb316',
|
||||||
'maniphest-task-summary-css' => '6b1fccc6',
|
'maniphest-task-summary-css' => '6b1fccc6',
|
||||||
'maniphest-transaction-detail-css' => '6b1fccc6',
|
'maniphest-transaction-detail-css' => '6b1fccc6',
|
||||||
'phabricator-busy' => '95ceba95',
|
'phabricator-busy' => '95ceba95',
|
||||||
'phabricator-content-source-view-css' => '8aaacd1b',
|
'phabricator-content-source-view-css' => '8aaacd1b',
|
||||||
'phabricator-core-buttons-css' => '93e81012',
|
'phabricator-core-buttons-css' => 'bcecb316',
|
||||||
'phabricator-core-css' => '93e81012',
|
'phabricator-core-css' => 'bcecb316',
|
||||||
'phabricator-crumbs-view-css' => '93e81012',
|
'phabricator-crumbs-view-css' => 'bcecb316',
|
||||||
'phabricator-directory-css' => '93e81012',
|
'phabricator-directory-css' => 'bcecb316',
|
||||||
'phabricator-drag-and-drop-file-upload' => '322728f3',
|
'phabricator-drag-and-drop-file-upload' => '322728f3',
|
||||||
'phabricator-dropdown-menu' => '95ceba95',
|
'phabricator-dropdown-menu' => '95ceba95',
|
||||||
'phabricator-file-upload' => '95ceba95',
|
'phabricator-file-upload' => '95ceba95',
|
||||||
'phabricator-filetree-view-css' => '93e81012',
|
'phabricator-filetree-view-css' => 'bcecb316',
|
||||||
'phabricator-flag-css' => '93e81012',
|
'phabricator-flag-css' => 'bcecb316',
|
||||||
'phabricator-form-view-css' => '93e81012',
|
'phabricator-form-view-css' => 'bcecb316',
|
||||||
'phabricator-header-view-css' => '93e81012',
|
'phabricator-header-view-css' => 'bcecb316',
|
||||||
'phabricator-jump-nav' => '93e81012',
|
'phabricator-jump-nav' => 'bcecb316',
|
||||||
'phabricator-keyboard-shortcut' => '95ceba95',
|
'phabricator-keyboard-shortcut' => '95ceba95',
|
||||||
'phabricator-keyboard-shortcut-manager' => '95ceba95',
|
'phabricator-keyboard-shortcut-manager' => '95ceba95',
|
||||||
'phabricator-main-menu-view' => '93e81012',
|
'phabricator-main-menu-view' => 'bcecb316',
|
||||||
'phabricator-menu-item' => '95ceba95',
|
'phabricator-menu-item' => '95ceba95',
|
||||||
'phabricator-nav-view-css' => '93e81012',
|
'phabricator-nav-view-css' => 'bcecb316',
|
||||||
'phabricator-notification' => '95ceba95',
|
'phabricator-notification' => '95ceba95',
|
||||||
'phabricator-notification-css' => '93e81012',
|
'phabricator-notification-css' => 'bcecb316',
|
||||||
'phabricator-notification-menu-css' => '93e81012',
|
'phabricator-notification-menu-css' => 'bcecb316',
|
||||||
'phabricator-object-item-list-view-css' => '93e81012',
|
'phabricator-object-item-list-view-css' => 'bcecb316',
|
||||||
'phabricator-object-selector-css' => '8aaacd1b',
|
'phabricator-object-selector-css' => '8aaacd1b',
|
||||||
'phabricator-paste-file-upload' => '95ceba95',
|
'phabricator-paste-file-upload' => '95ceba95',
|
||||||
'phabricator-prefab' => '95ceba95',
|
'phabricator-prefab' => '95ceba95',
|
||||||
'phabricator-project-tag-css' => '6b1fccc6',
|
'phabricator-project-tag-css' => '6b1fccc6',
|
||||||
'phabricator-remarkup-css' => '93e81012',
|
'phabricator-remarkup-css' => 'bcecb316',
|
||||||
'phabricator-shaped-request' => '322728f3',
|
'phabricator-shaped-request' => '322728f3',
|
||||||
'phabricator-side-menu-view-css' => '93e81012',
|
'phabricator-side-menu-view-css' => 'bcecb316',
|
||||||
'phabricator-standard-page-view' => '93e81012',
|
'phabricator-standard-page-view' => 'bcecb316',
|
||||||
'phabricator-textareautils' => '95ceba95',
|
'phabricator-textareautils' => '95ceba95',
|
||||||
'phabricator-tooltip' => '95ceba95',
|
'phabricator-tooltip' => '95ceba95',
|
||||||
'phabricator-transaction-view-css' => '93e81012',
|
'phabricator-transaction-view-css' => 'bcecb316',
|
||||||
'phabricator-zindex-css' => '93e81012',
|
'phabricator-zindex-css' => 'bcecb316',
|
||||||
'sprite-apps-large-css' => '93e81012',
|
'sprite-apps-large-css' => 'bcecb316',
|
||||||
'sprite-gradient-css' => '93e81012',
|
'sprite-gradient-css' => 'bcecb316',
|
||||||
'sprite-icon-css' => '93e81012',
|
'sprite-icon-css' => 'bcecb316',
|
||||||
'sprite-menu-css' => '93e81012',
|
'sprite-menu-css' => 'bcecb316',
|
||||||
'syntax-highlighting-css' => '93e81012',
|
'syntax-highlighting-css' => 'bcecb316',
|
||||||
),
|
),
|
||||||
));
|
));
|
||||||
|
|
|
@ -65,13 +65,24 @@ final class DifferentialDiffCreateController extends DifferentialController {
|
||||||
|
|
||||||
$panel = new AphrontPanelView();
|
$panel = new AphrontPanelView();
|
||||||
$panel->setHeader(pht('Create New Diff'));
|
$panel->setHeader(pht('Create New Diff'));
|
||||||
|
$panel->setNoBackground();
|
||||||
$panel->appendChild($form);
|
$panel->appendChild($form);
|
||||||
$panel->setWidth(AphrontPanelView::WIDTH_FORM);
|
$panel->setWidth(AphrontPanelView::WIDTH_FORM);
|
||||||
|
|
||||||
return $this->buildStandardPageResponse(
|
$crumbs = $this->buildApplicationCrumbs();
|
||||||
$panel,
|
$crumbs->addCrumb(
|
||||||
|
id(new PhabricatorCrumbView())
|
||||||
|
->setName(pht('Create Diff'))
|
||||||
|
->setHref('/differential/diff/create/'));
|
||||||
|
|
||||||
|
return $this->buildApplicationPage(
|
||||||
|
array(
|
||||||
|
$crumbs,
|
||||||
|
$panel
|
||||||
|
),
|
||||||
array(
|
array(
|
||||||
'title' => pht('Create Diff'),
|
'title' => pht('Create Diff'),
|
||||||
|
'device' => true,
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -48,12 +48,8 @@ final class PhabricatorFileListController extends PhabricatorFileController {
|
||||||
$side_nav = $this->buildSideNavView();
|
$side_nav = $this->buildSideNavView();
|
||||||
$side_nav->selectFilter($this->getFilter());
|
$side_nav->selectFilter($this->getFilter());
|
||||||
|
|
||||||
$header_view = id(new PhabricatorHeaderView())
|
|
||||||
->setHeader($header);
|
|
||||||
|
|
||||||
$side_nav->appendChild(
|
$side_nav->appendChild(
|
||||||
array(
|
array(
|
||||||
$header_view,
|
|
||||||
$file_list,
|
$file_list,
|
||||||
$pager,
|
$pager,
|
||||||
new PhabricatorGlobalUploadTargetView(),
|
new PhabricatorGlobalUploadTargetView(),
|
||||||
|
@ -72,6 +68,7 @@ final class PhabricatorFileListController extends PhabricatorFileController {
|
||||||
array(
|
array(
|
||||||
'title' => 'Files',
|
'title' => 'Files',
|
||||||
'device' => true,
|
'device' => true,
|
||||||
|
'dust' => true,
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -39,7 +39,6 @@ final class PhabricatorFileUploadController extends PhabricatorFileController {
|
||||||
'desktop onto this page or the Phabricator home page.')));
|
'desktop onto this page or the Phabricator home page.')));
|
||||||
|
|
||||||
$form = id(new AphrontFormView())
|
$form = id(new AphrontFormView())
|
||||||
->setFlexible(true)
|
|
||||||
->setUser($user)
|
->setUser($user)
|
||||||
->setEncType('multipart/form-data')
|
->setEncType('multipart/form-data')
|
||||||
->appendChild(
|
->appendChild(
|
||||||
|
@ -68,9 +67,6 @@ final class PhabricatorFileUploadController extends PhabricatorFileController {
|
||||||
|
|
||||||
$title = pht('Upload File');
|
$title = pht('Upload File');
|
||||||
|
|
||||||
$header = id(new PhabricatorHeaderView())
|
|
||||||
->setHeader($title);
|
|
||||||
|
|
||||||
if ($errors) {
|
if ($errors) {
|
||||||
$errors = id(new AphrontErrorView())
|
$errors = id(new AphrontErrorView())
|
||||||
->setTitle(pht('Form Errors'))
|
->setTitle(pht('Form Errors'))
|
||||||
|
@ -80,12 +76,17 @@ final class PhabricatorFileUploadController extends PhabricatorFileController {
|
||||||
$global_upload = id(new PhabricatorGlobalUploadTargetView())
|
$global_upload = id(new PhabricatorGlobalUploadTargetView())
|
||||||
->setShowIfSupportedID($support_id);
|
->setShowIfSupportedID($support_id);
|
||||||
|
|
||||||
|
$panel = new AphrontPanelView();
|
||||||
|
$panel->setHeader(pht('New File Upload'));
|
||||||
|
$panel->setNoBackground();
|
||||||
|
$panel->appendChild($form);
|
||||||
|
$panel->setWidth(AphrontPanelView::WIDTH_FORM);
|
||||||
|
|
||||||
return $this->buildApplicationPage(
|
return $this->buildApplicationPage(
|
||||||
array(
|
array(
|
||||||
$crumbs,
|
$crumbs,
|
||||||
$header,
|
|
||||||
$errors,
|
$errors,
|
||||||
$form,
|
$panel,
|
||||||
$global_upload,
|
$global_upload,
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
|
|
|
@ -152,7 +152,6 @@ final class PhabricatorMacroEditController
|
||||||
}
|
}
|
||||||
|
|
||||||
$form = new AphrontFormView();
|
$form = new AphrontFormView();
|
||||||
$form->setFlexible(true);
|
|
||||||
$form->addHiddenInput('name_form', 1);
|
$form->addHiddenInput('name_form', 1);
|
||||||
$form->setUser($request->getUser());
|
$form->setUser($request->getUser());
|
||||||
|
|
||||||
|
@ -237,10 +236,6 @@ final class PhabricatorMacroEditController
|
||||||
->setHref($request->getRequestURI())
|
->setHref($request->getRequestURI())
|
||||||
->setName($crumb));
|
->setName($crumb));
|
||||||
|
|
||||||
$header = id(new PhabricatorHeaderView())
|
|
||||||
->setHeader($title);
|
|
||||||
|
|
||||||
|
|
||||||
$upload = null;
|
$upload = null;
|
||||||
if ($macro->getID()) {
|
if ($macro->getID()) {
|
||||||
$upload_header = id(new PhabricatorHeaderView())
|
$upload_header = id(new PhabricatorHeaderView())
|
||||||
|
@ -272,16 +267,22 @@ final class PhabricatorMacroEditController
|
||||||
$upload = array($upload_header, $upload_form);
|
$upload = array($upload_header, $upload_form);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$panel = new AphrontPanelView();
|
||||||
|
$panel->setHeader(pht('Create New Macro'));
|
||||||
|
$panel->setNoBackground();
|
||||||
|
$panel->appendChild($form);
|
||||||
|
$panel->setWidth(AphrontPanelView::WIDTH_FORM);
|
||||||
|
|
||||||
return $this->buildApplicationPage(
|
return $this->buildApplicationPage(
|
||||||
array(
|
array(
|
||||||
$crumbs,
|
$crumbs,
|
||||||
$header,
|
|
||||||
$error_view,
|
$error_view,
|
||||||
$form,
|
$panel,
|
||||||
$upload,
|
$upload,
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'title' => $title,
|
'title' => $title,
|
||||||
|
'device' => true,
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -340,7 +340,12 @@ final class ManiphestTaskDetailController extends ManiphestController {
|
||||||
$crumbs->addCrumb(
|
$crumbs->addCrumb(
|
||||||
id(new PhabricatorCrumbView())
|
id(new PhabricatorCrumbView())
|
||||||
->setName($object_name)
|
->setName($object_name)
|
||||||
->setHref('/'.$object_name));
|
->setHref('/'.$object_name))
|
||||||
|
->addAction(
|
||||||
|
id(new PhabricatorMenuItemView())
|
||||||
|
->setHref($this->getApplicationURI('/task/create/'))
|
||||||
|
->setName(pht('Create Task'))
|
||||||
|
->setIcon('create'));
|
||||||
|
|
||||||
$header = $this->buildHeaderView($task);
|
$header = $this->buildHeaderView($task);
|
||||||
$actions = $this->buildActionView($task);
|
$actions = $this->buildActionView($task);
|
||||||
|
|
|
@ -532,8 +532,20 @@ final class ManiphestTaskEditController extends ManiphestController {
|
||||||
$page_objects = array();
|
$page_objects = array();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$crumbs = $this->buildApplicationCrumbs();
|
||||||
|
$crumbs->addCrumb(
|
||||||
|
id(new PhabricatorCrumbView())
|
||||||
|
->setName($header_name)
|
||||||
|
->setHref($this->getApplicationURI('/task/create/')))
|
||||||
|
->addAction(
|
||||||
|
id(new PhabricatorMenuItemView())
|
||||||
|
->setHref($this->getApplicationURI('/task/create/'))
|
||||||
|
->setName(pht('Create Task'))
|
||||||
|
->setIcon('create'));
|
||||||
|
|
||||||
return $this->buildApplicationPage(
|
return $this->buildApplicationPage(
|
||||||
array(
|
array(
|
||||||
|
$crumbs,
|
||||||
$error_view,
|
$error_view,
|
||||||
$panel,
|
$panel,
|
||||||
$description_preview_panel,
|
$description_preview_panel,
|
||||||
|
|
|
@ -43,12 +43,8 @@ final class PhabricatorPasteListController extends PhabricatorPasteController {
|
||||||
$list->setPager($pager);
|
$list->setPager($pager);
|
||||||
$list->setNoDataString($nodata);
|
$list->setNoDataString($nodata);
|
||||||
|
|
||||||
$header = id(new PhabricatorHeaderView())
|
|
||||||
->setHeader($title);
|
|
||||||
|
|
||||||
$nav->appendChild(
|
$nav->appendChild(
|
||||||
array(
|
array(
|
||||||
$header,
|
|
||||||
$list,
|
$list,
|
||||||
));
|
));
|
||||||
|
|
||||||
|
@ -66,6 +62,7 @@ final class PhabricatorPasteListController extends PhabricatorPasteController {
|
||||||
array(
|
array(
|
||||||
'title' => $title,
|
'title' => $title,
|
||||||
'device' => true,
|
'device' => true,
|
||||||
|
'dust' => true,
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -36,13 +36,9 @@ final class PhluxListController extends PhluxController {
|
||||||
->setName($title)
|
->setName($title)
|
||||||
->setHref($this->getApplicationURI()));
|
->setHref($this->getApplicationURI()));
|
||||||
|
|
||||||
$header = id(new PhabricatorHeaderView())
|
|
||||||
->setHeader($title);
|
|
||||||
|
|
||||||
return $this->buildApplicationPage(
|
return $this->buildApplicationPage(
|
||||||
array(
|
array(
|
||||||
$crumbs,
|
$crumbs,
|
||||||
$header,
|
|
||||||
$view,
|
$view,
|
||||||
$pager,
|
$pager,
|
||||||
),
|
),
|
||||||
|
|
|
@ -219,11 +219,14 @@ final class PholioMockEditController extends PholioController {
|
||||||
->setName('can_view'))
|
->setName('can_view'))
|
||||||
->appendChild($submit);
|
->appendChild($submit);
|
||||||
|
|
||||||
$header = id(new PhabricatorHeaderView())
|
$crumbs = $this->buildApplicationCrumbs($this->buildSideNav());
|
||||||
->setHeader($title);
|
$crumbs->addCrumb(
|
||||||
|
id(new PhabricatorCrumbView())
|
||||||
|
->setName($title)
|
||||||
|
->setHref($this->getApplicationURI()));
|
||||||
|
|
||||||
$content = array(
|
$content = array(
|
||||||
$header,
|
$crumbs,
|
||||||
$error_view,
|
$error_view,
|
||||||
$form,
|
$form,
|
||||||
);
|
);
|
||||||
|
|
|
@ -123,12 +123,8 @@ final class PhabricatorProjectListController
|
||||||
$list->addItem($item);
|
$list->addItem($item);
|
||||||
}
|
}
|
||||||
|
|
||||||
$header = id(new PhabricatorHeaderView())
|
|
||||||
->setHeader($table_header);
|
|
||||||
|
|
||||||
$nav->appendChild(
|
$nav->appendChild(
|
||||||
array(
|
array(
|
||||||
$header,
|
|
||||||
$list,
|
$list,
|
||||||
$pager,
|
$pager,
|
||||||
));
|
));
|
||||||
|
|
|
@ -67,6 +67,8 @@ final class PhabricatorCrumbView extends AphrontView {
|
||||||
'class' => 'sprite-menu phabricator-crumb-divider',
|
'class' => 'sprite-menu phabricator-crumb-divider',
|
||||||
),
|
),
|
||||||
'');
|
'');
|
||||||
|
} else {
|
||||||
|
$classes[] = 'phabricator-last-crumb';
|
||||||
}
|
}
|
||||||
|
|
||||||
return phutil_tag(
|
return phutil_tag(
|
||||||
|
|
|
@ -37,6 +37,13 @@ final class PhabricatorCrumbsView extends AphrontView {
|
||||||
),
|
),
|
||||||
'');
|
'');
|
||||||
}
|
}
|
||||||
|
$name = phutil_tag(
|
||||||
|
'span',
|
||||||
|
array(
|
||||||
|
'class' => 'phabricator-crumbs-action-name'
|
||||||
|
),
|
||||||
|
$action->getName()
|
||||||
|
);
|
||||||
$actions[] = javelin_tag(
|
$actions[] = javelin_tag(
|
||||||
'a',
|
'a',
|
||||||
array(
|
array(
|
||||||
|
@ -46,7 +53,7 @@ final class PhabricatorCrumbsView extends AphrontView {
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
$icon,
|
$icon,
|
||||||
$action->getName(),
|
$name,
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2,10 +2,6 @@
|
||||||
* @provides phabricator-crumbs-view-css
|
* @provides phabricator-crumbs-view-css
|
||||||
*/
|
*/
|
||||||
|
|
||||||
.device .phabricator-crumbs-view {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.phabricator-crumbs-view {
|
.phabricator-crumbs-view {
|
||||||
background-color: #d8dce2;
|
background-color: #d8dce2;
|
||||||
height: 31px;
|
height: 31px;
|
||||||
|
@ -43,6 +39,15 @@
|
||||||
line-height: 31px;
|
line-height: 31px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.device-phone .phabricator-crumb-view {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.device-phone .phabricator-crumb-view.phabricator-last-crumb,
|
||||||
|
.device-phone .phabricator-crumb-view.phabricator-crumb-has-icon {
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
|
||||||
.phabricator-crumb-icon {
|
.phabricator-crumb-icon {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: 28px;
|
width: 28px;
|
||||||
|
@ -51,6 +56,10 @@
|
||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.device-phone .phabricator-crumb-icon {
|
||||||
|
margin-left: 7px;
|
||||||
|
}
|
||||||
|
|
||||||
.phabricator-crumbs-actions {
|
.phabricator-crumbs-actions {
|
||||||
float: right;
|
float: right;
|
||||||
}
|
}
|
||||||
|
@ -62,6 +71,19 @@
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.device-phone a.phabricator-crumbs-action {
|
||||||
|
padding: 13px 20px 4px 10px;
|
||||||
|
border-left: 1px solid #ccc;
|
||||||
|
}
|
||||||
|
|
||||||
|
.device-phone .phabricator-crumbs-action-name {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.device-phone a.phabricator-crumbs-action .sprite-icon {
|
||||||
|
margin-left: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
.phabricator-crumbs-action .sprite-icon {
|
.phabricator-crumbs-action .sprite-icon {
|
||||||
width: 14px;
|
width: 14px;
|
||||||
height: 14px;
|
height: 14px;
|
||||||
|
|
Loading…
Reference in a new issue