Skip to content

Commit 474936e

Browse files
committed
Correct link to runs.
1 parent 38ff168 commit 474936e

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

naucse/routes.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,12 @@ def run_page(year, run):
9191

9292
lesson_dict = title_loader(plan)
9393

94+
def lesson_url(lesson_type, lesson):
95+
"""Link to the specific lesson."""
96+
return url_for('run_lesson', year=year, run=run, lesson_type=lesson_type, lesson=lesson)
97+
9498
try:
95-
return render_template(template, plan=plan, names=lesson_dict, title=title)
99+
return render_template(template, plan=plan, names=lesson_dict, title=title, lesson_url=lesson_url)
96100
except TemplateNotFound:
97101
abort(404)
98102

static/css/nausce.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,3 +208,8 @@ details.detail-not-expanded {
208208
span.align-right {
209209
float: right;
210210
}
211+
212+
span.align-center {
213+
text-align: center;
214+
}
215+

0 commit comments

Comments
 (0)