Skip to content

Commit

Permalink
Merge pull request #130 from euroscipy/wip/euroscipy2024
Browse files Browse the repository at this point in the history
Add Featured Talks
  • Loading branch information
SepidehAlassi authored Jul 3, 2024
2 parents e708a44 + 52e0729 commit 64db54b
Show file tree
Hide file tree
Showing 8 changed files with 754 additions and 24 deletions.
2 changes: 2 additions & 0 deletions content/metadata/2024/menu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
submenu:
- name: Call for Proposals
url: program.html
- name: Featured Talks
url: featured_talks.html
- name: Schedule
url: 'schedule.html'
- name: Keynotes
Expand Down
12 changes: 0 additions & 12 deletions content/pages/2024/accepted_talks.md

This file was deleted.

374 changes: 374 additions & 0 deletions content/pages/2024/featured_talks.md

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions content/pages/2024/program_menu.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ slug: program_2024
### Program Items

- [Call for Proposals](program.html)
- [Featured Talks](featured_talks.html)
- [Keynotes](keynotes.html)
- [Spotlight and Poster Session](poster_session.html)
- [Sprint](sprint.html)
Expand Down
1 change: 0 additions & 1 deletion content/pages/2024/schedule.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,4 @@ slug: schedule_2024
---

# Schedule

TBA
363 changes: 363 additions & 0 deletions poster_parser/confirmed.md

Large diffs are not rendered by default.

23 changes: 13 additions & 10 deletions poster_parser/parser_speaker.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# %%
import pandas as pd

proposals = pd.read_csv("euroscipy-2023_sessions.csv")
proposals = pd.read_csv("euroscipy-2024_sessions.csv")

# %%
proposals.head()
Expand All @@ -15,14 +15,17 @@

output_md = ""
for _, proposal in proposals.iterrows():
if proposal["Session type"] == "Poster":
output_md += f"\n## {proposal['Proposal title']}\n\n"
name = proposal["Speaker names"]
if not isinstance(name, str):
name = "To Be Defined"
output_md += f"*{name}*\n\n"
output_md += f"**Abstract:** {proposal['Abstract']}\n\n"
output_md += f'<a href="https://pretalx.com/euroscipy-2023/talk/{proposal["ID"]}/"><button type="button" class="btn btn-primary">All details</button></a>\n\n'
print(output_md)
output_md += f"\n## {proposal['Proposal title']}\n\n"
session_type=proposal['Session type']
track = proposal['Track']
name = proposal["Speaker names"]
if not isinstance(name, str):
name = "To Be Defined"
output_md += f"*{name}*, *{session_type}*, *{track}*\n\n"
output_md += f"**Abstract:** {proposal['Abstract']}\n\n"
output_md += f'<a href="https://pretalx.com/euroscipy-2024/talk/{proposal["ID"]}/"><button type="button" class="btn btn-primary">All details</button></a>\n\n'

with open('confirmed.md', 'w') as file:
file.write(output_md)

# %%
2 changes: 1 addition & 1 deletion theme/beevibrant/templates/schedule.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

{% block head %}
{{ super() }}
<script src="https://pretalx.com/euroscipy-2023/schedule/widget/v2.en.js"></script>
<script type="text/javascript" src="https://pretalx.com/euroscipy-2024/widgets/schedule.js"></script>
<script>
window.onload = function() {
let body_style = document.body.style
Expand Down

0 comments on commit 64db54b

Please sign in to comment.