diff --git a/TODO b/TODO
index 920391b..c4a7705 100644
--- a/TODO
+++ b/TODO
@@ -1,2 +1 @@
-- List profiles with talks
- Chat
\ No newline at end of file
diff --git a/app/website/consumers.py b/app/website/consumers.py
index 1253048..39d52ac 100644
--- a/app/website/consumers.py
+++ b/app/website/consumers.py
@@ -50,10 +50,11 @@ class WebsiteConsumer(AsyncWebsocketConsumer):
# Single talk
if data["value"] == "single-talk":
await self.channel_layer.group_send(
- self.room_group_name, {
+ self.room_group_name,
+ {
"type": "send_page_single_talk",
- "id": data["id"],
- }
+ "id": data["id"],
+ },
)
# Profiles
if data["value"] == "profiles":
@@ -70,10 +71,11 @@ class WebsiteConsumer(AsyncWebsocketConsumer):
# Search
if data["value"] == "search-talks":
await self.channel_layer.group_send(
- self.room_group_name, {
+ self.room_group_name,
+ {
"type": "send_page_search",
"search": data["search"],
- }
+ },
)
# Pages
diff --git a/app/website/templates/components/link.html b/app/website/templates/components/link.html
index 75447c9..b441f64 100644
--- a/app/website/templates/components/link.html
+++ b/app/website/templates/components/link.html
@@ -6,6 +6,9 @@
{% if page %}
{% endif %}
+ {% if id %}
+
+ {% endif %}
{# Button #}
- {{ text }}
+ {{ children }}
\ No newline at end of file
diff --git a/app/website/templates/layouts/base.html b/app/website/templates/layouts/base.html
index 95e3c5f..932bfa0 100644
--- a/app/website/templates/layouts/base.html
+++ b/app/website/templates/layouts/base.html
@@ -30,15 +30,15 @@
{# To page Talks #}
- {% #link text="Talks" action="page" value="talks" scroll-up="true" %}{% /link %}
+ {% #link action="page" value="talks" scroll-up="true" %}Talks{% /link %}
{# To page Profiles #}
- {% #link text="Profiles" action="page" value="profiles" scroll-up="true" %}{% /link %}
+ {% #link action="page" value="profiles" scroll-up="true" %}Profiles{% /link %}
{# To page About #}
- {% #link text="About" action="page" value="about" scroll-up="true" %}{% /link %}
+ {% #link action="page" value="about" scroll-up="true" %}About{% /link %}
diff --git a/app/website/templates/pages/profiles.html b/app/website/templates/pages/profiles.html
index 174189a..1139539 100644
--- a/app/website/templates/pages/profiles.html
+++ b/app/website/templates/pages/profiles.html
@@ -1,4 +1,5 @@
{% load static %}
+{% load slippers %}
{# List Profiles #}
@@ -9,14 +10,15 @@
{{ profile.full_name }}
- {# #}
+
Talks
{% for talk in profile.talkspeaker.all %}
- {{ talk.title }}
+
+ {% #link action="page" value="single-talk" id=talk.id scroll-up="true" %}{{ talk.title }}{% /link %}
{% endfor %}
diff --git a/app/website/templates/pages/talk-single.html b/app/website/templates/pages/talk-single.html
index 0708332..8593602 100644
--- a/app/website/templates/pages/talk-single.html
+++ b/app/website/templates/pages/talk-single.html
@@ -13,6 +13,6 @@
Author {{ talk.author.full_name }} - {{ talk.category.name }}
- {% #link text="Back" action="page" value="talks" page=1 %}{% /link %}
+ {% #link action="page" value="talks" page=1 %}More talks{% /link %}
\ No newline at end of file
diff --git a/app/website/templates/pages/talks.html b/app/website/templates/pages/talks.html
index 9e94d56..de81ace 100644
--- a/app/website/templates/pages/talks.html
+++ b/app/website/templates/pages/talks.html
@@ -23,10 +23,7 @@
{% if talks %}
{% for talk in talks %}