Fix minor issues with the main HTML file

- Simplify `checked` attributes
- Use double quotes when possible
- Remove `class` duplicates
- Fix labels in password settings
- Remove `<small>` around version number
This commit is contained in:
Jérémie Astori 2016-03-02 05:59:05 +00:00
parent ec37b6671b
commit b85541e538

View File

@ -65,7 +65,7 @@
</div> </div>
<div class="col-xs-12"> <div class="col-xs-12">
<label class="remember"> <label class="remember">
<input type="checkbox" name="remember" checked="checked"> <input type="checkbox" name="remember" checked>
Stay signed in Stay signed in
</label> </label>
</div> </div>
@ -103,11 +103,11 @@
<label>Server</label> <label>Server</label>
</div> </div>
<div class="col-sm-6 col-xs-8"> <div class="col-sm-6 col-xs-8">
<input class="input" name="host" value="<%= defaults.host %>" <%= typeof(lockNetwork) !== "undefined" && lockNetwork ? 'disabled' : ''%>> <input class="input" name="host" value="<%= defaults.host %>" <%= typeof(lockNetwork) !== "undefined" && lockNetwork ? "disabled" : "" %>>
</div> </div>
<div class="col-sm-3 col-xs-4"> <div class="col-sm-3 col-xs-4">
<div class="port"> <div class="port">
<input class="input" name="port" value="<%= defaults.port %>" <%= typeof(lockNetwork) !== "undefined" && lockNetwork ? 'disabled' : ''%>> <input class="input" name="port" value="<%= defaults.port %>" <%= typeof(lockNetwork) !== "undefined" && lockNetwork ? "disabled" : "" %>>
</div> </div>
</div> </div>
<div class="clearfix"></div> <div class="clearfix"></div>
@ -120,7 +120,7 @@
<div class="col-sm-3"></div> <div class="col-sm-3"></div>
<div class="col-sm-9"> <div class="col-sm-9">
<label class="tls"> <label class="tls">
<input type="checkbox" name="tls" <%= defaults.tls ? 'checked="checked"' : '' %> <%= typeof(lockNetwork) !== "undefined" && lockNetwork ? 'disabled' : ''%>> <input type="checkbox" name="tls" <%= defaults.tls ? "checked" : "" %> <%= typeof(lockNetwork) !== "undefined" && lockNetwork ? "disabled" : "" %>>
Enable TLS/SSL Enable TLS/SSL
</label> </label>
</div> </div>
@ -147,13 +147,13 @@
<label>Real name</label> <label>Real name</label>
</div> </div>
<div class="col-sm-9"> <div class="col-sm-9">
<input class="input" name="realname" class="input" value="<%= defaults.realname %>"> <input class="input" name="realname" value="<%= defaults.realname %>">
</div> </div>
<div class="col-sm-3"> <div class="col-sm-3">
<label>Channels</label> <label>Channels</label>
</div> </div>
<div class="col-sm-9"> <div class="col-sm-9">
<input class="input" name="join" class="input" value="<%= defaults.join %>"> <input class="input" name="join" value="<%= defaults.join %>">
</div> </div>
<div class="col-sm-3 clearfix"></div> <div class="col-sm-3 clearfix"></div>
<div class="col-sm-9"> <div class="col-sm-9">
@ -272,16 +272,16 @@
<h2>Change password</h2> <h2>Change password</h2>
</div> </div>
<div class="col-sm-12"> <div class="col-sm-12">
<label for="old_password" class="sr-only">Enter current password</label> <label for="old_password_input" class="sr-only">Enter current password</label>
<input type="password" name="old_password" class="input" placeholder="Enter current password"> <input type="password" id="old_password_input" name="old_password" class="input" placeholder="Enter current password">
</div> </div>
<div class="col-sm-12"> <div class="col-sm-12">
<label for="new_password" class="sr-only">Enter desired new password</label> <label for="new_password_input" class="sr-only">Enter desired new password</label>
<input type="password" name="new_password" class="input" placeholder="Enter desired new password"> <input type="password" id="new_password_input" name="new_password" class="input" placeholder="Enter desired new password">
</div> </div>
<div class="col-sm-12"> <div class="col-sm-12">
<label for="verify_password" class="sr-only">Repeat new password</label> <label for="verify_password_input" class="sr-only">Repeat new password</label>
<input type="password" name="verify_password" class="input" placeholder="Repeat new password"> <input type="password" id="verify_password_input" name="verify_password" class="input" placeholder="Repeat new password">
</div> </div>
<div class="col-sm-12 feedback"></div> <div class="col-sm-12 feedback"></div>
<div class="col-sm-12"> <div class="col-sm-12">
@ -301,8 +301,8 @@
</div> </div>
<div class="col-sm-12"> <div class="col-sm-12">
<p class="about"> <p class="about">
You're currently running version <small><%= version %></small><br> You're currently running version <%= version %><br>
<a href="https://github.com/thelounge/lounge/blob/master/CHANGELOG.md#readme" target="_blank">View the changelog</a> <a href="https://github.com/thelounge/lounge/blob/master/CHANGELOG.md#readme" target="_blank">View the change log</a>
</p> </p>
</div> </div>
</div> </div>