Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/routes/disc_view.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ struct DiscViewTemplate {
can_view_history: bool,
disc_id: i32,
title: String,
base_rom_name: String,
system_name: String,
system_code: String,
media_type: String,
Expand Down Expand Up @@ -694,6 +695,7 @@ async fn disc_view(
},
detail.disc.filename_suffix.as_deref(),
),
base_rom_name: rom_base_name,
system_name: detail.system.system_name(),
system_code: detail.system.code.clone(),
media_type: detail.disc.media_type.to_string(),
Expand Down Expand Up @@ -1719,6 +1721,7 @@ mod tests {
can_view_history: false,
disc_id: 1,
title: "Example Disc".to_string(),
base_rom_name: "Example Disc (USA)".to_string(),
system_name: "Sony - PlayStation 3".to_string(),
system_code: "PS3".to_string(),
media_type: "Blu-ray Disc".to_string(),
Expand Down
2 changes: 1 addition & 1 deletion templates/disc_view.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% extends "base.html" %}

{% block title %}{{ title }}{% endblock %}
{% block title %}{{ base_rom_name }}{% endblock %}
{% block description %}{{ system_name }} - {{ media_type }}{% endblock %}

{% block content %}
Expand Down