mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-29 02:02:41 +01:00
4699c29017
Summary: Fixes T7975. Long ago, this element looked like this when you expanded it: ``` +-------------------+ | 3 4 5 6 7 X | | 8 9 1 2 3 4 5 +---+ | 6 7 8 9 1 2 3 | | 4 5 6 7 | +---------------+ ``` That was why the icon needed a z-index. See T5880. @chad fixed this a while ago so it looks like this: ``` +---------------+ | 3 4 5 6 7 | X | 8 9 1 2 3 4 5 | | 6 7 8 9 1 2 3 | | 4 5 6 7 | +---------------+ ``` ...but we never stripped the z-index off, causing the bug in T7975. Also fix some collateral damage from the recent calendar refactoring and the Conpherence widget. Test Plan: - Created a new event via Conpherence - Created a new event normally. - Browsed a typeahead in Calendar without icons showing through. Reviewers: lpriestley, chad, btrahan Reviewed By: btrahan Subscribers: chad, epriestley Maniphest Tasks: T7975 Differential Revision: https://secure.phabricator.com/D12639
38 lines
1,023 B
PHP
38 lines
1,023 B
PHP
<?php
|
|
|
|
abstract class PhabricatorCalendarController extends PhabricatorController {
|
|
|
|
|
|
protected function buildSideNavView(PhabricatorCalendarEvent $status = null) {
|
|
$nav = new AphrontSideNavFilterView();
|
|
$nav->setBaseURI(new PhutilURI($this->getApplicationURI()));
|
|
|
|
$nav->addLabel(pht('Calendar'));
|
|
$nav->addFilter('/', pht('My Events'));
|
|
$nav->addFilter('all/', pht('View All'));
|
|
|
|
if ($status && $status->getID()) {
|
|
$nav->addFilter('event/edit/'.$status->getID().'/', pht('Edit Event'));
|
|
}
|
|
$nav->addFilter('event/', pht('Upcoming Events'));
|
|
|
|
return $nav;
|
|
}
|
|
|
|
public function buildApplicationMenu() {
|
|
return $this->buildSideNavView()->getMenu();
|
|
}
|
|
|
|
protected function buildApplicationCrumbs() {
|
|
$crumbs = parent::buildApplicationCrumbs();
|
|
|
|
$crumbs->addAction(
|
|
id(new PHUIListItemView())
|
|
->setName(pht('Create Event'))
|
|
->setHref($this->getApplicationURI().'event/create/')
|
|
->setIcon('fa-plus-square'));
|
|
|
|
return $crumbs;
|
|
}
|
|
|
|
}
|