Include track name in disambiguation
This commit is contained in:
parent
da9934ae1e
commit
7b1fc6dd71
2 changed files with 2 additions and 1 deletions
|
|
@ -35,6 +35,7 @@ pub fn get(id: []const u8, request: *jetzig.Request) !jetzig.View {
|
||||||
} else {
|
} else {
|
||||||
// It could be a variety of songs
|
// It could be a variety of songs
|
||||||
const songs = try queries.entityQueryResult(request, queries.loadQuery(.song, .entities_by_name), .{rn});
|
const songs = try queries.entityQueryResult(request, queries.loadQuery(.song, .entities_by_name), .{rn});
|
||||||
|
try root.put("name", rn);
|
||||||
try root.put("songs", songs);
|
try root.put("songs", songs);
|
||||||
try root.put("disambiguation", true);
|
try root.put("disambiguation", true);
|
||||||
return request.render(.ok);
|
return request.render(.ok);
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@
|
||||||
<body>
|
<body>
|
||||||
@partial partials/header
|
@partial partials/header
|
||||||
@if ($.disambiguation)
|
@if ($.disambiguation)
|
||||||
<h1>Songs</h1>
|
<h1>{{.name}} (disambiguation)</h1>
|
||||||
@partial partials/newtable(T: ColumnChoices, table_data: .songs, columns: dis_columns)
|
@partial partials/newtable(T: ColumnChoices, table_data: .songs, columns: dis_columns)
|
||||||
@else
|
@else
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue