Add "Open Revisions" builtin query for differential, and have links for both

code reviews and patches on welcome page.
This commit is contained in:
2013-11-21 19:04:46 +01:00
parent b8d42a7cc6
commit 0c80c9fead
2 changed files with 6 additions and 2 deletions

View File

@@ -199,6 +199,7 @@ final class DifferentialRevisionSearchEngine
$names['authored'] = pht('Authored');
}
$names['open'] = pht('Open Revisions');
$names['all'] = pht('All Revisions');
return $names;
@@ -218,6 +219,9 @@ final class DifferentialRevisionSearchEngine
case 'authored':
return $query
->setParameter('authorPHIDs', array($viewer->getPHID()));
case 'open':
return $query
->setParameter('status', DifferentialRevisionQuery::STATUS_OPEN);
case 'all':
return $query;
}

View File

@@ -4,8 +4,8 @@
<ul>
<li><a href="maniphest/project/2/type/Bug/">Browse Bugs</a></li>
<li><a class="button grey" href="maniphest/task/create/?project=2&type=Bug">Report Bug »</a></li>
<li><a href="maniphest/project/2/type/Patch/">Browse Patches</a></li>
<li><a class="button grey" href="differential/diff/create/">Submit Patch »</a></li>
<li><a href="differential/query/open/">Code Reviews</a> | <a href="maniphest/project/2/type/Patch/">Patches</a></li>
<li><a class="button grey" href="differential/diff/create/">Submit Code »</a></li>
</ul>
</div>