From e8ea1a4f570663aae1e5cd1cbf6f19439c9ced20 Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Sun, 24 Dec 2023 09:56:40 +0000 Subject: [PATCH] Use bulma cards --- local_spaces/static/style.css | 0 local_spaces/templates/index.html | 37 +++++++++++++------------------ 2 files changed, 16 insertions(+), 21 deletions(-) delete mode 100644 local_spaces/static/style.css diff --git a/local_spaces/static/style.css b/local_spaces/static/style.css deleted file mode 100644 index e69de29..0000000 diff --git a/local_spaces/templates/index.html b/local_spaces/templates/index.html index db599b5..2b63589 100644 --- a/local_spaces/templates/index.html +++ b/local_spaces/templates/index.html @@ -8,35 +8,29 @@ Local Spaces - - +
-

Other Local Hackspaces

@@ -47,7 +41,8 @@

Other Local Hackspaces

const spaces = Array.from(data).sort((a, b) => a['data']['distance'] - b['data']['distance']); spaces.forEach(function (val, indx) { var obj = $($("template#space-block").html()); - obj.find('#space-name').html(val['data']['space']); + obj.find('#space-name a').html(val['data']['space']); + obj.find('#space-name a').attr('href', val['data']['url']); obj.find('#space-distance').html(Math.round(val['distance'] * 100) / 100); let status = 'Closed';