fossasia / eventyay-talk

eventyay speakers and talks component
Apache License 2.0
1.48k stars 47 forks source link

add-video-link #140

Open AviGawande opened 1 month ago

AviGawande commented 1 month ago

This PR closes/references issue #133 . It does so by providing an URL in the events general settings

How has this been tested?

Checklist

Summary by Sourcery

This pull request introduces a new feature allowing users to add an online video URL to the event settings. The event header will display a 'Videos' button linking to this URL if provided. Tests have been added to ensure the new functionality works as expected.

sourcery-ai[bot] commented 1 month ago

Reviewer's Guide by Sourcery

This pull request adds a new feature to include an online video URL in the event settings. The changes involve adding a new field to the event form, updating the event settings template to include this new field, and modifying the event header template to display the video link if it is set.

File-Level Changes

Files Changes
src/pretalx/orga/forms/event.py
src/pretalx/orga/templates/orga/settings/form.html
Added a new 'video_link' field to the event form and updated the settings form template to include this new field.
src/pretalx/agenda/templates/agenda/header_row.html Updated the event header template to display the video link if it is set in the event settings.

Tips - Trigger a new Sourcery review by commenting `@sourcery-ai review` on the pull request. - Continue your discussion with Sourcery by replying directly to review comments. - You can change your review settings at any time by accessing your [dashboard](https://app.sourcery.ai): - Enable or disable the Sourcery-generated pull request summary or reviewer's guide; - Change the review language; - You can always [contact us](mailto:support@sourcery.ai) if you have any questions or feedback.
mariobehling commented 1 month ago

Please add screenshots.

AviGawande commented 1 month ago

image

AviGawande commented 1 month ago

image @mariobehling added the screenshots here