Skip to content

Instantly share code, notes, and snippets.

@racterub
Created July 20, 2018 13:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save racterub/60012bba6449f5c71281b0b88bc1cca1 to your computer and use it in GitHub Desktop.
Save racterub/60012bba6449f5c71281b0b88bc1cca1 to your computer and use it in GitHub Desktop.
使用 Jinja 模板
<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