Skip to content

Commit

Permalink
Schedule for 2024
Browse files Browse the repository at this point in the history
Signed-off-by: Toomore Chiang <[email protected]>
  • Loading branch information
toomore committed Jul 31, 2024
1 parent 9547fbd commit d3860cb
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 4 deletions.
9 changes: 8 additions & 1 deletion templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,17 @@
</a>
</div>
</div>
<a class="navbar-item has-text-weight-medium" href="/docs/zh-TW/about_coscup/attendee_services/">
<a
class="navbar-item has-text-weight-medium"
href="/docs/zh-TW/about_coscup/attendee_services/"
>
<span class="icon"><i class="fas fa-hand-sparkles"></i></span>
<span>會眾服務</span>
</a>
<a class="navbar-item has-text-weight-medium" href="/schedule/2024">
<span class="icon"><i class="fas fa-hands-helping"></i></span>
<span>2024 議程表 | 社群協助</span>
</a>
<!--
<a
class="navbar-item has-text-weight-medium"
Expand Down
8 changes: 8 additions & 0 deletions templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,14 @@
</a>
</div>
</div>
<div class="column">
<div class="has-text-centered">
<a href="/schedule/2024" class="button is-large is-success is-outlined is-light is-rounded">
<span class="icon"><i class="far fa-list-alt"></i></span>
<span>2024 議程表</span>
</a>
</div>
</div>
<div class="column">
<div class="has-text-centered">
<a href="https://secretary.coscup.org/subscribe/coscup"
Expand Down
5 changes: 2 additions & 3 deletions view/schedule.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
''' Schedule '''
from flask import (Blueprint, g, jsonify, redirect, render_template, request,
session, url_for)
from flask import Blueprint, g, jsonify, redirect, render_template, request, session, url_for
from flask.wrappers import Response
from markdown import markdown
from werkzeug.wrappers import Response as ResponseBase
Expand Down Expand Up @@ -64,7 +63,7 @@ def talk_one(pid: int, session_id: str) -> str | ResponseBase:
speaker.biography = markdown(speaker.biography)

if not talks:
return redirect('/schedule/2023')
return redirect('/schedule/2024')

return render_template('schedule_talks.html',
pid=pid,
Expand Down

0 comments on commit d3860cb

Please sign in to comment.