minibar: include the grammar's last modification in the grammar info shown by the "i" button

Also bumped version number in gf.cabal to 3.6-darcs.
Also removed some unecessary use of CPP.
This commit is contained in:
hallgren
2014-06-24 13:59:09 +00:00
parent b429086b2f
commit 93ba5b7b37
4 changed files with 8 additions and 21 deletions

View File

@@ -244,8 +244,13 @@ Minibar.prototype.show_grammarinfo=function() {
var btn=button("More info",more)
clear(t.translations.main)
var hdr=[text(g.name)]
if(g.lastmodified) {
hdr.push(text(" "))
hdr.push(wrap("small",text("("+g.lastmodified+")")))
}
appendChildren(this.translations.main,
[wrap("h3",text(g.name)),
[wrap("h3",hdr),
btn,
wrap("h4",text("Start category")), text(g.startcat || ""),
wrap("h4",text("Categories")), cats,