Added git information to website

(cherry picked from commit 1caba2d)
This commit is contained in:
Gina Häußge committed 2013-06-29 13:46:12 +02:00
1 parent dd3e9030fa
commit e2bfdfd10c
4 files changed
+45 -10

No files matched your search

+4 -1
View File
@@ -111,6 +111,7 @@ class PrinterStateConnection(tornadio2.SocketConnection):
@app.route("/")
def index():
branch, commit = util.getGitInfo()
return render_template(
"index.jinja2",
ajaxBaseUrl=BASEURL,
@@ -119,7 +120,9 @@ def index():
enableGCodeVisualizer=settings().get(["feature", "gCodeVisualizer"]),
enableSystemMenu=settings().get(["system"]) is not None and settings().get(["system", "actions"]) is not None and len(settings().get(["system", "actions"])) > 0,
enableAccessControl=userManager is not None,
enableSdSupport=settings().get(["feature", "sdSupport"])
enableSdSupport=settings().get(["feature", "sdSupport"]),
gitBranch=branch,
gitCommit=commit
)
#~~ Printer control