Skip to content

Commit

Permalink
Changelog page
Browse files Browse the repository at this point in the history
  • Loading branch information
Celeo committed Oct 16, 2024
1 parent 31351eb commit 3e2102f
Show file tree
Hide file tree
Showing 3 changed files with 80 additions and 0 deletions.
10 changes: 10 additions & 0 deletions vzdv-site/src/endpoints/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,12 @@ async fn page_feedback_form_post(
Ok(Redirect::to("/feedback"))
}

async fn page_changelog(State(state): State<Arc<AppState>>) -> Result<Html<String>, AppError> {
let template = state.templates.get_template("changelog")?;
let rendered = template.render(context! { no_links => true })?;
Ok(Html(rendered))
}

/// This file's routes and templates.
pub fn router(templates: &mut Environment) -> Router<Arc<AppState>> {
templates
Expand All @@ -117,10 +123,14 @@ pub fn router(templates: &mut Environment) -> Router<Arc<AppState>> {
templates
.add_template("feedback", include_str!("../../templates/feedback.jinja"))
.unwrap();
templates
.add_template("changelog", include_str!("../../templates/changelog.jinja"))
.unwrap();

Router::new()
.route("/404", get(page_404))
.route("/feedback", get(page_feedback_form))
.route("/feedback", post(page_feedback_form_post))
.route("/changelog", get(page_changelog))
.nest_service("/assets", ServeDir::new("assets"))
}
1 change: 1 addition & 0 deletions vzdv-site/templates/_layout.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@
<br>
All content herein is solely for use on the <a href="https://vatsim.net/" class="text-decoration-none" target="_blank">VATSIM network</a>.
<a href="https://github.com/Celeo/vzdv" class="text-decoration-none" target="_blank">FOSS</a>.
<a href="/changelog" class="text-decoration-none">Changelog</a>.
</p>
</div>
</div>
Expand Down
69 changes: 69 additions & 0 deletions vzdv-site/templates/changelog.jinja
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
{% extends "_layout" %}

{% block title %}Changelog | {{ super() }}{% endblock %}

{% block body %}

<h2 class="pb-3">Changelog</h2>

<h4>What is this?</h4>
<p>
This page details the changes that have been made to the site, task runner, and Discord bot over time. You don't need to know the information on this page, but it's provided
as a record of those changes.
</p>

<hr>

<div class="card shadow mb-3">
<div class="card-body">
<h5 class="card-title">2024-10-14</h5>
<div class="card-text">
<ul>
<li>Add flights not starting or ending in facility airports but physically located in its airspace to home and flights pages</li>
<li>Add this changelog page</li>
</ul>
</div>
</div>
</div>

<div class="card shadow mb-3">
<div class="card-body">
<h5 class="card-title">2024-10-14</h5>
<div class="card-text">
<ul>
<li>Fix for adding OIs to new roster controllers</li>
<li>Restrict event notes to 500 characters</li>
<li>Fix position matching for off-roster controllers</li>
<li>Create editable email templates for Sr. Staff</li>
<li>Fix manual-email-send post-form-submission redirect destination</li>
</ul>
</div>
</div>
</div>

<div class="card shadow mb-3">
<div class="card-body">
<h5 class="card-title">2024-10-13</h5>
<div class="card-text">
<ul>
<li>Improved the online controllers message in Discord</li>
<li>Code cleanup</li>
<li>Fix roster page showing 'none' certificates as certified</li>
<li>Added 'bot-ignore' support for Discord nicknames</li>
<li>Reduce activity task delay to 6 hours</li>
<li>Reduce roster task delay to 2 hours</li>
</ul>
</div>
</div>
</div>

<div class="card shadow mb-3">
<div class="card-body">
<h5 class="card-title">2024-10-12</h5>
<p class="card-text">
Site released! Welcome to v1.0.0.
</p>
</div>
</div>

{% endblock %}

0 comments on commit 3e2102f

Please sign in to comment.