1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-24 14:30:56 +01:00

Update various hard-coded URIs

Summary: Fixes T7918. Update hard-coded ApplicationSearch URIs for parameterized typeaheads.

Test Plan: Found all these links and clicked 'em. Probably.

Reviewers: btrahan, chad

Reviewed By: chad

Subscribers: epriestley

Maniphest Tasks: T7918

Differential Revision: https://secure.phabricator.com/D12554
This commit is contained in:
epriestley 2015-04-26 07:15:25 -07:00
parent 0ae08b394c
commit be14f75274
4 changed files with 7 additions and 11 deletions

View file

@ -148,8 +148,7 @@ final class PhabricatorHomeMainController extends PhabricatorHomeController {
} }
$href = urisprintf( $href = urisprintf(
'/maniphest/?statuses=%s&priorities=%s#R', '/maniphest/?statuses=open()&priorities=%s#R',
implode(',', ManiphestTaskStatus::getOpenStatusConstants()),
$unbreak_now); $unbreak_now);
$title = pht('Unbreak Now!'); $title = pht('Unbreak Now!');
$panel = new PHUIObjectBoxView(); $panel = new PHUIObjectBoxView();
@ -199,8 +198,7 @@ final class PhabricatorHomeMainController extends PhabricatorHomeController {
$title = pht('Needs Triage'); $title = pht('Needs Triage');
$href = urisprintf( $href = urisprintf(
'/maniphest/?statuses=%s&priorities=%s&userProjects=%s#R', '/maniphest/?statuses=open()&priorities=%s&projects=projects(%s)#R',
implode(',', ManiphestTaskStatus::getOpenStatusConstants()),
$needs_triage, $needs_triage,
$user->getPHID()); $user->getPHID());
$panel = new PHUIObjectBoxView(); $panel = new PHUIObjectBoxView();
@ -290,7 +288,7 @@ final class PhabricatorHomeMainController extends PhabricatorHomeController {
} }
$title = pht('Assigned Tasks'); $title = pht('Assigned Tasks');
$href = '/maniphest'; $href = '/maniphest/query/assigned/';
$panel = new PHUIObjectBoxView(); $panel = new PHUIObjectBoxView();
$panel->setHeader($this->renderSectionHeader($title, $href)); $panel->setHeader($this->renderSectionHeader($title, $href));
$panel->appendChild($this->buildTaskListView($tasks)); $panel->appendChild($this->buildTaskListView($tasks));

View file

@ -465,7 +465,7 @@ final class ManiphestReportController extends ManiphestController {
} }
} }
$base_link = '/maniphest/?allProjects='; $base_link = '/maniphest/?projects=';
$leftover_name = phutil_tag('em', array(), pht('(No Project)')); $leftover_name = phutil_tag('em', array(), pht('(No Project)'));
$col_header = pht('Project'); $col_header = pht('Project');
$header = pht('Open Tasks by Project and Priority (%s)', $date); $header = pht('Open Tasks by Project and Priority (%s)', $date);

View file

@ -70,8 +70,7 @@ abstract class PhabricatorPeopleController extends PhabricatorController {
if (PhabricatorApplication::isClassInstalledForViewer($class, $viewer)) { if (PhabricatorApplication::isClassInstalledForViewer($class, $viewer)) {
$phid = $user->getPHID(); $phid = $user->getPHID();
$view_uri = sprintf( $view_uri = sprintf(
'/maniphest/?statuses=%s&assigned=%s#R', '/maniphest/?statuses=open()&assigned=%s#R',
implode(',', ManiphestTaskStatus::getOpenStatusConstants()),
$phid); $phid);
$nav->addIcon( $nav->addIcon(
'maniphest', pht('Open Tasks'), 'fa-anchor', null, $view_uri); 'maniphest', pht('Open Tasks'), 'fa-anchor', null, $view_uri);

View file

@ -76,8 +76,7 @@ abstract class PhabricatorProjectController extends PhabricatorController {
if (PhabricatorApplication::isClassInstalledForViewer($class, $viewer)) { if (PhabricatorApplication::isClassInstalledForViewer($class, $viewer)) {
$phid = $project->getPHID(); $phid = $project->getPHID();
$query_uri = urisprintf( $query_uri = urisprintf(
'/maniphest/?statuses=%s&allProjects=%s#R', '/maniphest/?statuses=open()&projects=%s#R',
implode(',', ManiphestTaskStatus::getOpenStatusConstants()),
$phid); $phid);
$nav->addIcon(null, pht('Open Tasks'), 'fa-anchor', null, $query_uri); $nav->addIcon(null, pht('Open Tasks'), 'fa-anchor', null, $query_uri);
} }