Skip to content

Commit

Permalink
실험: ACLGroup과 IPACL을 한 파일로 핸들링
Browse files Browse the repository at this point in the history
최신 버전의 node에 대응: verrev('1.17.99')로 핸들링이 가능한지 테스트
  • Loading branch information
Dohyeon Jeon committed Oct 24, 2022
1 parent 86ee018 commit 4c92362
Showing 1 changed file with 39 additions and 36 deletions.
75 changes: 39 additions & 36 deletions views/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,22 @@
<a class="navbar-brand" href="/"></a>
<ul class="nav navbar-nav">
<li class="nav-item">
<a class="nav-link" href="/RecentChanges"
><span class="fa fa-refresh"></span
><span class="hide-title">최근바뀜</span></a
>
<a class="nav-link" href="/RecentChanges">
<span class="fa fa-refresh"></span>
<span class="hide-title">최근바뀜</span>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/RecentDiscuss"
><span class="fa fa-comments"></span
><span class="hide-title">최근토론</span></a
>
<a class="nav-link" href="/RecentDiscuss">
<span class="fa fa-comments"></span>
<span class="hide-title">최근토론</span>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/random"
><span class="fa fa-random"></span
><span class="hide-title">임의문서</span></a
>
<a class="nav-link" href="/random">
<span class="fa fa-random"></span>
<span class="hide-title">임의문서</span>
</a>
</li>
<li class="nav-item dropdown">
<a
Expand All @@ -40,22 +40,23 @@
<a href="/RandomPage" class="dropdown-item">RandomPage</a>
<a href="/Upload" class="dropdown-item">업로드</a>
<a href="/License" class="dropdown-item">라이선스</a>
<!--
{%if perms.has('ipacl') %}
<a href="/admin/ipacl" class="dropdown-item">[관리] IPACL</a>
{% endif %}
{%if perms.has('suspend_account') %}
<a href="/admin/suspend_account" class="dropdown-item">[관리] 계정 차단</a>
{% endif %}
-->
{%if perms.has('ipacl') %}
<a href="/aclgroup" class="dropdown-item">[관리] ACLGroup</a>
{%endif%} {%if perms.has('grant') %}
<a href="/admin/grant" class="dropdown-item">[관리] 권한 부여</a>
{% endif %} {%if perms.has('login_history') %}
<a href="/admin/login_history" class="dropdown-item"
>[관리] 로그인 기록 조회</a
>
{%if verrev('1.17.99') %}
{%if perms.has('ipacl') %}
<a href="/admin/ipacl" class="dropdown-item">[관리] IPACL</a>
{% endif %}
{%if perms.has('suspend_account') %}
<a href="/admin/suspend_account" class="dropdown-item">[관리] 계정 차단</a>
{% endif %}
{% else %}
{%if perms.has('aclgroup') %}
<a href="/aclgroup" class="dropdown-item">[관리] ACLGroup</a>
{% endif %}
{% endif %}
{%if perms.has('grant') %}
<a href="/admin/grant" class="dropdown-item">[관리] 권한 부여</a>
{% endif %}
{%if perms.has('login_history') %}
<a href="/admin/login_history" class="dropdown-item">[관리] 로그인 기록 조회</a>
{% endif %}
</div>
</li>
Expand Down Expand Up @@ -86,28 +87,30 @@
<a
class="dropdown-item"
href="/contribution/author/{{ member.username }}/document"
>내 문서 기여 목록</a
>
>내 문서 기여 목록
</a>
<a
class="dropdown-item"
href="/contribution/author/{{ member.username }}/discuss"
>내 토론 기여 목록</a
>
>내 토론 기여 목록
</a>
<div class="dropdown-divider"></div>
<a href="/member/mypage" class="dropdown-item">내 정보</a>
<div class="dropdown-divider view-logout"></div>
<a
href="/member/logout?redirect={{ url | url_encode }}"
class="dropdown-item view-logout"
>로그아웃</a
>
>로그아웃
</a>
</div>
</div>
<a
href="/member/logout?redirect={{ url | url_encode }}"
class="hide-logout logout-btn"
><span class="fa fa-sign-out"></span
></a>
>
<span class="fa fa-sign-out">
</span>
</a>
{% else %}
<a
href="/member/login?redirect={{ url | url_encode }}"
Expand Down

0 comments on commit 4c92362

Please sign in to comment.