Node.js based forum software built for the modern web
feat: add user ip to admin/dev/info
Barış Soner Uşaklı5e91a67e788f
diff --git a/public/language/en-GB/admin/development/info.json b/public/language/en-GB/admin/development/info.jsonindex c095a9718b..da7e6b547a 100644--- a/public/language/en-GB/admin/development/info.json+++ b/public/language/en-GB/admin/development/info.json@@ -1,5 +1,6 @@{- "you-are-on": "Info - You are on <strong>%1:%2</strong>",+ "you-are-on": "You are on <strong>%1:%2</strong>",+ "ip": "IP <strong>%1</strong>","nodes-responded": "%1 nodes responded within %2ms!","host": "host","pid": "pid",diff --git a/src/controllers/admin/info.js b/src/controllers/admin/info.jsindex 4a93fb2089..6a22d52160 100644--- a/src/controllers/admin/info.js+++ b/src/controllers/admin/info.js@@ -35,6 +35,7 @@ infoController.get = function (req, res) {port: nconf.get('port'),nodeCount: data.length,timeout: timeoutMS,+ ip: req.ip,});}, timeoutMS);};diff --git a/src/views/admin/development/info.tpl b/src/views/admin/development/info.tplindex 08e8472f94..a3a419ee35 100644--- a/src/views/admin/development/info.tpl+++ b/src/views/admin/development/info.tpl@@ -1,7 +1,7 @@<div class="info"><div class="panel panel-default"><div class="panel-heading">- <h3 class="panel-title">[[admin/development/info:you-are-on, {host}, {port}]]</h3>+ <h3 class="panel-title">[[admin/development/info:you-are-on, {host}, {port}]] • [[admin/development/info:ip, {ip}]]</h3></div><div class="panel-body">