diff --git a/src/wuttaweb/templates/base.mako b/src/wuttaweb/templates/base.mako index 3b3f115..dbad2e2 100644 --- a/src/wuttaweb/templates/base.mako +++ b/src/wuttaweb/templates/base.mako @@ -420,7 +420,153 @@ <%def name="render_theme_picker()"> -<%def name="render_feedback_button()"> +<%def name="render_feedback_button()"> + % if request.has_perm('common.feedback'): + + % endif + + +<%def name="render_vue_template_feedback()"> + + + +<%def name="render_vue_script_feedback()"> + + <%def name="render_vue_script_whole_page()"> + % if request.has_perm('common.feedback'): + + % endif <%def name="make_vue_app()"> diff --git a/src/wuttaweb/templates/temporary/feedback.html.mako b/src/wuttaweb/templates/temporary/feedback.html.mako new file mode 100644 index 0000000..c483f1a --- /dev/null +++ b/src/wuttaweb/templates/temporary/feedback.html.mako @@ -0,0 +1,40 @@ +## -*- coding: utf-8 -*- + + + + + +

User feedback from website

+ + +

+ % if user: + ${user} + % else: + ${user_name} + % endif +

+ + +

${referrer}

+ + +

${client_ip}

+ + +

${message}

+ + + diff --git a/src/wuttaweb/templates/temporary/feedback.txt.mako b/src/wuttaweb/templates/temporary/feedback.txt.mako new file mode 100644 index 0000000..b0d396a --- /dev/null +++ b/src/wuttaweb/templates/temporary/feedback.txt.mako @@ -0,0 +1,23 @@ +## -*- coding: utf-8; -*- + +# User feedback from website + +**User Name** + +% if user: + ${user} +% else: + ${user_name} +% endif + +**Referring URL** + +${referrer} + +**Client IP** + +${client_ip} + +**Message** + +${message} diff --git a/src/wuttaweb/templates/wutta-components.mako b/src/wuttaweb/templates/wutta-components.mako index 888944e..b52992e 100644 --- a/src/wuttaweb/templates/wutta-components.mako +++ b/src/wuttaweb/templates/wutta-components.mako @@ -1,10 +1,87 @@ <%def name="make_wutta_components()"> + ${self.make_wutta_request_mixin()} ${self.make_wutta_button_component()} ${self.make_wutta_filter_component()} ${self.make_wutta_filter_value_component()} +<%def name="make_wutta_request_mixin()"> + + + <%def name="make_wutta_button_component()">