1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-23 05:50:55 +01:00

Display closed documents with crossed text in search result.

Summary:
By default in search application document status field is "Open and Closed Documents".
Often searching with this default status I get confused that open and closed items in
search result are not distinguished.

Test Plan: Search and see open/closed issues distinguished.

Reviewers: chad, #blessed_reviewers, epriestley

Reviewed By: epriestley

CC: epriestley, aran, Korvin

Differential Revision: https://secure.phabricator.com/D7626
This commit is contained in:
Vasyl Vavrychuk 2013-11-25 20:05:36 -08:00 committed by epriestley
parent 6985c71117
commit e67302a4c9

View file

@ -53,7 +53,10 @@ final class PhabricatorSearchResultView extends AphrontView {
'');
}
$object_name = $handle->getFullName();
$title = $this->emboldenQuery($handle->getFullName());
if ($handle->getStatus() == PhabricatorObjectHandleStatus::STATUS_CLOSED) {
$title = phutil_tag('del', array(), $title);
}
return hsprintf(
'<div class="phabricator-search-result">'.
@ -71,7 +74,7 @@ final class PhabricatorSearchResultView extends AphrontView {
'class' => 'result-name',
'href' => $handle->getURI(),
),
$this->emboldenQuery($object_name)),
$title),
$type_name,
$link);
}