Krinkle has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/324650

Change subject: [WIP] Add link for more information about the ASN/ISP.
......................................................................

[WIP] Add link for more information about the ASN/ISP.

Change-Id: I572ba6e462e05c0839f86d35eb0d860dfc488660
---
M index.php
1 file changed, 5 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/labs/tools/guc 
refs/changes/50/324650/1

diff --git a/index.php b/index.php
index 21379a5..5c3b69a 100644
--- a/index.php
+++ b/index.php
@@ -152,8 +152,12 @@
                                 ? (' <tt>' . htmlspecialchars($info['host']) 
.'</tt>')
                                 : ''
                             ) . '</td>'
+                            . '<td>' . (isset($info['asn'])
+                                ? (' <a href="http://bgp.he.net/AS' . 
htmlspecialchars($info['asn']) . '#_whois" target="_blank" rel="noopener 
noreferrer">AS' . htmlspecialchars($info['asn']) . '</a>')
+                                : ''
+                            ) . '</td>'
                             . '<td>' . (isset($info['description'])
-                                ? (' ' . 
htmlspecialchars($info['description']))
+                                ? (' <a href="https://ipinfo.io/AS' . 
htmlspecialchars($info['asn']) . '" target="_blank" rel="noopener noreferrer">' 
. htmlspecialchars($info['description']) . '</a>')
                                 : ''
                             ) . '</td>'
                             . '<td>' . (isset($info['range'])

-- 
To view, visit https://gerrit.wikimedia.org/r/324650
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I572ba6e462e05c0839f86d35eb0d860dfc488660
Gerrit-PatchSet: 1
Gerrit-Project: labs/tools/guc
Gerrit-Branch: master
Gerrit-Owner: Krinkle <krinklem...@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to