Skip to content

Commit

Permalink
update bootstrap
Browse files Browse the repository at this point in the history
  • Loading branch information
yuzawa-san committed Jun 10, 2024
1 parent c7bc111 commit 05a32c2
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 18 deletions.
34 changes: 18 additions & 16 deletions src/main/resources/templates/index.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
<!DOCTYPE html>
<html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Googolplex Theater</title>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
<link rel="icon" type="image/png" href="./favicon.png">
<script src="https://code.jquery.com/jquery-3.4.1.slim.min.js" integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js" integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6" crossorigin="anonymous"></script>
<style>
body { line-height:1em }
.settings { font-size:10px;white-space:pre-wrap;word-wrap:break-word; }
Expand All @@ -16,27 +14,31 @@
<body>
<div class="container">
<h1><img src="./favicon.png" width="32"> Googolplex Theater</h1>
<div class="float-right">
<form method="post" action="./refresh">
<input class="btn btn-primary" type="submit" value="Refresh All">
</form>
<div class="row">
<div class="col">
<h2>Devices</h2>
</div>
<div class="col text-end">
<form method="post" action="./refresh">
<input class="btn btn-primary" type="submit" value="Refresh All">
</form>
</div>
</div>
<h2>Devices</h2>
<div class="row">
<div class="col-lg-6 pb-1" th:each="device: ${devices}">
<div class="card">
<div class="card-header">
<div class="float-right">
<div class="float-end">
<form method="post" action="./refresh">
<input type="hidden" name="name" th:value="${device.name}">
<span th:if="${device.settings}">
<span th:if="${device.ipAddress}">
<span th:if="${device.uptime}" class="badge badge-success">Connected for <span th:text="${device.uptime}"></span></span>
<span th:unless="${device.uptime}"class="badge badge-warning">Disconnected</span>
<span th:if="${device.uptime}" class="badge text-bg-success">Connected for <span th:text="${device.uptime}"></span></span>
<span th:unless="${device.uptime}"class="badge text-bg-warning">Disconnected</span>
</span>
<span th:unless="${device.ipAddress}" class="badge badge-danger">Not Found</span>
<span th:unless="${device.ipAddress}" class="badge text-bg-danger">Not Found</span>
</span>
<span th:unless="${device.settings}" class="badge badge-secondary">Not Configured</span>
<span th:unless="${device.settings}" class="badge text-bg-secondary">Not Configured</span>
<input class="btn btn-primary btn-sm" type="submit" value="Refresh" th:disabled="!${device.uptime}">
</form>
</div>
Expand Down
6 changes: 4 additions & 2 deletions src/main/resources/templates/main.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
<!DOCTYPE html>
<html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Googolplex Theater</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
</head>
<body>
<div class="container">
Expand Down

0 comments on commit 05a32c2

Please sign in to comment.