From c2e72439f50f3d4373c10873c56e44248237e4b4 Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Tue, 25 Sep 2018 10:10:25 -0500 Subject: [PATCH] Don't add anchor for empty genre URL --- src/invidious/views/watch.ecr | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/invidious/views/watch.ecr b/src/invidious/views/watch.ecr index e4cd201d..2b01fa83 100644 --- a/src/invidious/views/watch.ecr +++ b/src/invidious/views/watch.ecr @@ -55,7 +55,13 @@

<%= number_with_separator(video.views) %>

<%= number_with_separator(video.likes) %>

<%= number_with_separator(video.dislikes) %>

-

Genre: <%= video.genre %>

+

Genre: + <% if video.genre_url.empty? %> + <%= video.genre %> + <% else %> + <%= video.genre %> + <% end %> +

<% if !video.license.empty? %>

License: <%= video.license %>

<% end %>