From 2b6ae9ad99f59eb29644675dd19e5bed260c0655 Mon Sep 17 00:00:00 2001 From: Joe Biellik Date: Sun, 26 Jul 2020 17:40:28 +0100 Subject: [PATCH] Cleanup lint --- views/highlight.pug | 3 +-- views/index.pug | 16 ++++++++-------- views/layout.pug | 2 +- 3 files changed, 10 insertions(+), 11 deletions(-) diff --git a/views/highlight.pug b/views/highlight.pug index 0c4fcbc..958c2a2 100644 --- a/views/highlight.pug +++ b/views/highlight.pug @@ -50,8 +50,7 @@ block head block content pre.line-numbers - code(class='language-' + lang) - | #{paste} + code(class='language-' + lang)= paste script(src='https://cdnjs.cloudflare.com/ajax/libs/prism/1.20.0/prism.min.js' integrity='sha256-3teItwIfMuVB74Alnxw/y5HAZ2irOsCULFff3EgbtEs=' crossorigin='anonymous') script(src='https://cdnjs.cloudflare.com/ajax/libs/prism/1.20.0/components/prism-' + lang + '.min.js') diff --git a/views/index.pug b/views/index.pug index c4c963d..4ecbb8c 100644 --- a/views/index.pug +++ b/views/index.pug @@ -88,26 +88,26 @@ block content img(src='https://s3.amazonaws.com/github/ribbons/forkme_right_gray_6d6d6d.png' alt='Fork me on GitHub') main.container.py-3.pt-sm-5.pb-md-5 - h1.display-3 #{title} + h1.display-3= title form(action='/?redirect' method='POST' accept-charset='UTF-8') - label.sr-only(for="paste") Paste content + label.sr-only(for='paste') Paste content textarea#paste.my-3.my-sm-5.form-control(name='paste' rows='10' required autofocus) .row .col-12.col-md-9.mb-3.mb-sm-4.clearfix - label.d-block.float-sm-left(for="highlight") Highlight - select#highlight.custom-select.float-sm-left(name='highlight' data-live-search='true' data-style='text-dark border-gray' data-styleBase='custom-select') + label.d-block.float-sm-left(for='highlight') Highlight + select#highlight.custom-select.float-sm-left(name='highlight' data-live-search='true' data-style='text-dark border-gray' data-stylebase='custom-select') each val, key in highlights - option(value=key data-tokens=(val.alias || []).join(' ') || false) #{val.name} + option(value=key data-tokens=(val.alias || []).join(' ') || false)= val.name .col-md-9.col-sm-12.mb-3.clearfix - label.d-block.float-sm-left(for="expire") Expiry + label.d-block.float-sm-left(for='expire') Expiry input#expire.mr-3.form-control.text-center.float-sm-left(name='expire' type='text' value=expires.default.value required) - label.sr-only(for="multiplier") Expiry multiplier + label.sr-only(for='multiplier') Expiry multiplier select#multiplier.custom-select.float-sm-left(name='multiplier' required) each val, key in expires.multipliers - option(value=key selected=key == expires.default.multiplier) #{val} + option(value=key selected=key == expires.default.multiplier)= val .col-12.col-md-3.mb-3.text-md-right button.btn.btn-primary.btn-lg(type='submit') Upload diff --git a/views/layout.pug b/views/layout.pug index 828ee4c..99a0ad9 100644 --- a/views/layout.pug +++ b/views/layout.pug @@ -3,7 +3,7 @@ html(lang='en') head meta(charset='utf-8') meta(name='viewport' content='width=device-width, initial-scale=1, shrink-to-fit=no') - title #{title} + title= title link(rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.5.0/css/bootstrap.min.css' integrity='sha256-aAr2Zpq8MZ+YA/D6JtRD3xtrwpEz2IqOS+pWD/7XKIw=' crossorigin='anonymous') link(rel='stylesheet' href='https://fonts.googleapis.com/css?family=Open+Sans:400,300')