diff --git a/app/views/feedback/bugs.haml b/app/views/feedback/bugs.haml index 60985f81..37ac54c9 100644 --- a/app/views/feedback/bugs.haml +++ b/app/views/feedback/bugs.haml @@ -1,11 +1,15 @@ -%div{ data: { canny: '' } } +%div{ data: { canny: "" } } %script - !function(w,d,i,s){function l(){if(!d.getElementById(i)){var f=d.getElementsByTagName(s)[0],e=d.createElement(s);e.type="text/javascript",e.async=!0,e.src="https://canny.io/sdk.js",f.parentNode.insertBefore(e,f)}}if("function"!=typeof w.Canny){var c=function(){c.q.push(arguments)};c.q=[],w.Canny=c,"complete"===d.readyState?l():w.attachEvent?w.attachEvent("onload",l):w.addEventListener("load",l,!1)}}(window,document,"canny-jssdk","script"); + !function(w,d,i,s){function l(){if(!d.getElementById(i)){var f=d.getElementsByTagName(s)[0],e=d.createElement(s); + e.type="text/javascript",e.async=!0,e.src="https://canny.io/sdk.js",f.parentNode.insertBefore(e,f)}} + if("function"!=typeof w.Canny){var c=function(){c.q.push(arguments)}; + c.q=[],w.Canny=c,"complete"===d.readyState?l():w.attachEvent?w.attachEvent("onload",l):w.addEventListener("load",l,!1)} + }(window,document,"canny-jssdk","script"); %script Canny('render', { boardToken: '#{APP_CONFIG['canny']['bug_board']}', ssoToken: '#{canny_token}', basePath: '/feedback/bugs' - }); \ No newline at end of file + }); diff --git a/app/views/feedback/consent.haml b/app/views/feedback/consent.haml index dc3e3b37..5e91de51 100644 --- a/app/views/feedback/consent.haml +++ b/app/views/feedback/consent.haml @@ -2,23 +2,23 @@ %h2 Notice %p - =APP_CONFIG['site_name'] + = APP_CONFIG["site_name"] uses Canny to collect feedback or bug reports on the following pages. %p - Canny collects the username, user ID and email address for these purposes. + Canny collects the username, user ID and email address for these purposes. Unless you specifically consent to this, - =APP_CONFIG['site_name'] + = APP_CONFIG["site_name"] will not send your data to Canny, but you can't use the feedback forms either. %p - %a.text-muted{ href: 'https://canny.io/privacy' } Canny's Privacy Policy + %a.text-muted{ href: "https://canny.io/privacy" } Canny's Privacy Policy %p - = button_to "Consent and proceed", feedback_consent_path, class: 'btn btn-primary', method: :post, params: { consent: true } + = button_to "Consent and proceed", feedback_consent_path, class: "btn btn-primary", method: :post, params: { consent: true } %p Alternatively, you can send us bug reports and feature requests directly on GitHub. %p - %a.btn.btn-outline-primary{ href: 'https://github.com/Retrospring/retrospring/issues' } GitHub Issues \ No newline at end of file + %a.btn.btn-outline-primary{ href: "https://github.com/Retrospring/retrospring/issues" } GitHub Issues diff --git a/app/views/feedback/features.haml b/app/views/feedback/features.haml index 15e3acfd..66154d03 100644 --- a/app/views/feedback/features.haml +++ b/app/views/feedback/features.haml @@ -1,11 +1,15 @@ -%div{ data: { canny: '' } } +%div{ data: { canny: "" } } %script - !function(w,d,i,s){function l(){if(!d.getElementById(i)){var f=d.getElementsByTagName(s)[0],e=d.createElement(s);e.type="text/javascript",e.async=!0,e.src="https://canny.io/sdk.js",f.parentNode.insertBefore(e,f)}}if("function"!=typeof w.Canny){var c=function(){c.q.push(arguments)};c.q=[],w.Canny=c,"complete"===d.readyState?l():w.attachEvent?w.attachEvent("onload",l):w.addEventListener("load",l,!1)}}(window,document,"canny-jssdk","script"); + !function(w,d,i,s){function l(){if(!d.getElementById(i)){var f=d.getElementsByTagName(s)[0],e=d.createElement(s); + e.type="text/javascript",e.async=!0,e.src="https://canny.io/sdk.js",f.parentNode.insertBefore(e,f)}} + if("function"!=typeof w.Canny){var c=function(){c.q.push(arguments)}; + c.q=[],w.Canny=c,"complete"===d.readyState?l():w.attachEvent?w.attachEvent("onload",l):w.addEventListener("load",l,!1)} + }(window,document,"canny-jssdk","script"); %script Canny('render', { boardToken: '#{APP_CONFIG['canny']['feature_board']}', ssoToken: '#{canny_token}', basePath: '/feedback/feature-requests' - }); \ No newline at end of file + }); diff --git a/app/views/layouts/feedback.haml b/app/views/layouts/feedback.haml index 4b6f34ad..6941130f 100644 --- a/app/views/layouts/feedback.haml +++ b/app/views/layouts/feedback.haml @@ -3,7 +3,7 @@ .jumbotron__content %h1 Feedback .container - - unless params[:action] === "consent" + - unless params[:action] == "consent" .card .list-group.list-group-horizontal-sm.text-center = list_group_item "Bugs", feedback_bugs_path @@ -13,4 +13,4 @@ = yield :ruby - parent_layout 'base' \ No newline at end of file + parent_layout "base"