Add 'search on youtube' links on results

This commit is contained in:
2021-06-02 08:43:21 +02:00
parent f0c7a0c61f
commit ee58f11faa

View File

@@ -1,6 +1,8 @@
<html>
<head>
<title>Radio Balises</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css">
<style>
#results {
border-colapse: collapse;
@@ -13,6 +15,13 @@
#results tr:hover {
background-color: #eaeaea;
}
#results a {
text-decoration: none;
color: inherit;
}
#results .fa-youtube {
color:red;
}
</style>
</head>
<body>
@@ -33,6 +42,7 @@
<th>{{str(x.date.time())}}</th>
<td>{{x.song.artist}}</td>
<td>{{x.song.title}}</td>
<td><a href="https://www.youtube.com/results?search_query={{x.song.artist + ' ' + x.song.title}}" title="Rechercher sur Youtube"><i class="fab fa-lg fa-youtube"></i></a></td>
</tr>
% end
</table>