Skip to content

Commit

Permalink
[update]
Browse files Browse the repository at this point in the history
  • Loading branch information
boke0 committed Mar 7, 2021
1 parent 5af8be8 commit 5f7cef8
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 12 deletions.
2 changes: 1 addition & 1 deletion kyokusui/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
</nav>
<div class='container-fluid' style='height:calc(100vh - 56px)'>
<div class='row'>
<nav class='sidebar col-md-3 mt-4'>
<nav class='sidebar col-md-3 col-lg-2 mt-4'>
{% if permission('create_board', request.user) %}
<button class='btn btn-primary' data-bs-toggle='modal' data-bs-target='#board_form'>板を立てる</button>
{% endif %}
Expand Down
6 changes: 4 additions & 2 deletions kyokusui/templates/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@
<div class='container'>
<div class='d-flex justify-content-between'>
<h2>新着スレッド</h2>
<a class='btn btn-primary' href='{{ url('/settings') }}'>設定</a>
<div>
<a class='btn btn-primary' href='{{ url('/settings') }}'>設定</a>
</div>
</div>
<div class='list-group mt-4'>
{% for thread in threads|selectattr('closed', 'false') %}
<a href='{{ url('/' + thread.board._id + '/' + thread._id) }}' class='list-group-item list-group-item-action'>
<div class='d-flex w-100 justify-content-between'>
<div>
<div class='mb-2'>
<h5 class='mb-2'>
{{ thread.title }}
</h5>
Expand Down
12 changes: 6 additions & 6 deletions kyokusui/templates/thread.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,21 @@
<div id='messages'>
<header class='card mb-3'>
<div class='card-body'>
<h2 class='card-title'>{{ thread.title }}</h2>
<h2 class='card-title mb-4'>{{ thread.title }}</h2>
{{ lists.userItem(request.user, small=True) }}
<div class='card-text d-flex justify-content-end'><small class='text-muted'>{{ thread.created.strftime('%Y-%m-%d %H:%M:%S') }}</small></div>
</div>
</header>
{% for res in thread.res|sort(attribute='datetime') %}
<div class='card mb-3' id="{{loop.index}}">
<div class='card-body'>
<div class='d-flex justify-content-between'>
<div class='card-title d-flex align-items-center'>
<div class='me-2'><strong>#{{loop.index}}</strong></div>
{{ lists.userItem(res.user, small=True) }}
</div>
<div class='mb-2 d-flex justify-content-between'>
<span class='badge bg-secondary'>#{{loop.index}}</span>
<div class='card-text'><small class='text-muted'>{{ res.datetime.strftime('%Y-%m-%d %H:%M:%S') }}</small></div>
</div>
<div class='mb-3'>
{{ lists.userItem(res.user, small=True) }}
</div>
{{ res.parsed_data.message|hiroyuki|markdown }}
<div class='image-list'>
{% for image in res.parsed_data.images %}
Expand Down
6 changes: 3 additions & 3 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5f7cef8

Please sign in to comment.