mirror of
https://github.com/wkulhanek/bonob.git
synced 2025-12-21 17:33:29 +01:00
Add simple listing of sonos devices and basic Dockefile for running it
This commit is contained in:
6
web/views/devices.eta
Normal file
6
web/views/devices.eta
Normal file
@@ -0,0 +1,6 @@
|
||||
<ul>
|
||||
<% it.devices.forEach(function(d){ %>
|
||||
<li><%= d.name %> (<%= d.ip %>:<%= d.port %>)</li>
|
||||
<% }) %>
|
||||
</ul>
|
||||
|
||||
11
web/views/index.eta
Normal file
11
web/views/index.eta
Normal file
@@ -0,0 +1,11 @@
|
||||
<% layout('./layout') %>
|
||||
|
||||
<div id="content">
|
||||
<h1>bonob</h1>
|
||||
<h2>Devices</h2>
|
||||
<ul>
|
||||
<% it.devices.forEach(function(d){ %>
|
||||
<li><%= d.name %> (<%= d.ip %>:<%= d.port %>)</li>
|
||||
<% }) %>
|
||||
</ul>
|
||||
</div>
|
||||
9
web/views/layout.eta
Normal file
9
web/views/layout.eta
Normal file
@@ -0,0 +1,9 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title><%= it.title || "bonob" %></title>
|
||||
</head>
|
||||
<body>
|
||||
<%~ it.body %>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user