Skip to content

Commit

Permalink
[update]
Browse files Browse the repository at this point in the history
  • Loading branch information
boke0 committed Mar 14, 2021
1 parent 6564d52 commit ecd2436
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions kyokusui/templates/thread.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ <h2 id="title" class='card-title mb-4'>{{ thread.title }}</h2>
</div>
</header>
{% for res in thread.res|sort(attribute='datetime') %}
<div class='card mb-3' id="{{loop.index}}">
<div class='card-body'>
<div class='card mb-3' id="res-{{res._id}}">
<div class='card-body' id="{{ loop.index }}">
<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>
Expand Down Expand Up @@ -129,8 +129,9 @@ <h5 class='modal-title'>スレッドを締めますか?</h5>
const mesbox = document.createElement("div");
mesbox.classList.add("card")
mesbox.classList.add("mb-3")
mesbox.id = `res-${received._id}`
mesbox.innerHTML = `
<div class='card-body'>
<div class='card-body' id='${counter}'>
<div class='mb-2 d-flex justify-content-between'>
<span class='badge bg-secondary'>#${counter}</span>
<div class='card-text'><small class='text-muted'>${received.datetime}</small></div>
Expand Down

0 comments on commit ecd2436

Please sign in to comment.