Page MenuHomePhabricator

D16620.id40011.diff
No OneTemporary

D16620.id40011.diff

diff --git a/src/applications/people/view/PhabricatorUserLogView.php b/src/applications/people/view/PhabricatorUserLogView.php
--- a/src/applications/people/view/PhabricatorUserLogView.php
+++ b/src/applications/people/view/PhabricatorUserLogView.php
@@ -29,25 +29,35 @@
$viewer = $this->getUser();
$action_map = PhabricatorUserLog::getActionTypeMap();
- $base_uri = $this->searchBaseURI;
+ $base_uri = PhabricatorEnv::getEnvConfig('phabricator.base-uri');
+ $search_base_uri = $this->searchBaseURI;
$rows = array();
foreach ($logs as $log) {
-
+ $username = $handles[$log->getUserPHID()]->getName();
$ip = $log->getRemoteAddr();
$session = substr($log->getSession(), 0, 6);
if ($base_uri) {
+ $username = phutil_tag(
+ 'a',
+ array(
+ 'href' => $base_uri.'/p/'.$username,
+ ),
+ $username);
+ }
+
+ if ($search_base_uri) {
$ip = phutil_tag(
'a',
array(
- 'href' => $base_uri.'?ip='.$ip.'#R',
+ 'href' => $search_base_uri.'?ip='.$ip.'#R',
),
$ip);
$session = phutil_tag(
'a',
array(
- 'href' => $base_uri.'?sessions='.$ip.'#R',
+ 'href' => $search_base_uri.'?sessions='.$ip.'#R',
),
$session);
}
@@ -62,7 +72,7 @@
$log->getActorPHID()
? $handles[$log->getActorPHID()]->getName()
: null,
- $handles[$log->getUserPHID()]->getName(),
+ $username,
$ip,
$session,
);

File Metadata

Mime Type
text/plain
Expires
Oct 17 2024, 7:40 AM (4 w, 4 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6721197
Default Alt Text
D16620.id40011.diff (1 KB)

Event Timeline