I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Unverified Commit ee055dbd authored by zzz's avatar zzz
Browse files

Console: Add git rev to version info

parent 33a07f81
No related branches found
No related tags found
No related merge requests found
......@@ -224,6 +224,13 @@ public class LogsHelper extends HelperBase {
return getAtt("Build-Date");
}
/**
* @since 0.9.58
*/
public String getRevision() {
return getAtt("Base-Revision");
}
/**
* @since 0.9.58 pulled out from above
*/
......
......@@ -54,7 +54,13 @@
%><tr><td><b>Encoding:</b></td><td><%=System.getProperty("file.encoding")%></td></tr>
<tr><td><b>Charset:</b></td><td><%=java.nio.charset.Charset.defaultCharset().name()%></td></tr>
<tr><td><b>Service:</b></td><td><%=net.i2p.util.SystemVersion.isService()%></td></tr>
<tr><td><b>Built:</b></td><td><jsp:getProperty name="logsHelper" property="buildDate" /></td></tr>
<%
String rev = logsHelper.getRevision();
if (rev.length() == 40) {
%><tr><td><b>Revision:</b></td><td><%=rev%></td></tr>
<%
}
%><tr><td><b>Built:</b></td><td><jsp:getProperty name="logsHelper" property="buildDate" /></td></tr>
<tr><td><b>Built By:</b></td><td><jsp:getProperty name="logsHelper" property="builtBy" /></td></tr></tbody></table>
<h3 class="tabletitle"><%=intl._t("Critical Logs")%><%
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment