annotate app/main/area/_head.lua @ 1400:e8e4396fd73c
Changed style of register image upload 10
author |
bsw |
date |
Mon Aug 13 19:37:22 2018 +0200 (2018-08-13) |
parents |
32cc544d5a5b |
children |
c061fea7ed10 |
rev |
line source |
bsw@525
|
1 local area = param.get("area", "table")
|
bsw@774
|
2 local member = param.get("member", "table")
|
bsw@525
|
3
|
bsw@1045
|
4 ui.title ( function ()
|
bsw@529
|
5
|
bsw@1045
|
6 -- unit link
|
bsw@1045
|
7 ui.link {
|
bsw@1045
|
8 attr = { class = "unit" },
|
bsw@1045
|
9 content = function()
|
bsw@1045
|
10 ui.tag{ attr = { class = "name" }, content = area.unit.name }
|
bsw@1045
|
11 end,
|
bsw@1045
|
12 module = "unit", view = "show",
|
bsw@1045
|
13 id = area.unit.id
|
bsw@1045
|
14 }
|
bsw@529
|
15
|
bsw@1045
|
16 ui.tag { attr = { class = "spacer" }, content = function()
|
bsw@1045
|
17 slot.put ( " ยป " )
|
bsw@1045
|
18 end }
|
bsw@525
|
19
|
bsw@1045
|
20 ui.tag { attr = { class = "area" }, content = function()
|
bsw@1045
|
21 -- area link
|
bsw@1045
|
22 ui.link {
|
bsw@1045
|
23 content = function()
|
bsw@1045
|
24 ui.tag{ attr = { class = "name" }, content = area.name }
|
bsw@1045
|
25 end,
|
bsw@1045
|
26 module = "area", view = "show",
|
bsw@1045
|
27 id = area.id
|
bsw@1045
|
28 }
|
bsw@1045
|
29
|
bsw@1045
|
30 slot.put ( " " )
|
bsw@525
|
31
|
bsw@1045
|
32 execute.view {
|
bsw@1045
|
33 module = "delegation", view = "_info", params = {
|
bsw@1045
|
34 area = area, member = member, for_title = true
|
bsw@1045
|
35 }
|
bsw@526
|
36 }
|
bsw@526
|
37 end }
|
bsw@526
|
38
|
bsw/jbe@1309
|
39 end )
|