# HG changeset patch # User bsw/jbe # Date 1260442800 -3600 # Node ID 80c215dbf076ef6430db88047372e57893dba2a3 # Parent 768faea1096db7ad6f07873029c59069ce4b256d Version alpha5 Many optical changes and improved usability Support for different wiki-formatting-engines Help system diff -r 768faea1096d -r 80c215dbf076 app/main/_filter_view/30_navigation.lua --- a/app/main/_filter_view/30_navigation.lua Mon Nov 30 12:00:00 2009 +0100 +++ b/app/main/_filter_view/30_navigation.lua Thu Dec 10 12:00:00 2009 +0100 @@ -71,6 +71,15 @@ view = 'about' } + ui.link{ + content = function() + ui.image{ static = "icons/16/bug.png" } + slot.put(_'Bug report') + end, + external = "http://trac.public-software-group.org/projects/lf" --/newticket?description=" .. encode.url_part("\n\n\n\nReport for: " .. os.getenv("REQUEST_URI") ) + } + + if app.session.member.admin then slot.put(" ") @@ -89,6 +98,12 @@ end) +if config.app_logo then + slot.select("logo", function() + ui.image{ static = config.app_logo } + end) +end + execute.inner() diff -r 768faea1096d -r 80c215dbf076 app/main/_filter_view/33_help_hidden.lua --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/main/_filter_view/33_help_hidden.lua Thu Dec 10 12:00:00 2009 +0100 @@ -0,0 +1,36 @@ +execute.inner() + +if util._hidden_helps ~= nil then + slot.select("help_hidden", function() + for i, help in ipairs(util._hidden_helps) do + ui.link{ + attr = { + class = "help_hidden", + title = _("Help for: #{text}", { text = help.title }) + }, + module = "help", + action = "update", + params = { + help_ident = help.id, + hide = false + }, + routing = { + default = { + mode = "redirect", + module = request.get_module(), + view = request.get_view(), + id = param.get_id_cgi(), + params = param.get_all_cgi() + } + }, + content = function() + ui.image{ + attr = { class = "help_icon" }, + static = "icons/16/help.png" + } + end + } + end + end) +end + diff -r 768faea1096d -r 80c215dbf076 app/main/_layout/default.html --- a/app/main/_layout/default.html Mon Nov 30 12:00:00 2009 +0100 +++ b/app/main/_layout/default.html Thu Dec 10 12:00:00 2009 +0100 @@ -18,29 +18,47 @@ +