Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
jk-web
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jiří Kalvoda
jk-web
Commits
e0cb66f7
Commit
e0cb66f7
authored
9 months ago
by
Jiří Kalvoda
Browse files
Options
Downloads
Patches
Plain Diff
KG1: Lesson without PDF
parent
87ce8961
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
jk_web/teaching_24_kg1/__init__.py
+16
-7
16 additions, 7 deletions
jk_web/teaching_24_kg1/__init__.py
with
16 additions
and
7 deletions
jk_web/teaching_24_kg1/__init__.py
+
16
−
7
View file @
e0cb66f7
...
...
@@ -39,11 +39,12 @@ with web.Module("teaching_24_kg1") as module:
b
.
h2
(
"
Probrané témata a zadané příklady
"
)
def
lesson
(
id
,
date
,
content
):
def
lesson
(
id
,
date
,
content
,
pdf
=
True
):
b
=
html
.
Builder
()
with
b
.
tr
:
b
.
line
.
td
(
date
)
b
.
line
.
td
(
content
)
if
pdf
:
p
=
web
.
Mpage
(
d
,
f
"
vyuka/24z/kg1/
{
id
}
"
,
source
=
f
'
{
id
}
.md
'
,
page_builder
=
base_page
,
source_code_module
=
(
lambda
:
...).
__module__
,
...
...
@@ -64,6 +65,14 @@ with web.Module("teaching_24_kg1") as module:
b
(
lesson
(
2
,
"
8. 10.
"
,
b
.
_bucket
(
"
Odhady faktoriálů a kombinačních čísel, vytvořující funkce ponulté.
"
,
b
.
_br
(),
"
Předvedeny příklady 1abc a 2abefgh.
"
)))
b
(
lesson
(
3
,
"
15. 10.
"
,
b
.
_bucket
(
"
Vytvořující funkce poprvé.
"
)))
b
(
lesson
(
4
,
"
22. 10.
"
,
b
.
_bucket
(
"
Vytvořující funkce podruhé.
"
)))
b
(
lesson
(
5
,
"
29. 10.
"
,
b
.
_bucket
(
"
Vytvořující funkce podruhé.
"
)))
b
(
lesson
(
6
,
"
5. 11.
"
,
b
.
_i
.
line
(
"
Místo cvičení je
"
,
b
.
_a
(
href
=
'
https://www.mff.cuni.cz/cs/vnitrni-zalezitosti/dekansky-den/2024
'
)(
"
cvičení
"
),
"
(a nebo
"
,
b
.
_a
(
href
=
"
https://maso.mff.cuni.cz/
"
)(
"
MaSo
"
),
"
, vyberte si).
"
),
pdf
=
False
))
return
base_page
(
b
.
root
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment