Browse Source

Update pug attribute interpolation.

The old syntax has been deprecated.
See https://pugjs.org/language/attributes.html.
Joel Feinstein 5 years ago
parent
commit
2481cbeca7
2 changed files with 4 additions and 4 deletions
  1. 3 3
      views/index.pug
  2. 1 1
      views/result.pug

+ 3 - 3
views/index.pug

@@ -16,12 +16,12 @@ html
         .content
           .information
             form(method="POST", action="invite")#join-form.form
-              input(type="email", name="email", autofocus, placeholder="#{__('ENTER_EMAIL')}")#slack-email.field
+              input(type="email", name="email", autofocus, placeholder=__('ENTER_EMAIL'))#slack-email.field
               if tokenRequired
-                input(type="text", name="token", placeholder="#{__('ENTER_TOKEN')}")#slack-token.field
+                input(type="text", name="token", placeholder=__('ENTER_TOKEN'))#slack-token.field
               input(type="submit", value="Join").submit
               if !!recaptchaSiteKey
-                div(class="g-recaptcha", data-sitekey="#{recaptchaSiteKey}")
+                div(class="g-recaptcha", data-sitekey=recaptchaSiteKey)
     if !!recaptchaSiteKey
        script(src='https://www.google.com/recaptcha/api.js')
     script.

+ 1 - 1
views/result.pug

@@ -12,4 +12,4 @@ html
         .header
           h1
             strong #{community}
-          h2(class="#{isFailed?'error':''}") !{message}
+          h2(class=isFailed?'error':'') !{message}