Skip to content

Commit

Permalink
Adding agenda
Browse files Browse the repository at this point in the history
  • Loading branch information
Ariel Jolo committed Mar 31, 2024
1 parent 5fbdbb4 commit d847192
Show file tree
Hide file tree
Showing 5 changed files with 488 additions and 56 deletions.
12 changes: 6 additions & 6 deletions app/templates/agenda.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ <h1 class="display-1 fw-bold text-white">{{ _("Conocé la agenda del evento") }}
<h3 class="text-white">
<br>
<br>
{{ _("Te traemos una selección de más de 150 charlas, talleres y actividades de primer nivel.") }}
{{ _("Te traemos una selección de charlas, talleres y actividades de primer nivel.") }}
<br />
<ul>
<li>{{ _("Martes 26 y miércoles 27: solo charlas virtuales") }}</li>
<li>{{ _("Jueves 28 al sábado 30: presencial en el Konex") }}</li>
<li>{{ _("Jueves 11 de abril: solo charlas virtuales") }}</li>
<li>{{ _("Viernes 12 y sábado 13 de abril: presencial en el GAM + streaming") }}</li>
<li>{{ _("Los talleres son solamente de manera virtual") }}</li>
</ul>
{{ _("Todo el contenido va a estar disponible vía streaming en vivo, para que no te pierdas de nada.") }}
Expand All @@ -37,7 +37,7 @@ <h3 class="text-white">
</div>
<br />
<div class="container">
<h1>{{ _("Desplegá los ítems para conocer la agenda de cada track") }}</h1>
<h1>{{ _("Despliega los ítems para conocer la agenda de cada día") }}</h1>
{# Acordeón con el contenido de las FAQ #}
<div class="accordion">
{% for item in agenda %}
Expand Down Expand Up @@ -69,11 +69,11 @@ <h2 class="accordion-header ">
</div>
</div>
<div class="d-flex flex-column align-items-center justify-content-center ">
<a href='https://registro.nerdear.la/?utm_source=agenda'
<a href='https://reg.nerdear.la/?utm_source=agenda'
class="dark_custom_button my-3">
<div class="dark_button__line"></div>
<div class="dark_button__line"></div>
<span class="dark_button__text">{{ _("Sacá tu entrada gratuita!") }}</span>
<span class="dark_button__text">{{ _("¡Regístrate gratis!") }}</span>
</a>
</div>
<script src="{{ url_for('static', filename='js/agenda.js') }}"></script>
Expand Down
7 changes: 2 additions & 5 deletions app/templates/components/navbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,10 @@
<div class="collapse navbar-collapse " id="collapsable-navbar-menu">
<div class="navbar-nav me-auto justify-content-center align-items-center">
{# Put the items (apart of brand) of the navbar here #}
<a class="nav-link nav-item"
href="{{ url_for('index', lang_code=lang_code) }}">{{ _("Home") }}</a>
<a class="nav-link nav-item" href="{{ url_for('index', lang_code=lang_code) }}">{{ _("Home") }}</a>
<a class="nav-link nav-item" href="{{ url_for('agenda', lang_code=lang_code) }}">{{ _("Agenda") }}</a>
<a class="nav-link nav-item" href="{{ url_for('sponsors', lang_code=lang_code) }}">{{ _("Sponsors") }}</a>
<a href="{{ url_for('code_of_conduct', lang_code=lang_code) }}" class="nav-item nav-link px-2 text-white">{{ _("Código de Conducta") }}</a>

{# <a class="nav-link nav-item"
href="{{ url_for('agenda', lang_code=lang_code) }}">{{ _("Agenda") }}</a> #}
{# <a class="nav-link nav-item"
href="https://nerdear.live/sponsors">{{ _("Stands virtuales") }}</a> #}
{# <a class="nav-link nav-item"
Expand Down
57 changes: 12 additions & 45 deletions datasets/agenda.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,66 +10,33 @@
"ignore": true
},
{
"title": "On-demand",
"iframe_url": "https://app.swapcard.com/widget/event/nerdearla-2022/plannings/RXZlbnRWaWV3XzM4NTU3Ng==?showActions=true",
"ignore": true
"title": "Jueves 11 de abril (virtual)",
"iframe_url": "https://app.swapcard.com/widget/event/nerdearla-chile-2024/plannings/RXZlbnRWaWV3XzgxMDg4NQ==?showActions=true",
"ignore": false,
"cssName": "test"
},
{
"title": "Track DATA",
"iframe_url": "https://app.swapcard.com/widget/event/nerdearla-2023/plannings/RXZlbnRWaWV3XzYwMjEwNw==?showActions=true",
"title": "Viernes 12 de abril (GAM + streaming)",
"iframe_url": "https://app.swapcard.com/widget/event/nerdearla-chile-2024/plannings/RXZlbnRWaWV3XzgxMDg4Ng==?showActions=true",
"ignore": false,
"cssName": "data"
},
{
"title": "Track DEV",
"iframe_url": "https://app.swapcard.com/widget/event/nerdearla-2023/plannings/RXZlbnRWaWV3XzYwMjEwOA==?showActions=true",
"title": "Sábado 13 de abril (GAM + streaming)",
"iframe_url": "https://app.swapcard.com/widget/event/nerdearla-chile-2024/plannings/RXZlbnRWaWV3XzgxMDg4Nw==?showActions=true",
"ignore": false,
"cssName": "dev"
},
{
"title": "Track INFRA",
"iframe_url": "https://app.swapcard.com/widget/event/nerdearla-2023/plannings/RXZlbnRWaWV3XzYwMjEwOQ==?showActions=true",
"title": "Workshops virtuales",
"iframe_url": "https://app.swapcard.com/widget/event/nerdearla-chile-2024/plannings/RXZlbnRWaWV3XzgxMDg4NA==?showActions=true",
"ignore": false,
"cssName": "infra"
},
{
"title": "Track KIDS",
"iframe_url": "https://app.swapcard.com/widget/event/nerdearla-2023/plannings/RXZlbnRWaWV3XzYzODcyMw==?showActions=true",
"ignore": false,
"cssName": "kids"
},
{
"title": "Track NERD",
"iframe_url": "https://app.swapcard.com/widget/event/nerdearla-2023/plannings/RXZlbnRWaWV3XzYwMjExMQ==?showActions=true",
"title": "Agenda Completa",
"iframe_url": "https://app.swapcard.com/widget/event/nerdearla-chile-2024/plannings/RXZlbnRWaWV3Xzc5Mjk2Ng==?showActions=true",
"ignore": false,
"cssName": "nerd"
},
{
"title": "Track SEC",
"iframe_url": "https://app.swapcard.com/widget/event/nerdearla-2023/plannings/RXZlbnRWaWV3XzYwMjExMg==?showActions=true",
"ignore": false,
"cssName": "sec"
},
{
"title": "Track TEST",
"iframe_url": "https://app.swapcard.com/widget/event/nerdearla-2023/plannings/RXZlbnRWaWV3XzYwMjExMw==?showActions=true",
"ignore": false,
"cssName": "test"
},
{
"title": "Track UX",
"iframe_url": "https://app.swapcard.com/widget/event/nerdearla-2023/plannings/RXZlbnRWaWV3XzYwMjExMA==?showActions=true",
"ignore": false,
"cssName": "ux"
},
{
"title": "Workshops",
"iframe_url": "https://app.swapcard.com/widget/event/nerdearla-2023/plannings/RXZlbnRWaWV3XzYwMjExNg==?showActions=true",
"ignore": false
},
{
"title": "Agenda Completa",
"iframe_url": "https://app.swapcard.com/widget/event/nerdearla-2023/plannings/RXZlbnRWaWV3XzYwMjEwNg==?showActions=true",
"ignore": false
}
]
29 changes: 29 additions & 0 deletions logs/general.log
Original file line number Diff line number Diff line change
Expand Up @@ -292,3 +292,32 @@ Traceback (most recent call last):
return float(self.obj)
^^^^^^^^^^^^^^^
TypeError: float() argument must be a string or a real number, not 'dict'
2024-03-31 18:18:49,365 - ERROR - Exception on /en/agenda/ [GET]
Traceback (most recent call last):
File "/Users/ajolo/Dropbox/sysARmy/nerdearla/2024/osx/lib/python3.9/site-packages/flask/app.py", line 2190, in wsgi_app
response = self.full_dispatch_request()
File "/Users/ajolo/Dropbox/sysARmy/nerdearla/2024/osx/lib/python3.9/site-packages/flask/app.py", line 1486, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/Users/ajolo/Dropbox/sysARmy/nerdearla/2024/osx/lib/python3.9/site-packages/flask/app.py", line 1484, in full_dispatch_request
rv = self.dispatch_request()
File "/Users/ajolo/Dropbox/sysARmy/nerdearla/2024/osx/lib/python3.9/site-packages/flask/app.py", line 1469, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
File "/Users/ajolo/Dropbox/sysARmy/nerdearla/2024/2024.nerdear.la/app/routes.py", line 182, in agenda
return render_template(
File "/Users/ajolo/Dropbox/sysARmy/nerdearla/2024/osx/lib/python3.9/site-packages/flask/templating.py", line 150, in render_template
template = app.jinja_env.get_or_select_template(template_name_or_list)
File "/Users/ajolo/Dropbox/sysARmy/nerdearla/2024/osx/lib/python3.9/site-packages/jinja2/environment.py", line 1081, in get_or_select_template
return self.get_template(template_name_or_list, parent, globals)
File "/Users/ajolo/Dropbox/sysARmy/nerdearla/2024/osx/lib/python3.9/site-packages/jinja2/environment.py", line 1010, in get_template
return self._load_template(name, globals)
File "/Users/ajolo/Dropbox/sysARmy/nerdearla/2024/osx/lib/python3.9/site-packages/jinja2/environment.py", line 969, in _load_template
template = self.loader.load(self, name, self.make_globals(globals))
File "/Users/ajolo/Dropbox/sysARmy/nerdearla/2024/osx/lib/python3.9/site-packages/jinja2/loaders.py", line 137, in load
code = environment.compile(source, name, filename)
File "/Users/ajolo/Dropbox/sysARmy/nerdearla/2024/osx/lib/python3.9/site-packages/jinja2/environment.py", line 768, in compile
self.handle_exception(source=source_hint)
File "/Users/ajolo/Dropbox/sysARmy/nerdearla/2024/osx/lib/python3.9/site-packages/jinja2/environment.py", line 936, in handle_exception
raise rewrite_traceback_stack(source=source)
File "/Users/ajolo/Dropbox/sysARmy/nerdearla/2024/2024.nerdear.la/app/templates/agenda.html", line 27, in template
<li>{{ _(Jueves 11 de abril: solo charlas virtuales") }}</li>
jinja2.exceptions.TemplateSyntaxError: expected token ',', got 'integer'
Loading

0 comments on commit d847192

Please sign in to comment.