Fix some Maniphest links

Summary: A few things link to old URIs for Maniphest, update them.

Test Plan: Clicked all the things.

Reviewers: chad, btrahan

Reviewed By: chad

CC: aran

Differential Revision: https://secure.phabricator.com/D6989
This commit is contained in:
epriestley 2013-09-13 16:56:21 -07:00
parent ba37594362
commit c6ea59ae0d
7 changed files with 16 additions and 36 deletions

View file

@ -3367,7 +3367,7 @@ celerity_register_resource_map(array(
), ),
'phabricator-project-tag-css' => 'phabricator-project-tag-css' =>
array( array(
'uri' => '/res/ebe357eb/rsrc/css/application/projects/project-tag.css', 'uri' => '/res/535b8b7a/rsrc/css/application/projects/project-tag.css',
'type' => 'css', 'type' => 'css',
'requires' => 'requires' =>
array( array(
@ -4380,7 +4380,7 @@ celerity_register_resource_map(array(
'uri' => '/res/pkg/f32597c9/javelin.pkg.js', 'uri' => '/res/pkg/f32597c9/javelin.pkg.js',
'type' => 'js', 'type' => 'js',
), ),
'ad2ed1da' => '36d5d071' =>
array( array(
'name' => 'maniphest.pkg.css', 'name' => 'maniphest.pkg.css',
'symbols' => 'symbols' =>
@ -4389,7 +4389,7 @@ celerity_register_resource_map(array(
1 => 'maniphest-transaction-detail-css', 1 => 'maniphest-transaction-detail-css',
2 => 'phabricator-project-tag-css', 2 => 'phabricator-project-tag-css',
), ),
'uri' => '/res/pkg/ad2ed1da/maniphest.pkg.css', 'uri' => '/res/pkg/36d5d071/maniphest.pkg.css',
'type' => 'css', 'type' => 'css',
), ),
'83a3853e' => '83a3853e' =>
@ -4505,8 +4505,8 @@ celerity_register_resource_map(array(
'javelin-vector' => 'f32597c9', 'javelin-vector' => 'f32597c9',
'javelin-workflow' => 'f32597c9', 'javelin-workflow' => 'f32597c9',
'lightbox-attachment-css' => '606d1ed1', 'lightbox-attachment-css' => '606d1ed1',
'maniphest-task-summary-css' => 'ad2ed1da', 'maniphest-task-summary-css' => '36d5d071',
'maniphest-transaction-detail-css' => 'ad2ed1da', 'maniphest-transaction-detail-css' => '36d5d071',
'phabricator-action-list-view-css' => '606d1ed1', 'phabricator-action-list-view-css' => '606d1ed1',
'phabricator-application-launch-view-css' => '606d1ed1', 'phabricator-application-launch-view-css' => '606d1ed1',
'phabricator-busy' => '8977e356', 'phabricator-busy' => '8977e356',
@ -4532,7 +4532,7 @@ celerity_register_resource_map(array(
'phabricator-object-selector-css' => '44bfe40c', 'phabricator-object-selector-css' => '44bfe40c',
'phabricator-phtize' => '8977e356', 'phabricator-phtize' => '8977e356',
'phabricator-prefab' => '8977e356', 'phabricator-prefab' => '8977e356',
'phabricator-project-tag-css' => 'ad2ed1da', 'phabricator-project-tag-css' => '36d5d071',
'phabricator-property-list-view-css' => '606d1ed1', 'phabricator-property-list-view-css' => '606d1ed1',
'phabricator-remarkup-css' => '606d1ed1', 'phabricator-remarkup-css' => '606d1ed1',
'phabricator-shaped-request' => '5e9e5c4e', 'phabricator-shaped-request' => '5e9e5c4e',

View file

@ -21,7 +21,7 @@ abstract class ManiphestController extends PhabricatorController {
->addNavigationItems($nav->getMenu()); ->addNavigationItems($nav->getMenu());
$nav->addLabel(pht('Reports')); $nav->addLabel(pht('Reports'));
$nav->addFilter('reports', pht('Reports'), 'report/'); $nav->addFilter('report', pht('Reports'));
$nav->selectFilter(null); $nav->selectFilter(null);

View file

@ -411,13 +411,8 @@ final class ManiphestReportController extends ManiphestController {
$leftover_closed = idx($result_closed, '', array()); $leftover_closed = idx($result_closed, '', array());
unset($result_closed['']); unset($result_closed['']);
$base_link = '/maniphest/?users='; $base_link = '/maniphest/?assigned=';
$leftover_name = phutil_tag( $leftover_name = phutil_tag('em', array(), pht('(Up For Grabs)'));
'a',
array(
'href' => $base_link.ManiphestTaskOwner::OWNER_UP_FOR_GRABS,
),
phutil_tag('em', array(), pht('(Up For Grabs)')));
$col_header = pht('User'); $col_header = pht('User');
$header = pht('Open Tasks by User and Priority (%s)', $date); $header = pht('Open Tasks by User and Priority (%s)', $date);
break; break;
@ -448,13 +443,8 @@ final class ManiphestReportController extends ManiphestController {
} }
} }
$base_link = '/maniphest/view/all/?projects='; $base_link = '/maniphest/?allProjects[]=';
$leftover_name = phutil_tag( $leftover_name = phutil_tag('em', array(), pht('(No Project)'));
'a',
array(
'href' => $base_link.ManiphestTaskOwner::PROJECT_NO_PROJECT,
),
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);
break; break;

View file

@ -24,10 +24,10 @@ final class ManiphestPeopleMenuEventListener extends PhutilEventListener {
$object = $event->getValue('object'); $object = $event->getValue('object');
if ($object instanceof PhabricatorUser) { if ($object instanceof PhabricatorUser) {
$href = '/maniphest/view/action/?users='.$object->getPHID(); $href = '/maniphest/?assigned='.$object->getPHID();
$actions[] = $action->setHref($href); $actions[] = $action->setHref($href);
} else if ($object instanceof PhabricatorProject) { } else if ($object instanceof PhabricatorProject) {
$href = '/maniphest/view/all/?projects='.$object->getPHID(); $href = '/maniphest/?allProjects[]='.$object->getPHID();
$actions[] = $action->setHref($href); $actions[] = $action->setHref($href);
$actions[] = id(new PhabricatorActionView()) $actions[] = id(new PhabricatorActionView())

View file

@ -32,11 +32,9 @@ final class ManiphestTaskProjectsView extends ManiphestView {
} }
} else { } else {
$tags[] = phutil_tag( $tags[] = phutil_tag(
'a', 'span',
array( array(
'class' => 'phabricator-project-tag phabricator-project-tag-grey', 'class' => 'phabricator-project-tag phabricator-project-tag-grey',
'href' => '/maniphest/view/all/?s&projects='.
ManiphestTaskOwner::PROJECT_NO_PROJECT
), ),
pht('No Project')); pht('No Project'));
} }

View file

@ -177,24 +177,15 @@ final class PhabricatorProjectProfileController
$open = number_format($count); $open = number_format($count);
$more_link = phutil_tag(
'a',
array(
'href' => '/maniphest/view/all/?projects='.$project->getPHID(),
),
pht("View All Open Tasks \xC2\xBB"));
$content = hsprintf( $content = hsprintf(
'<div class="phabricator-profile-info-group profile-wrap-responsive"> '<div class="phabricator-profile-info-group profile-wrap-responsive">
<h1 class="phabricator-profile-info-header">%s</h1>'. <h1 class="phabricator-profile-info-header">%s</h1>'.
'<div class="phabricator-profile-info-pane">'. '<div class="phabricator-profile-info-pane">'.
'%s'. '%s'.
'<div class="phabricator-profile-info-pane-more-link">%s</div>'.
'</div> '</div>
</div>', </div>',
pht('Open Tasks (%s)', $open), pht('Open Tasks (%s)', $open),
$task_list, $task_list);
$more_link);
return $content; return $content;
} }

View file

@ -27,6 +27,7 @@
border: 1px solid #ccc; border: 1px solid #ccc;
background: #f7f7f7; background: #f7f7f7;
color: {$lightgreytext}; color: {$lightgreytext};
cursor: default;
} }
.phabricator-project-tag.phabricator-project-tag-grey:hover { .phabricator-project-tag.phabricator-project-tag-grey:hover {