From be463fc60f311f65bba3a81de6da61e00e50424c Mon Sep 17 00:00:00 2001 From: Qb Date: Fri, 17 Jan 2025 00:20:38 +0100 Subject: [PATCH] wip 20 --- app/assets/stylesheets/frontend/pages/_list.scss | 2 +- app/views/frontend/shared/_event_metadata.haml | 6 +++++- app/views/frontend/shared/_event_with_conference.html.haml | 5 +---- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/app/assets/stylesheets/frontend/pages/_list.scss b/app/assets/stylesheets/frontend/pages/_list.scss index 41f77855..368dec39 100644 --- a/app/assets/stylesheets/frontend/pages/_list.scss +++ b/app/assets/stylesheets/frontend/pages/_list.scss @@ -63,7 +63,7 @@ body.page-list { float: right; &, a { - color: lighten(#333333, 25%); + color: var(--text-muted); } } diff --git a/app/views/frontend/shared/_event_metadata.haml b/app/views/frontend/shared/_event_metadata.haml index 2b4477c8..cfd212b9 100644 --- a/app/views/frontend/shared/_event_metadata.haml +++ b/app/views/frontend/shared/_event_metadata.haml @@ -26,4 +26,8 @@ %span.icon.icon-eye = event.view_count %li.persons - = render partial: 'frontend/shared/event_persons', locals: { persons: event.persons } \ No newline at end of file + = render partial: 'frontend/shared/event_persons', locals: { persons: event.persons } + - if conference + .conference + %a{href: conference_path(acronym: conference.acronym)} + = conference.title \ No newline at end of file diff --git a/app/views/frontend/shared/_event_with_conference.html.haml b/app/views/frontend/shared/_event_with_conference.html.haml index b7ca83c3..f0ce8239 100644 --- a/app/views/frontend/shared/_event_with_conference.html.haml +++ b/app/views/frontend/shared/_event_with_conference.html.haml @@ -1,7 +1,4 @@ - cache([event.conference, event], expires_in: 2.hours) do .event-preview.has-conference = render partial: 'frontend/shared/event_thumb', locals: { event: event } - = render partial: 'frontend/shared/event_metadata', locals: { event: event } - .conference - %a{href: conference_path(acronym: event.conference.acronym)} - = event.conference.title + = render partial: 'frontend/shared/event_metadata', locals: { event: event, conference: event.conference }