mirror of
https://github.com/wkulhanek/bonob.git
synced 2025-12-21 17:33:29 +01:00
Add i8n support for nl-NL (#19)
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
<% layout('./layout', { title: "Failure" }) %>
|
||||
<% layout('./layout', { title: it.lang("failure") }) %>
|
||||
|
||||
<div id="content">
|
||||
<h1 class="failure"><%= it.message %></h1>
|
||||
<h1 class="cause"><%= it.cause || "" %></h1>
|
||||
</div>
|
||||
@@ -2,23 +2,35 @@
|
||||
|
||||
<div id="content">
|
||||
<h1><%= it.bonobService.name %> (<%= it.bonobService.sid %>)</h1>
|
||||
<h3>Expected config</h3>
|
||||
<h3><%= it.lang("expectedConfig") %></h3>
|
||||
<div><%= JSON.stringify(it.bonobService) %></div>
|
||||
<br/>
|
||||
<form action="<%= it.createRegistrationRoute %>" method="POST">
|
||||
<input type="submit" value="<%= it.lang("register") %>">
|
||||
</form>
|
||||
<br/>
|
||||
|
||||
<% if(it.registeredBonobService) { %>
|
||||
<h3>Existing service config</h3>
|
||||
<div><%= JSON.stringify(it.registeredBonobService) %></div>
|
||||
<h3><%= it.lang("existingServiceConfig") %></h3>
|
||||
<div><%= JSON.stringify(it.registeredBonobService) %></div>
|
||||
<% } else { %>
|
||||
<h3>No existing service registration</h3>
|
||||
<h3><%= it.lang("noExistingServiceRegistration") %></h3>
|
||||
<% } %>
|
||||
<form action="<%= it.createRegistrationRoute %>" method="POST"><button>Register</button></form>
|
||||
<form action="<%= it.removeRegistrationRoute %>" method="POST"><button>Remove Registration</button></form>
|
||||
<h2>Devices</h2>
|
||||
<% if(it.registeredBonobService) { %>
|
||||
<br/>
|
||||
<form action="<%= it.removeRegistrationRoute %>" method="POST">
|
||||
<input type="submit" value="<%= it.lang("removeRegistration") %>">
|
||||
</form>
|
||||
<% } %>
|
||||
|
||||
<br/>
|
||||
<h2><%= it.lang("devices") %> (<%= it.devices.length %>)</h2>
|
||||
<ul>
|
||||
<% it.devices.forEach(function(d){ %>
|
||||
<li><%= d.name %> (<%= d.ip %>:<%= d.port %>)</li>
|
||||
<% }) %>
|
||||
</ul>
|
||||
<h2>Services <%= it.services.length %></h2>
|
||||
<h2><%= it.lang("services") %> (<%= it.services.length %>)</h2>
|
||||
<ul>
|
||||
<% it.services.forEach(function(s){ %>
|
||||
<li><%= s.name %> (<%= s.sid %>)</li>
|
||||
|
||||
@@ -28,6 +28,20 @@ input {
|
||||
input#submit {
|
||||
margin-top: 100px
|
||||
}
|
||||
|
||||
.one-word-per-line {
|
||||
word-spacing: 100000px;
|
||||
}
|
||||
|
||||
.login{
|
||||
width: min-intrinsic;
|
||||
width: -webkit-min-content;
|
||||
width: -moz-min-content;
|
||||
width: min-content;
|
||||
display: table-caption;
|
||||
display: -ms-grid;
|
||||
-ms-grid-columns: min-content;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
<% layout('./layout', { title: "Login" }) %>
|
||||
<% layout('./layout', { title: it.lang("login") }) %>
|
||||
|
||||
<div id="content">
|
||||
<h1 class="login">Log<br>in<br>to<br><%= it.bonobService.name %></h1>
|
||||
<h1 class="login one-word-per-line"><%= it.lang("logInToBonob") %></h1>
|
||||
<form action="<%= it.loginRoute %>" method="POST">
|
||||
<label for="username">Username:</label><br>
|
||||
<label for="username"><%= it.lang("username") %>:</label><br>
|
||||
<input type="text" id="username" name="username"><br><br>
|
||||
<label for="password">Password:</label><br>
|
||||
<label for="password"><%= it.lang("password") %>:</label><br>
|
||||
<input type="password" id="password" name="password"><br>
|
||||
<input type="hidden" name="linkCode" value="<%= it.linkCode %>">
|
||||
<input type="submit" value="Login" id="submit">
|
||||
<input type="submit" value="<%= it.lang("login") %>" id="submit">
|
||||
</form>
|
||||
</div>
|
||||
@@ -1,4 +1,4 @@
|
||||
<% layout('./layout', { title: "Yippee" }) %>
|
||||
<% layout('./layout', { title: it.lang("success") }) %>
|
||||
|
||||
<div id="content">
|
||||
<h1 class="success"><%= it.message %></h1>
|
||||
|
||||
Reference in New Issue
Block a user