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>
-<%def name="render_feedback_button()">%def>
+<%def name="render_feedback_button()">
+ % if request.has_perm('common.feedback'):
+
+ % if user: + ${user} + % else: + ${user_name} + % endif +
+ + + + + +${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> +<%def name="make_wutta_request_mixin()"> + +%def> + <%def name="make_wutta_button_component()">