re-enable the cache and make the buttons smaller
Some checks failed
Publish Docker Image / docker (ubuntu-latest, 2.44.0, 17, 3.8.5) (push) Waiting to run
Deploy App / docker (ubuntu-latest, 2.44.0, 17, 3.8.5) (push) Has been cancelled

This commit is contained in:
Lee 2024-06-01 18:33:40 +01:00
parent 779460689a
commit 1ab282772e
3 changed files with 3 additions and 4 deletions

@ -28,7 +28,6 @@ public class ThymeleafConfiguration {
templateResolver.setPrefix("classpath:/templates/"); templateResolver.setPrefix("classpath:/templates/");
templateResolver.setSuffix(".html"); templateResolver.setSuffix(".html");
templateResolver.setTemplateMode("HTML"); templateResolver.setTemplateMode("HTML");
templateResolver.setCacheable(false);
return templateResolver; return templateResolver;
} }

@ -21,7 +21,7 @@
</div> </div>
<div class="absolute top-0 right-0 p-3"> <div class="absolute top-0 right-0 p-3">
<button id="paste-button" class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded"> <button id="paste-button" class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-1 px-2 rounded">
Paste Paste
</button> </button>
</div> </div>

@ -18,12 +18,12 @@
<pre><code class="bg-transparent text-sm" th:text="${paste.content}"></code></pre> <pre><code class="bg-transparent text-sm" th:text="${paste.content}"></code></pre>
<div class="absolute top-0 right-0 p-3"> <div class="absolute top-0 right-0 p-3">
<button id="raw-button" class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded"> <button id="raw-button" class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-1 px-2 rounded">
<a th:href="${rawUrl}"> <a th:href="${rawUrl}">
Raw Raw
</a> </a>
</button> </button>
<button class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded"> <button class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-1 px-2 rounded">
<a href="/"> <a href="/">
New New
</a> </a>