add load more command

This commit is contained in:
2026-02-12 17:52:32 +03:00
parent 4e1d1ca35f
commit a058b622e3
7 changed files with 161 additions and 33 deletions
+20
View File
@@ -77,6 +77,21 @@
.meta a:hover {
text-decoration: underline;
}
.load-more {
margin-top: 1rem;
}
.load-more button {
background: #e8f0fe;
color: #1a73e8;
border: none;
padding: 0.5rem 1rem;
border-radius: 6px;
font-size: 0.9rem;
cursor: pointer;
}
.load-more button:hover {
background: #d2e3fc;
}
</style>
</head>
<body>
@@ -102,6 +117,11 @@
Tier {{.Tier}} · показов: {{.ShowCount}}
{{if .MemoURL}} · <a href="{{.MemoURL}}" target="_blank" rel="noopener">оригинал</a>{{end}}
</div>
{{if .AllowLoadMore}}
<form class="load-more" method="POST" action="/more">
<button type="submit">Другое воспоминание</button>
</form>
{{end}}
</div>
</body>
</html>