Skip to content

Commit

Permalink
Add mobile link to participants
Browse files Browse the repository at this point in the history
  • Loading branch information
mikkohei13 committed Jul 16, 2024
1 parent 95e2349 commit b9265f0
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 16 deletions.
13 changes: 0 additions & 13 deletions app/main.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Flask app main file.

from flask import Flask, render_template, redirect, session, g, flash, request, send_from_directory
from flask_caching import Cache

from functools import wraps
from datetime import timedelta
Expand All @@ -18,18 +17,6 @@

app = Flask(__name__)

# Cache setup
'''
config = {
"DEBUG": False,
"CACHE_TYPE": "SimpleCache",
"CACHE_DEFAULT_TIMEOUT": 60
}
app.config.from_mapping(config)
cache = Cache(app)
'''

# Get secret key from environment variables, stop if not found.
secret_key = os.environ.get("FLASK_SECRET_KEY")
if secret_key is None:
Expand Down
7 changes: 4 additions & 3 deletions app/static/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -313,9 +313,6 @@ a:visited {
padding-right: 1em;
}

.participation .button {
}

#add_participation {
margin: 0.7em 0 0 2em;
}
Expand Down Expand Up @@ -510,6 +507,10 @@ padding: 10px;
display: inline;
margin-right: 1em;
}

.only_mobi {
display: none;
}

}

Expand Down
7 changes: 7 additions & 0 deletions app/templates/challenge.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,14 @@ <h2>Osallistumiseni tähän haasteeseen</h2>
{{ html["participations_html"]|safe }}
</div>

<ul class="only_mobi">
<li>
<a href="#challenge_participants">Hyppää osallistujaluetteloon</a>
</li>
</ul>

<div id="challenge_results_container">

<div id="challenge_species">
<h2>Havaitut lajit</h2>
{{ html["taxa_html"]|safe }}
Expand Down

0 comments on commit b9265f0

Please sign in to comment.