Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
no398 committed Jan 29, 2024
1 parent f0745da commit 4e93406
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
11 changes: 9 additions & 2 deletions static/style.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
/* Global */

body {
font-family: arial, sans-serif;
min-height: 100vh;
display: flex;
flex-direction: column;
}

.nav {
Expand Down Expand Up @@ -216,4 +217,10 @@ body {

.pagination a {
text-decoration: none;
}

footer{
margin-left: 150px;
border-top: 2px solid #eef;
margin-top: auto;
}
3 changes: 3 additions & 0 deletions templates/case.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,8 @@ <h3 class="underlineonhover">{{ case.case_name }}</h3>
{{ case.full_text }}
</div>
</main>
<footer>
<p>GitHub: <a href="https://github.com/cncases/cases">https://github.com/cncases/cases</a></p>
</footer>
</body>
</html>
7 changes: 5 additions & 2 deletions templates/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,13 @@ <h3 class="underlineonhover">{{ case.case_name }}</h3>
<div class="pagination">
{% if cases.len() >= 20 %}
{% if offset >= 20 %}
<a href="/?search={{ search }}&offset={{ offset - 20 }}">上一页</a>&nbsp;&nbsp;&nbsp;&nbsp;
<a href="/?search={{ search }}&offset={{ offset - 20 }}&search_type={{search_type}}">上一页</a>&nbsp;&nbsp;&nbsp;&nbsp;
{% endif %}
<a href="/?search={{ search }}&offset={{ offset + 20 }}">下一页</a>
<a href="/?search={{ search }}&offset={{ offset + 20 }}&search_type={{search_type}}">下一页</a>
{% endif %}
</div>
<footer>
<p>GitHub: <a href="https://github.com/cncases/cases">https://github.com/cncases/cases</a></p>
</footer>
</body>
</html>

0 comments on commit 4e93406

Please sign in to comment.