def settings():
return render_template("settings.html")
+@app.get("/dreams-archive")
+def dreams_archive():
+ page_songs = songs.get_all_for_tag("dreams_archive")
+ return render_template("dreams-archive.html", songs=page_songs)
+
@app.get("/service.js")
def service_worker():
return send_from_directory("static", "service.js")
<a href="/about">About</a>
<a href="/site-news">News</a>
<a href="/songs">Random</a>
+ <a href="/dreams-archive">Dreams Archive</a>
</div>
<div class="navbar">
--- /dev/null
+{% extends "base.html" %}
+
+{% block title %}Songs{% endblock %}
+
+{% block body %}
+
+<h1>dreams archive</h1>
+
+<p>This music was made in <a href="https://indreams.me">Dreams</a> on PlayStation.</p>
+<p><small>To add a song to the archive, simply give it the <tt><b>dreams_archive</b></tt> tag.</small></p>
+
+{% from "song-macros.html" import song_list %}
+{{ song_list(songs, current_user_playlists) }}
+
+{% endblock %}
</div>
<div class="upload-form">
<label for="tags">Tags</label><br>
- <input type="text" name="tags" placeholder="country, extratone, vocals, ..." value="{{ ", ".join(song.tags) }}" maxlength="350">
+ <small>Made in Dreams? Use the <a href="/dreams-archive"><tt><b>dreams_archive</b></tt></a> tag!</small><br>
+ <input type="text" name="tags" id="tags" placeholder="dreams_archive, extratone, vocals, ..." value="{{ ", ".join(song.tags) }}" maxlength="350">
</div>
<div class="upload-form">
<label for="collabs">Collaborators</label><br>
document.getElementById("song-duration-container").required = true;
document.getElementById("fade-out-container").hidden = false;
+
+ document.getElementById("tags").value = "dreams_archive, "
}
}