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:
parent
6985c71117
commit
e67302a4c9
1 changed files with 5 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue