annotate app/main/area/show.lua @ 627:25a7c9139299
Fix in german translation
 | author | 
 bsw | 
 | date | 
 Mon Jun 25 16:46:21 2012 +0200 (2012-06-25) | 
 | parents | 
 5ca9de94cb13  | 
 | children | 
 f52f918b38b8  | 
 
 | rev | 
   line source | 
| 
bsw@197
 | 
     1 local area = Area:by_id(param.get_id())
 | 
| 
bsw@197
 | 
     2 
 | 
| 
bsw/jbe@0
 | 
     3 
 | 
| 
jorges@103
 | 
     4 app.html_title.title = area.name
 | 
| 
jorges@103
 | 
     5 app.html_title.subtitle = _("Area")
 | 
| 
jorges@103
 | 
     6 
 | 
| 
bsw@197
 | 
     7 util.help("area.show")
 | 
| 
bsw@197
 | 
     8 
 | 
| 
bsw@197
 | 
     9 
 | 
| 
bsw/jbe@52
 | 
    10 if config.feature_rss_enabled then
 | 
| 
bsw/jbe@52
 | 
    11   util.html_rss_head{ title = _"Initiatives in this area (last created first)", module = "initiative", view = "list_rss", params = { area_id = area.id } }
 | 
| 
bsw/jbe@52
 | 
    12   util.html_rss_head{ title = _"Initiatives in this area (last updated first)", module = "initiative", view = "list_rss", params = { area_id = area.id } }
 | 
| 
bsw/jbe@52
 | 
    13 end
 | 
| 
bsw/jbe@52
 | 
    14 
 | 
| 
bsw@197
 | 
    15 
 | 
| 
bsw@526
 | 
    16 slot.select("head", function()
 | 
| 
bsw@529
 | 
    17   execute.view{ module = "area", view = "_head", params = { area = area, show_content = true } }
 | 
| 
bsw@526
 | 
    18 end)
 | 
| 
bsw/jbe@0
 | 
    19 
 | 
| 
bsw/jbe@0
 | 
    20 ui.container{
 | 
| 
bsw/jbe@0
 | 
    21   attr = { class = "vertical"},
 | 
| 
bsw/jbe@0
 | 
    22   content = function()
 | 
| 
bsw/jbe@0
 | 
    23     ui.field.text{ value = area.description }
 | 
| 
bsw/jbe@0
 | 
    24   end
 | 
| 
bsw/jbe@0
 | 
    25 }
 | 
| 
bsw/jbe@0
 | 
    26 
 | 
| 
bsw@197
 | 
    27 
 | 
| 
bsw@271
 | 
    28 
 | 
| 
bsw/jbe@0
 | 
    29 
 | 
| 
bsw@277
 | 
    30 if app.session.member then
 | 
| 
bsw@277
 | 
    31   execute.view{
 | 
| 
bsw@277
 | 
    32     module = "area",
 | 
| 
bsw@277
 | 
    33     view = "show_tab",
 | 
| 
bsw@277
 | 
    34     params = { area = area }
 | 
| 
bsw@277
 | 
    35   }
 | 
| 
bsw@277
 | 
    36 else
 | 
| 
bsw@277
 | 
    37   execute.view{
 | 
| 
bsw@277
 | 
    38     module = "issue",
 | 
| 
bsw@277
 | 
    39     view = "_list",
 | 
| 
bsw@277
 | 
    40     params = {
 | 
| 
bsw@277
 | 
    41       issues_selector = area:get_reference_selector("issues"),
 | 
| 
bsw@277
 | 
    42       filter = cgi.params["filter"],
 | 
| 
bsw@277
 | 
    43       filter_voting = param.get("filter_voting"),
 | 
| 
bsw@277
 | 
    44       for_area_list = true
 | 
| 
bsw@277
 | 
    45     }
 | 
| 
bsw@277
 | 
    46   }
 | 
| 
bsw@277
 | 
    47 end
 |