PageRenderTime 15ms CodeModel.GetById 11ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/modules/mod_survey/dispatch/survey

http://github.com/zotonic/zotonic
#! | 15 lines | 11 code | 4 blank | 0 comment | 0 complexity | 8cb418672624c7c0da76bcdaf15d614f MD5 | raw file
 1%% -*- mode: erlang -*-
 2[
 3 {survey_results_download,  ["survey", "results", "download", id],  controller_export_resource, [ {content_type, xlsx} ]},
 4 {survey_results_download,  ["survey", "results", "download", type, id], controller_export_resource, []},
 5
 6 {survey_results_printable, ["survey", "results", "printable", id],  controller_page, [ {acl_action, update}, {is_canonical, false}, {template, "survey_results_printable.tpl"} ]},
 7 
 8 {survey_results, ["survey", "results", id],       controller_page, [ {is_canonical, false}, {template, "survey_results.tpl"} ]},
 9 {survey_results, ["survey", "results", id, slug], controller_page, [ {is_canonical, false}, {template, "survey_results.tpl"} ]},
10 
11 {survey, ["survey", id],       controller_page, [ {template, "survey.tpl"} ]},
12 {survey, ["survey", id, slug], controller_page, [ {template, "survey.tpl"} ]},
13 
14 {admin_survey_editor, ["admin", "survey", id], controller_admin, [{acl, {use, mod_survey}}, {template, "admin_survey_editor.tpl"}]}
15].