diff options
| author | Omar Roth <omarroth@hotmail.com> | 2018-01-07 11:43:13 -0600 |
|---|---|---|
| committer | Omar Roth <omarroth@hotmail.com> | 2018-01-07 11:43:13 -0600 |
| commit | c4c1b43e5cdaedec5d7588d6ae82708b25556104 (patch) | |
| tree | e477520a613f7e9a06faa802e834005d3659d668 /src | |
| parent | d65106d8b1593d54e1f1e57215faefa5b0877cb6 (diff) | |
| download | invidious-c4c1b43e5cdaedec5d7588d6ae82708b25556104.tar.gz invidious-c4c1b43e5cdaedec5d7588d6ae82708b25556104.tar.bz2 invidious-c4c1b43e5cdaedec5d7588d6ae82708b25556104.zip | |
Add thumbnail to search
Diffstat (limited to 'src')
| -rw-r--r-- | src/views/search.ecr | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/views/search.ecr b/src/views/search.ecr index 9dedd89f..1b7cadc5 100644 --- a/src/views/search.ecr +++ b/src/views/search.ecr @@ -2,5 +2,16 @@ <%= query.size > 30 ? query[0,30] + "..." : query %> <% end %> <% videos_list.each do |video| %> -<p><a href="/watch?v=<%= video.id %>"><%= video.info["title"] %></a></p> +<div class="pure-g"> + <div class="pure-u-1 pure-u-md-1-6"> + <a class="link" href="/watch?v=<%= video.id %>"> + <img style="width: 90%" src="<%= video.info["thumbnail_url"] %>"> + </a> + </div> + <div class="pure-u-1 pure-u-md-5-6"> + <a style="width: 100%; height:100%; display: block; position: relative" class="link" href="/watch?v=<%= video.id %>"> + <%= video.info["title"] %> + </a> + </div> +</div> <% end %>
\ No newline at end of file |
