Fix HAML codestyle

This commit is contained in:
Andreas Nedbal 2022-01-22 08:17:09 +01:00 committed by Andreas Nedbal
parent 3711c676da
commit 4e9f83330b
4 changed files with 22 additions and 14 deletions

View File

@ -1,11 +1,15 @@
%div{ data: { canny: '' } } %div{ data: { canny: "" } }
%script %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 %script
Canny('render', { Canny('render', {
boardToken: '#{APP_CONFIG['canny']['bug_board']}', boardToken: '#{APP_CONFIG['canny']['bug_board']}',
ssoToken: '#{canny_token}', ssoToken: '#{canny_token}',
basePath: '/feedback/bugs' basePath: '/feedback/bugs'
}); });

View File

@ -2,23 +2,23 @@
%h2 Notice %h2 Notice
%p %p
=APP_CONFIG['site_name'] = APP_CONFIG["site_name"]
uses Canny to collect feedback or bug reports on the following pages. uses Canny to collect feedback or bug reports on the following pages.
%p %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, 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. will not send your data to Canny, but you can't use the feedback forms either.
%p %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 %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 %p
Alternatively, you can send us bug reports and feature requests directly on GitHub. Alternatively, you can send us bug reports and feature requests directly on GitHub.
%p %p
%a.btn.btn-outline-primary{ href: 'https://github.com/Retrospring/retrospring/issues' } GitHub Issues %a.btn.btn-outline-primary{ href: "https://github.com/Retrospring/retrospring/issues" } GitHub Issues

View File

@ -1,11 +1,15 @@
%div{ data: { canny: '' } } %div{ data: { canny: "" } }
%script %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 %script
Canny('render', { Canny('render', {
boardToken: '#{APP_CONFIG['canny']['feature_board']}', boardToken: '#{APP_CONFIG['canny']['feature_board']}',
ssoToken: '#{canny_token}', ssoToken: '#{canny_token}',
basePath: '/feedback/feature-requests' basePath: '/feedback/feature-requests'
}); });

View File

@ -3,7 +3,7 @@
.jumbotron__content .jumbotron__content
%h1 Feedback %h1 Feedback
.container .container
- unless params[:action] === "consent" - unless params[:action] == "consent"
.card .card
.list-group.list-group-horizontal-sm.text-center .list-group.list-group-horizontal-sm.text-center
= list_group_item "Bugs", feedback_bugs_path = list_group_item "Bugs", feedback_bugs_path
@ -13,4 +13,4 @@
= yield = yield
:ruby :ruby
parent_layout 'base' parent_layout "base"