annotate app/main/unit/_head.lua @ 1087:3a344182f7a4
Added hook for logging admin activities
 | author | bsw | 
 | date | Fri Aug 15 12:44:33 2014 +0200 (2014-08-15) | 
 | parents | 701a5cf6b067 | 
 | children | 32cc544d5a5b | 
 
 | rev | line source | 
| bsw@525 | 1 local unit = param.get("unit", "table") | 
| bsw@529 | 2 | 
| bsw@1045 | 3 ui.title ( function () | 
| bsw@525 | 4 | 
| bsw@1045 | 5   ui.tag{ attr = { class = "unit" }, content = function() | 
| 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 = unit.name } | 
| bsw@1045 | 11       end, | 
| bsw@1045 | 12       module = "unit", view = "show", | 
| bsw@1045 | 13       id = unit.id | 
| bsw@1045 | 14     } | 
| bsw@525 | 15 | 
| bsw@1045 | 16     execute.view { | 
| bsw@1045 | 17       module = "delegation", view = "_info", params = { | 
| bsw@1045 | 18         unit = unit, member = member | 
| bsw@526 | 19       } | 
| bsw@1045 | 20     } | 
| bsw@1045 | 21 | 
| bsw@1045 | 22     if config.single_unit_id and not app.session.member_id and config.motd_public then | 
| bsw@1045 | 23       ui.container{ | 
| bsw@1045 | 24         attr = { class = "wiki motd" }, | 
| bsw@1045 | 25         content = function() | 
| bsw@1045 | 26           slot.put(config.motd_public) | 
| bsw@1045 | 27         end | 
| bsw@526 | 28       } | 
| bsw@526 | 29     end | 
| bsw@525 | 30   end } | 
| bsw@1045 | 31 | 
| bsw@1045 | 32 end ) |