Add html of search bar to empty home page

This commit is contained in:
syeopite 2021-04-03 23:26:58 -07:00
parent e864c7541c
commit e1af3d9bf3
No known key found for this signature in database
GPG key ID: 6FA616E5A5294A82

View file

@ -6,3 +6,18 @@
<% end %> <% end %>
<%= rendered "components/feed_menu" %> <%= rendered "components/feed_menu" %>
<div class="pure-g h-box">
<div class="pure-u-1">
<h1 href="/" class="pure-menu-heading">Invidious</h1>
</div>
<div class="pure-u-1-4"></div>
<div class="pure-u-1-2 searchbar">
<form class="pure-form" action="/search" method="get">
<fieldset>
<input type="search" style="width:100%" name="q" placeholder="<%= translate(locale, "search") %>" value="<%= env.get?("search").try {|x| HTML.escape(x.as(String)) } %>">
</fieldset>
</form>
</div>
<div class="pure-u-1-4"></div>
</div>