Files
godot-showreel-voting/templates/default.html
Iñigo b031a52d6a Flask remake (#23)
* initial backend setup

* copied db setup

* added login

* added autoincrement to ids

* update db again

* added script to populate with test data

* added functionality to fetch videos

* added vote functionality

* added logic to update video info

* added history

* updated readme

* Update thank you page

* fixed small bugs

* small improvements

* added admin view, UI fix

* fix vote buttons style

* added pagination

* added command to load sample data from csv

* Autoplay videos

* Adding before you vote page

* added yt video id extractor

* improve visibility for the history page votes

* added logic for before you vote disclaimer

* Remind people to set videos to unlisted and allowed for embed

* Update home.html

* Update home.html

* Add progress bar to total

* Small adjustments

* fix home {% if user %}

* Update macros.html

* limit vote views to users with specific roles

* added endpoint to delete votes

* added confirmation to the delete vote action

* Update non-fund members CTA

* allow voting to specific fund members

* added result csv endpoint

* updated auth

* revert adding 'vote_allowed' column, merged it into is_staff

* added `is_fund_member` attribute to table and updated code

* refactored code

* update style for voting page

* updated readme

* Add static files

* remove options from dropdown for users that can't vote

* added keyboard shortcuts to vote buttons

* added azerty support for shortcuts

* update skip to S key

* remove placeholder

---------

Co-authored-by: Emi <2206700+coppolaemilio@users.noreply.github.com>
2025-10-02 12:07:03 +02:00

35 lines
1.8 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="{% if description %}{{ description }}{% else %}Godot's annual showreel voting platform.{% endif %}">
<title>{% if title %}{{ title }} - {% endif %}Godot Showreel Voting</title>
<link rel="icon" href="/static/images/favicon.svg" type="image/svg+xml">
<link rel="stylesheet" href="/static/css/1.1/base.css">
<link rel="stylesheet" href="https://store-beta.godotengine.org/static/style/main.css">
<link rel="stylesheet" href="/static/css/1.1/nav.css">
<script src="https://unpkg.com/htmx.org@1.9.12"></script>
<script src="https://store-beta.godotengine.org/static/js/tiny-slider.js"></script>
<meta property="og:site_name" content="Godot Showreel Voting">
<meta property="og:type" content="website">
<meta property="og:title" content="{% if title %}{{ title }} - {% endif %}Godot Showreel Voting">
<meta property="og:description" content="{% if description %}{{ description }}{% else %}Godot's annual showreel voting platform.{% endif %}">
<meta property="og:image" content="{% if thumbnail %}{{ storage.backend.url_for(thumbnail) }}{% else %}/static/images/share-image.webp{% endif %}">
<meta name="twitter:card" content="summary_large_image">
</head>
<body>
<noscript style="display: block; margin-top: 68px; background-color: #f8d7da; color: #721c24; padding: 1rem; margin-bottom: -68px; text-align: center;">
<p>JavaScript is disabled in your browser. Some features of this site may not work properly.</p>
</noscript>
{% import "macros.html" as macros %}
{% if hide_nav %}{% else %}{{ macros.nav(user) }}{% endif %}
{{ content | safe }}
{{ macros.footer() }}
<script src="/static/main.js"></script>
</body>
</html>