summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOmar Roth <omarroth@hotmail.com>2018-02-04 19:43:16 -0600
committerOmar Roth <omarroth@hotmail.com>2018-02-04 19:43:16 -0600
commit7a7b1382c0f3df2d3daa3320dcbefd1b85f3345c (patch)
tree6135cc4f7961517791b329d8d20ce52805550bae
parenta9ef931856e5e901eaacd7188206dba2db6f2929 (diff)
downloadinvidious-7a7b1382c0f3df2d3daa3320dcbefd1b85f3345c.tar.gz
invidious-7a7b1382c0f3df2d3daa3320dcbefd1b85f3345c.tar.bz2
invidious-7a7b1382c0f3df2d3daa3320dcbefd1b85f3345c.zip
Use more consistent variables for search.ecr
-rw-r--r--src/views/search.ecr12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/views/search.ecr b/src/views/search.ecr
index c1876153..557a9068 100644
--- a/src/views/search.ecr
+++ b/src/views/search.ecr
@@ -2,17 +2,17 @@
<title><%= query.size > 30 ? query[0,30].rstrip(".") + "..." : query %> - Invidious</title>
<% end %>
-<% videos.each do |item| %>
-<p>
+<% videos.each do |video| %>
+<p style="padding:1em;">
<div class="pure-g">
<div class="pure-u-1 pure-u-md-1-5">
- <a class="link" href="<%= item["link"] %>">
- <img style="width:90%" alt="thumbnail" src="<%= item["thumbnail"] %>">
+ <a class="link" href="<%= video["link"] %>">
+ <img style="width:100%" alt="thumbnail" src="<%= video["thumbnail"] %>">
</a>
</div>
<div class="pure-u-1 pure-u-md-4-5">
- <a style="display:block; width:100%; height:100%" class="link" href="<%= item["link"] %>">
- <%= item["title"] %>
+ <a style="display:block; width:100%; height:100%" class="link" href="<%= video["link"] %>">
+ <%= video["title"] %>
</a>
</div>
</div>