WebSockets: add surface version numbers to index page

This commit is contained in:
Luciano Iam 2020-04-12 10:19:08 +02:00 committed by Robin Gareus
parent 1b4deb11ec
commit 320233b075
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
2 changed files with 7 additions and 0 deletions

View File

@ -80,6 +80,11 @@ h2 {
margin: 4ex 0;
}
.surface-version {
color: #337ab7;
font-size: 0.75em;
}
.disk-path {
font-family: Monaco, monospace;
font-size: 0.66em;

View File

@ -44,6 +44,8 @@ import { Ardour } from '/shared/ardour.js';
const li = document.createElement('li');
li.innerHTML = `<li>
<a href="${group.path}/${surface.path}/">${surface.name}</a>
&thinsp;
<span class="surface-version">(${surface.version})</span>
<p>${surface.description}</p>
</li>`;
ul.appendChild(li);