Created
July 20, 2018 13:58
-
-
Save racterub/60012bba6449f5c71281b0b88bc1cca1 to your computer and use it in GitHub Desktop.
使用 Jinja 模板
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="ts huge left sidebar inverted overlapped vertical menu"> | |
<div class="ts attached inverted menu"> | |
<a onclick="ts('.left.inverted.sidebar').sidebar('hide');" class="item"> | |
<i class="chevron left icon"></i> | |
</a> | |
<div class="right menu"> | |
<a href="{{ url_for('logout') }}" class="item">登出</a> | |
</div> | |
</div> | |
<a href="{{ url_for('index') }}" class="{% block active_mobile_home %}{% endblock %} item">首頁</a> | |
{% if session['user'] %} | |
<div class="item"> | |
成績表 | |
<div class="menu"> | |
<a href="{{ url_for('scoreboard') }}" class="{% block active_mobile_scoreboard %}{% endblock %} item">第一次段考</a> | |
<a href="#" class="item">第二次段考</a> | |
<a href="#" class="item">第三次段考</a> | |
<a href="#" class="item">補考</a> | |
</div> | |
</div> | |
{% endif %} | |
<a href="{{ url_for('about') }}" class="{% block active_mobile_a %}{% endblock %}item">關於</a> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment