From 2f5c6b7b1199e653b7518e156050d3839abd5076 Mon Sep 17 00:00:00 2001 From: rubo77 Date: Sun, 13 Nov 2016 02:25:09 +0100 Subject: [PATCH] config-mode: link to gluon commit id on GitHub --- .../files/usr/lib/lua/luci/view/themes/gluon/header.htm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/package/gluon-luci-theme/files/usr/lib/lua/luci/view/themes/gluon/header.htm b/package/gluon-luci-theme/files/usr/lib/lua/luci/view/themes/gluon/header.htm index 7e894603..4e85dabb 100644 --- a/package/gluon-luci-theme/files/usr/lib/lua/luci/view/themes/gluon/header.htm +++ b/package/gluon-luci-theme/files/usr/lib/lua/luci/view/themes/gluon/header.htm @@ -23,6 +23,8 @@ $Id$ local hostname = pretty_hostname.get(uci) local release = fs.readfile("/lib/gluon/release") + local version = fs.readfile("/lib/gluon/gluon-version") + local commit = string.sub( version, -8, string.len(version)) local request = disp.context.path local request2 = disp.context.request @@ -123,6 +125,9 @@ $Id$ <% if release then %> / <%=gluon_luci.escape(release)%> <% end %> + <% if version then %> + / <%=gluon_luci.escape(version)%> + <% end %>