forked from Decentrala/website
Compare commits
39 Commits
requiremen
...
master
Author | SHA1 | Date | |
---|---|---|---|
9d94787183 | |||
5ac2d0248b | |||
2abacdc60e | |||
c251d29945 | |||
41f57f0c12 | |||
dbc243276e | |||
45d3e9de14 | |||
c3101c91b0 | |||
027f184c27 | |||
37883bf420 | |||
521e2ec13c | |||
d7d0e09bb4 | |||
|
7575622112 | ||
|
05c4a14ce3 | ||
|
9044c265d5 | ||
|
52fe66343f | ||
a27ca527f8 | |||
954d8a3aca | |||
59ced0bfca | |||
1d34e7b168 | |||
ced573e2ae | |||
|
ad9bada585 | ||
d25c1be5ca | |||
3d59322497 | |||
6873f3c6de | |||
85cc1908c4 | |||
79ceee6e97 | |||
548f4cc373 | |||
e782d4156a | |||
88f4f547e5 | |||
|
9e4017c9bb | ||
|
34130b78e4 | ||
|
07933d7aa8 | ||
86741f4246 | |||
042e81c66b | |||
39ee4f76d9 | |||
112f0ec161 | |||
|
8bfaba3ed1 | ||
|
313041fe72 |
2
.gitignore
vendored
2
.gitignore
vendored
@ -12,3 +12,5 @@ http.access.log
|
||||
http.error.log
|
||||
events.ical
|
||||
.vscode/
|
||||
events.html
|
||||
events_archive.html
|
||||
|
@ -29,13 +29,15 @@ def main():
|
||||
templateEN = fTempEN.read()
|
||||
for page in PAGES:
|
||||
with open(f'pages/sr/{page["name"]}.html') as f:
|
||||
pageHtml = f.read()
|
||||
pageHtml = "<div><img src='/img/students_bug.jpg' alt='Studenti su nasli bug' /></div>"
|
||||
pageHtml += f.read()
|
||||
html = buildPage(page['name'], page['titleSR'], pageHtml, page['style'], templateSR)
|
||||
f = open(f'site/{page["name"]}.html', 'w')
|
||||
f.write(html)
|
||||
f.close()
|
||||
with open(f'pages/en/{page["name"]}.html') as f:
|
||||
pageHtml = f.read()
|
||||
pageHtml = "<div><img src='/img/students_bug.jpg' alt='Students found the bug' /></div>"
|
||||
pageHtml += f.read()
|
||||
html = buildPage(page['name'], page['titleEN'], pageHtml, page['style'], templateEN)
|
||||
f = open(f'site/en/{page["name"]}.html', 'w')
|
||||
f.write(html)
|
||||
|
@ -198,15 +198,39 @@ datum, vreme, lokacija, tema, tip, link
|
||||
29-10-2024, 19:00, DC Krov https://www.openstreetmap.org/node/10594728522, Radionica lemljenja, workshop, https://forum.dmz.rs/t/lemljenje/777/1
|
||||
30-10-2024, 18:00, Matematički fakultet (Učionica 251) https://www.openstreetmap.org/node/12291697569, Linux install day, workshop, https://forum.dmz.rs/t/linux-install-day/803
|
||||
4-11-2024, 19:00, DC Krov https://www.openstreetmap.org/node/10594728522, Sysadmin vežbe, workshop, https://wiki.dmz.rs/en/sysadmin
|
||||
5-11-2024, 19:00, DC Krov https://www.openstreetmap.org/node/10594728522, SYSTEMD - da/ne/zašto ne i alternative, lecture, https://forum.dmz.rs/t/plan-za-novembar-2024/785/4?u=wingaxe
|
||||
5-11-2024, 19:00, DC Krov https://www.openstreetmap.org/node/10594728522, SYSTEMD - da/ne/zašto ne i alternative, lecture, https://forum.dmz.rs/t/plan-za-novembar-2024/785/4
|
||||
11-11-2024, 19:00, DC Krov https://www.openstreetmap.org/node/10594728522, Lightning talks, lighting, https://wiki.dmz.rs/decentrala/dogadjaji/lightningtalks
|
||||
12-11-2024, 19:00, DC Krov https://www.openstreetmap.org/node/10594728522, Don’t be afraid of pointers, lecture, https://forum.dmz.rs/t/ne-boj-se-pointera-dont-be-afraid-of-pointers-predavanje/807
|
||||
12-11-2024, 19:00, DC Krov https://www.openstreetmap.org/node/10594728522, Dont be afraid of pointers, lecture, https://forum.dmz.rs/t/ne-boj-se-pointera-dont-be-afraid-of-pointers-predavanje/807
|
||||
13-11-2024, 18:00, Matematički fakultet (Učionica 153) https://www.openstreetmap.org/node/12291697569, Makefiles (en), lecture,
|
||||
18-11-2024, 19:00, DC Krov https://www.openstreetmap.org/node/10594728522, Intro to Security Auditing, lecture,
|
||||
19-11-2024, 19:00, DC Krov https://www.openstreetmap.org/node/10594728522, LAN party, party, https://forum.dmz.rs/t/lan-party/126
|
||||
20-11-2024, 18:00, Matematički fakultet (Učionica 153) https://www.openstreetmap.org/node/12291697569, 30 reasons to use Zig, lecture, https://forum.dmz.rs/t/intro-to-zig-or-30-reasons-you-should-start-using-zig/696
|
||||
25-11-2024, 19:00, DC Krov https://www.openstreetmap.org/node/10594728522, Hardverski Hackaton, hack, https://wiki.dmz.rs/en/decentrala/dogadjaji/hakaton
|
||||
26-11-2024, 19:00, DC Krov https://www.openstreetmap.org/node/10594728522, Tiny Keyboards Explained - 28 keys are enough, lecture,
|
||||
27-11-2024, 18:00, Matematički fakultet (N251) https://www.openstreetmap.org/node/12291697569, OpenGL šejderi #1: Osnove, lecture,
|
||||
04-12-2024, 18:00, Matematički fakultet (N251) https://www.openstreetmap.org/node/12291697569, OpenGL šejderi #2: SDF renderovanje, lecture,
|
||||
11-12-2024, 18:00, Matematički fakultet (N251) https://www.openstreetmap.org/node/12291697569, OpenGL šejderi #3: Kompleksna analiza, lecture,
|
||||
27-11-2024, 18:00, Matematički fakultet (Učionica 153) https://www.openstreetmap.org/node/12291697569, OpenGL šejderi #1: Osnove, lecture,
|
||||
02-12-2024, 19:00, DC Krov https://www.openstreetmap.org/node/10594728522, Lightning talks, lighting, https://wiki.dmz.rs/decentrala/dogadjaji/lightningtalks
|
||||
03-12-2024, 19:00, DC Krov https://www.openstreetmap.org/node/10594728522, Sysadmin vežbe, workshop, https://wiki.dmz.rs/en/sysadmin
|
||||
04-12-2024, 18:00, Matematički fakultet (Učionica 153) https://www.openstreetmap.org/node/12291697569, OpenGL šejderi #2: SDF renderovanje, lecture,
|
||||
09-12-2024, 19:00, DC Krov https://www.openstreetmap.org/node/10594728522, Ne treba nam (toliko) Javascript, lecture,
|
||||
10-12-2024, 19:00, DC Krov https://www.openstreetmap.org/node/10594728522, Creating Interactive Fiction with TADS (en), lecture,
|
||||
11-12-2024, 18:00, DC Krov https://www.openstreetmap.org/node/10594728522, OpenGL šejderi #3: Kompleksna analiza, lecture,
|
||||
16-12-2024, 19:00, DC Krov https://www.openstreetmap.org/node/10594728522, Softverski hakaton, hack, https://wiki.dmz.rs/decentrala/dogadjaji/hakaton
|
||||
17-12-2024, 18:00, DC Krov https://www.openstreetmap.org/node/10594728522, Verifiable Computing Project - Truly Open Source Hardware (en), lecture, https://forum.dmz.rs/t/plan-za-decembar-2024/815/29
|
||||
17-12-2024, 19:00, DC Krov https://www.openstreetmap.org/node/10594728522, Hardverski hakaton, hack, https://forum.dmz.rs/t/hardware-hackathon-novembar/832
|
||||
18-12-2024, 19:00, DC Krov https://www.openstreetmap.org/node/10594728522, Git basics (en), lecture,
|
||||
23-12-2024, 19:00, DC Krov https://www.openstreetmap.org/node/10594728522, Osnove Elektrotehnike (OET), lecture,
|
||||
24-12-2024, 19:00, DC Krov https://www.openstreetmap.org/node/10594728522, Praznicno-novogodisnji izazov u kodiranju 2024, hack,
|
||||
13-01-2025, 19:00, DC Krov https://www.openstreetmap.org/node/10594728522, Lightning talks, lighting,
|
||||
14-01-2025, 19:00, DC Krov https://www.openstreetmap.org/node/10594728522, Hardware hackathon, hack, https://wiki.dmz.rs/decentrala/dogadjaji/hakaton
|
||||
20-01-2025, 19:00, DC Krov https://www.openstreetmap.org/node/10594728522, Parser combinators (Haskel introduction hard way), lecture,
|
||||
21-01-2025, 19:00, DC Krov https://www.openstreetmap.org/node/10594728522, Sysadmin vežbe, workshop, https://wiki.dmz.rs/en/sysadmin
|
||||
27-01-2025, 19:00, DC Krov https://www.openstreetmap.org/node/10594728522, Svet van linuxa, lecture,
|
||||
28-01-2025, 19:00, DC Krov https://www.openstreetmap.org/node/10594728522, OpenStreetMap editovanje, meeting, https://osmcal.org/event/3355/
|
||||
03-02-2025, 19:00, DC Krov https://www.openstreetmap.org/node/10594728522, Gaming audio, lecture,
|
||||
04-02-2025, 19:00, DC Krov https://www.openstreetmap.org/node/10594728522, Guitar pedals, lecture workshop,
|
||||
10-02-2025, 19:00, DC Krov https://www.openstreetmap.org/node/10594728522, Lightning talks, lighting,
|
||||
11-02-2025, 19:00, DC Krov https://www.openstreetmap.org/node/10594728522, TIC-80 gamejam, hack, https://forum.dmz.rs/t/tic-80-game-jam/946
|
||||
17-02-2025, 19:00, DC Krov https://www.openstreetmap.org/node/10594728522, Sysadmin radionica, workshop,
|
||||
18-02-2025, 20:00, DC Krov https://www.openstreetmap.org/node/10594728522, Tumbleweed board game implementation (Rust/MCTS/GGEZ), lecture,
|
||||
24-02-2025, 19:00, DC Krov https://www.openstreetmap.org/node/10594728522, Idejno-politička diskusija, discussion,
|
||||
25-02-2025, 19:00, DC Krov https://www.openstreetmap.org/node/10594728522, Intro to 3d printing, lecture,
|
||||
|
|
@ -1,3 +0,0 @@
|
||||
<h1>Events</h1>
|
||||
<p>Following list contains all forthcoming events. Held events are listed in <a href="/en/events_archive">archive</a>.</p><br>
|
||||
<p>We also provide <a href="https://dmz.rs/events.ical">ical file</a></p><br>
|
@ -1,4 +0,0 @@
|
||||
<h1>Događaji</h1>
|
||||
<p>Naredna lista sadrži sve predstojeće događaje. Za listu održanih događaja pogledaj <a href="/events_archive">arhivu</a>.</p><br>
|
||||
<p>Događaje možeš učitati i sa <a href="https://dmz.rs/events.ical">ical</a> datotekom.</p><br>
|
||||
|
15
prep.py
15
prep.py
@ -107,6 +107,13 @@ def build_ical(events: list[dict]) -> str:
|
||||
event_template = event_template.replace("<!--DATE-->", date)
|
||||
event_template = event_template.replace("<!--TITLE-->", title)
|
||||
event_template = event_template.replace("<!--URL-->", url)
|
||||
if location.startswith("DC Krov"):
|
||||
event_template = event_template.replace("<!--LOCATION-->", "DC Krov\\, Kraljice Marije 47\\, 6\\, Beograd\\, Serbia")
|
||||
elif location.startswith("Matematički fakultet (Učionica 153)"):
|
||||
event_template = event_template.replace("<!--LOCATION-->", "Matematički fakultet\\, Svetog Nikole 39\\, Beograd\\, Serbia")
|
||||
else:
|
||||
event_template = event_template.replace("<!--LOCATION-->", "")
|
||||
|
||||
|
||||
events_ical += event_template
|
||||
# Footer
|
||||
@ -134,7 +141,7 @@ for key, value_pair in TYPES_DICT.items():
|
||||
|
||||
# Build Serbian Events page
|
||||
new_events_html = build_html(new_events, DAYS_SR, sr_types)
|
||||
with open("pages/sr/events.html", "r") as file:
|
||||
with open("template/events-sr.html", "r") as file:
|
||||
page_template = ([line for line in file])
|
||||
|
||||
with open("pages/sr/events.html", "w") as file:
|
||||
@ -142,7 +149,7 @@ with open("pages/sr/events.html", "w") as file:
|
||||
|
||||
# Build English Events page
|
||||
new_events_html = build_html(new_events, DAYS_EN, en_types)
|
||||
with open("pages/en/events.html", "r") as file:
|
||||
with open("template/events-en.html", "r") as file:
|
||||
page_template = ([line for line in file])
|
||||
|
||||
with open("pages/en/events.html", "w") as file:
|
||||
@ -150,7 +157,7 @@ with open("pages/en/events.html", "w") as file:
|
||||
|
||||
# Build Serbian Archive page
|
||||
past_events_html = build_html(past_events, DAYS_SR, sr_types)
|
||||
with open("pages/sr/events_archive.html", "r") as file:
|
||||
with open("template/events_archive-sr.html", "r") as file:
|
||||
page_template = ([line for line in file])
|
||||
|
||||
with open("pages/sr/events_archive.html", "w") as file:
|
||||
@ -158,7 +165,7 @@ with open("pages/sr/events_archive.html", "w") as file:
|
||||
|
||||
# Build English Archive page
|
||||
past_events_html = build_html(past_events, DAYS_EN, en_types)
|
||||
with open("pages/en/events_archive.html", "r") as file:
|
||||
with open("template/events_archive-en.html", "r") as file:
|
||||
page_template = ([line for line in file])
|
||||
|
||||
with open("pages/en/events_archive.html", "w") as file:
|
||||
|
BIN
site/img/students_bug.jpg
Normal file
BIN
site/img/students_bug.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 158 KiB |
@ -6,7 +6,7 @@ DTSTART;TZID=Europe/Belgrade:<!--DATE-->
|
||||
DTEND;TZID=Europe/Belgrade:<!--DATE-->
|
||||
GEO:+44.805613;+20.479234
|
||||
LAST-MODIFIED:<!--CREATED-->
|
||||
LOCATION:DC Krov\, Kraljice Marije 47\, 6\, Beograd\, Serbia
|
||||
LOCATION:<!--LOCATION-->
|
||||
STATUS:CONFIRMED
|
||||
SUMMARY:<!--TITLE-->
|
||||
URL;TYPE=URI:<!--URL-->
|
||||
|
8
template/events-en.html
Normal file
8
template/events-en.html
Normal file
@ -0,0 +1,8 @@
|
||||
<h1>Events</h1>
|
||||
<p>
|
||||
Following list contains all forthcoming events. Held events are listed in
|
||||
<a href="/en/events_archive">archive</a>.
|
||||
</p>
|
||||
<br />
|
||||
<p>We also provide <a href="https://dmz.rs/events.ical">ical file</a></p>
|
||||
<br />
|
11
template/events-sr.html
Normal file
11
template/events-sr.html
Normal file
@ -0,0 +1,11 @@
|
||||
<h1>Događaji</h1>
|
||||
<p>
|
||||
Naredna lista sadrži sve predstojeće događaje. Za listu održanih događaja
|
||||
pogledaj <a href="/events_archive">arhivu</a>.
|
||||
</p>
|
||||
<br />
|
||||
<p>
|
||||
Događaje možeš učitati i sa
|
||||
<a href="https://dmz.rs/events.ical">ical</a> datotekom.
|
||||
</p>
|
||||
<br />
|
@ -52,6 +52,7 @@
|
||||
<nav>
|
||||
<a href="/en/events">Events</a>
|
||||
<a href="/en/services">Services</a>
|
||||
<a href="/en/statute">Statute</a>
|
||||
<a href="/en/about">About</a>
|
||||
<a href="/en/account">Account</a>
|
||||
<a href="/en/donations">Donations</a>
|
||||
|
@ -52,6 +52,7 @@
|
||||
<nav>
|
||||
<a href="/events">Događaji</a>
|
||||
<a href="/services">Servisi</a>
|
||||
<a href="/statute">Statut</a>
|
||||
<a href="/about">O nama</a>
|
||||
<a class="account" href="/account">Nalog</a>
|
||||
<a href="/donations">Donacije</a>
|
||||
|
Loading…
Reference in New Issue
Block a user