diff options
| author | Omar Roth <omarroth@hotmail.com> | 2018-09-25 10:10:25 -0500 |
|---|---|---|
| committer | Omar Roth <omarroth@hotmail.com> | 2018-09-25 10:10:25 -0500 |
| commit | c2e72439f50f3d4373c10873c56e44248237e4b4 (patch) | |
| tree | 3af0530e813aec37d649ba30b61f9fb4fdbc2bf9 | |
| parent | 87498ae777ce17ff25d6a1d6f3d27c8471f0ef3e (diff) | |
| download | invidious-c2e72439f50f3d4373c10873c56e44248237e4b4.tar.gz invidious-c2e72439f50f3d4373c10873c56e44248237e4b4.tar.bz2 invidious-c2e72439f50f3d4373c10873c56e44248237e4b4.zip | |
Don't add anchor for empty genre URL
| -rw-r--r-- | src/invidious/views/watch.ecr | 8 |
1 files changed, 7 insertions, 1 deletions
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 @@ <p><i class="icon ion-ios-eye"></i> <%= number_with_separator(video.views) %></p> <p><i class="icon ion-ios-thumbs-up"></i> <%= number_with_separator(video.likes) %></p> <p><i class="icon ion-ios-thumbs-down"></i> <%= number_with_separator(video.dislikes) %></p> - <p id="Genre">Genre: <a href="<%= video.genre_url %>"><%= video.genre %></a></p> + <p id="Genre">Genre: + <% if video.genre_url.empty? %> + <%= video.genre %> + <% else %> + <a href="<%= video.genre_url %>"><%= video.genre %></a> + <% end %> + </p> <% if !video.license.empty? %> <p id="License">License: <%= video.license %></p> <% end %> |
