liquid_feedback_frontend
diff app/main/draft/_head.lua @ 160:cc7650c7053f
better title for draft/show
add source view mode into show draft fixes bug #298
add source view mode into show draft fixes bug #298
author | Daniel Poelzleithner <poelzi@poelzi.org> |
---|---|
date | Sat Oct 09 04:25:11 2010 +0200 (2010-10-09) |
parents | |
children | 161cebfc44d4 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/app/main/draft/_head.lua Sat Oct 09 04:25:11 2010 +0200 1.3 @@ -0,0 +1,26 @@ 1.4 +local draft = param.get("draft", "table") 1.5 +local initiative = draft.initiative 1.6 +local issue = initiative.issue 1.7 + 1.8 +slot.select("title", function() 1.9 + ui.link{ 1.10 + content = issue.area.name, 1.11 + module = "area", 1.12 + view = "show", 1.13 + id = issue.area.id 1.14 + } 1.15 + slot.put(" · ") 1.16 + ui.link{ 1.17 + content = _("Issue ##{id}", { id = issue.id }), 1.18 + module = "issue", 1.19 + view = "show", 1.20 + id = issue.id 1.21 + } 1.22 + slot.put(" · ") 1.23 + ui.link{ 1.24 + content = _("Initiative: ")..initiative.name, 1.25 + module = "initiative", 1.26 + view = "show", 1.27 + id = initiative.id 1.28 + } 1.29 +end) 1.30 \ No newline at end of file