liquid_feedback_frontend
diff app/main/index/document.lua @ 402:a42bc1f0ed45
Support to show documents inline instead of downloading
author | bsw |
---|---|
date | Wed Mar 07 19:30:52 2012 +0100 (2012-03-07) |
parents | 08ba83dd47c0 |
children | f49cdfb72567 |
line diff
1.1 --- a/app/main/index/document.lua Wed Mar 07 19:07:20 2012 +0100 1.2 +++ b/app/main/index/document.lua Wed Mar 07 19:30:52 2012 +0100 1.3 @@ -46,6 +46,13 @@ 1.4 view = "document_file", 1.5 params = { filename = filename } 1.6 } 1.7 + slot.put(" ") 1.8 + ui.link{ 1.9 + content = _"Show", 1.10 + module = "index", 1.11 + view = "document_file", 1.12 + params = { filename = filename, inline = true } 1.13 + } 1.14 end 1.15 } 1.16 }