Skip to content

Commit

Permalink
Remove self closing HTML5 slash (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek committed Oct 5, 2022
1 parent f475d95 commit c8adff3
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ jobs:
run: |
cp -r template template.orig
find template -not -type d -not -name '*.pug' -delete
(cd template && pug --silent --pretty .)
(cd template && pug --doctype html --pretty --silent .)
diff -ru template.orig template
rm -r template.orig
Expand Down
24 changes: 18 additions & 6 deletions template/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,15 @@ <h2>{title}Welcome back! {/}</h2>
<form class="ui form">
<div class="field">
<label>Email</label>
<div class="ui input"><input type="email" /></div>
<div class="ui input">
<input type="email">
</div>
</div>
<div class="field">
<label><a href="javascript:void(0)" style="float:right;">Forgot?</a>Password</label>
<div class="ui input"><input type="password" /></div>
<div class="ui input">
<input type="password">
</div>
</div>
<button class="ui right labeled large fluid primary icon button"><i class="right arrow icon"></i>Sign in</button>
</form>
Expand All @@ -25,7 +29,9 @@ <h2>Forgot your password?</h2>
<form class="ui form">
<div class="field">
<label>Email</label>
<div class="ui input"><input type="email" /></div>
<div class="ui input">
<input type="email">
</div>
</div>
<button class="ui right labeled large fluid primary icon button"><i class="right arrow icon"></i>Send recovery code</button>
</form>
Expand All @@ -39,15 +45,21 @@ <h2>Sign up</h2>
<form class="ui form">
<div class="field">
<label>Email</label>
<div class="ui input"><input type="email" /></div>
<div class="ui input">
<input type="email">
</div>
</div>
<div class="field">
<label>Password</label>
<div class="ui input"><input type="password" /></div>
<div class="ui input">
<input type="password">
</div>
</div>
<div class="field">
<label>Repeat password</label>
<div class="ui input"><input type="password" /></div>
<div class="ui input">
<input type="password">
</div>
</div>
<button class="ui right labeled large fluid primary icon button"><i class="right arrow icon"></i>Sign in</button>
</form>
Expand Down
12 changes: 6 additions & 6 deletions template/login.pug
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ section.ui.segments
.field
label Email
.ui.input
<input type="email" />
input(type='email')
.field
label
a(href='javascript:void(0)' style='float:right;') Forgot?
| Password
.ui.input
<input type="password" />
input(type='password')
button.ui.right.labeled.large.fluid.primary.icon.button
i.right.arrow.icon
| Sign in
Expand All @@ -28,7 +28,7 @@ section.ui.segments
.field
label Email
.ui.input
<input type="email" />
input(type='email')
button.ui.right.labeled.large.fluid.primary.icon.button
i.right.arrow.icon
| Send recovery code
Expand All @@ -43,15 +43,15 @@ section.ui.segments
.field
label Email
.ui.input
<input type="email" />
input(type='email')
.field
label Password
.ui.input
<input type="password" />
input(type='password')
.field
label Repeat password
.ui.input
<input type="password" />
input(type='password')
button.ui.right.labeled.large.fluid.primary.icon.button
i.right.arrow.icon
| Sign in
Expand Down

0 comments on commit c8adff3

Please sign in to comment.