Skip to content

Commit

Permalink
improve UI
Browse files Browse the repository at this point in the history
  • Loading branch information
trim21 committed Sep 9, 2024
1 parent 0d29217 commit 25b0d68
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 33 deletions.
49 changes: 22 additions & 27 deletions server/templates/list.html.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -132,36 +132,31 @@
</div>
</div>

<div>
<div class="d-flex w-100 justify-content-between">
<p class="oneline-hide-overflow m-0 p-0">
<small>from:
<span class="badge bg-light text-dark border border-info">{{ users.get(patch.from_user_id).nickname | default(patch.from_user_id) }}</span>
</small>
{% if patch.state != 0 %}
<small>reviewed by:
<span class="badge bg-light text-dark border border-info">{{ users.get(patch.wiki_user_id).nickname | default(patch.wiki_user_id) }}</span>
</small>
{% endif %}
</p>
<div>
{% if patch.subject_type %}
分类:<span class="badge bg-light text-dark border border-info">
{% if patch.subject_type %}
分类 <span class="badge bg-light text-dark border border-info">
{{- patch.subject_type | subject_type_readable -}}
</span>
{% endif %}
{% if patch.original_name %}
{% if patch_type == 'subject' %}
条目名:
{% elif patch_type == 'episode' %}
章节名:
{% endif %}
<br class="d-block d-sm-none">
{% endif %}
{% if patch.original_name %}
{% if patch_type == 'subject' %}
条目名
{% elif patch_type == 'episode' %}
章节名
{% endif %}
<span class="badge bg-light text-dark border border-info">{{ patch.original_name }}</span>
{% endif %}
<br class="d-block d-sm-none">
<small>from
<span class="badge bg-light text-dark border border-info">{{ users.get(patch.from_user_id).nickname | default(patch.from_user_id) }}</span>
</small>

<span class="badge bg-light text-dark border border-info">{{ patch.original_name }}</span>
{% endif %}
</div>
</div>
</div>
{% if patch.state != 0 %}
<br class="d-block d-sm-none">
<small>reviewed by
<span class="badge bg-light text-dark border border-info">{{ users.get(patch.wiki_user_id).nickname | default(patch.wiki_user_id) }}</span>
</small>
{% endif %}
</a>
{% endfor %}
</ul>
Expand Down
20 changes: 14 additions & 6 deletions server/templates/suggest.html.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,21 @@
id="exampleCheck1">
</div>

<hr>

<div class="form-group">
<label for="reason">原因</label>
<textarea cols="3"
class="form-control"
id="reason"
required
name="reason">{{ data.reason }}</textarea>
<label for="reason" class="mb-2">原因</label>
<input class="form-control mb-2"
id="reason"
required
placeholder="原因"
name="reason" value="{{ data.reason }}">

<textarea rows="5"
class="form-control mb-2"
id="patch_desc"
placeholder="详细说明"
name="patch_desc">{{ data.patch_desc }}</textarea>
</div>

<div class="cf-turnstile m-1" data-theme="light"
Expand Down

0 comments on commit 25b0d68

Please sign in to comment.