summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorLuciano Iam <lucianito@gmail.com>2020-04-12 10:19:08 +0200
committerRobin Gareus <robin@gareus.org>2020-04-13 16:29:38 +0200
commit320233b075a570d65bd1c037e24231317f633d99 (patch)
treeefd49397242bf22276fa4fd22adbb8c37a86ca88 /share
parent1b4deb11ec648146aa7de912e2ed79f59b8d6c6d (diff)
WebSockets: add surface version numbers to index page
Diffstat (limited to 'share')
-rw-r--r--share/web_surfaces/index/main.css5
-rw-r--r--share/web_surfaces/index/main.js2
2 files changed, 7 insertions, 0 deletions
diff --git a/share/web_surfaces/index/main.css b/share/web_surfaces/index/main.css
index a10d9f84b9..f9726e7c11 100644
--- a/share/web_surfaces/index/main.css
+++ b/share/web_surfaces/index/main.css
@@ -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;
diff --git a/share/web_surfaces/index/main.js b/share/web_surfaces/index/main.js
index 785e003c9c..0a90d1b62d 100644
--- a/share/web_surfaces/index/main.js
+++ b/share/web_surfaces/index/main.js
@@ -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);