Skip to content

Commit

Permalink
#43 管理者モード時にタグを表示機能の追加.
Browse files Browse the repository at this point in the history
  • Loading branch information
yoneyan committed Sep 15, 2024
1 parent 29a723a commit 3afd2dc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions dsbd/templates/base1.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,11 @@
<div class="collapse navbar-collapse" id="navbarsExampleDefault">
<ul class="navbar-nav mr-auto">
{% include 'navbar1.html' %}


</ul>
</div>
<h6><span class="badge bg-secondary">Version: {% get_version %}</span></h6>
</div>
</nav>

Expand Down
2 changes: 1 addition & 1 deletion dsbd/templates/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ <h5 class="card-title">{{ notice.title }}</h5>
data-bs-dismiss="modal">
Close
</button>
{% if request.user.is_staff %}
{% if request.user.is_staff and is_admin_mode%}
<a href="/admin/notice/notice/{{ notice.id }}/change"
class="btn btn-primary">編集</a>
<a href="/admin/notice/notice/{{ notice.id }}/delete"
Expand Down
3 changes: 3 additions & 0 deletions dsbd/templates/navbar2.html
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,9 @@
</li>
</ul>
<h6><span class="badge bg-secondary">Version: {% get_version %}</span></h6>
{% if is_admin_mode %}
<h6><span class="badge bg-primary">管理者モード</span></h6>
{% endif %}
<hr>
<div class="dropdown">
<a href="#"
Expand Down

0 comments on commit 3afd2dc

Please sign in to comment.