mirror of
https://github.com/iv-org/invidious.git
synced 2024-11-26 07:27:22 +00:00
Hide header search bar when default_home is empty
This commit is contained in:
parent
c0997f951c
commit
e864c7541c
@ -28,16 +28,19 @@
|
|||||||
<div class="pure-u-1 pure-u-md-2-24"></div>
|
<div class="pure-u-1 pure-u-md-2-24"></div>
|
||||||
<div class="pure-u-1 pure-u-md-20-24">
|
<div class="pure-u-1 pure-u-md-20-24">
|
||||||
<div class="pure-g navbar h-box">
|
<div class="pure-g navbar h-box">
|
||||||
<div class="pure-u-1 pure-u-md-4-24">
|
<% if !env.get("preferences").as(Preferences).default_home.empty? %>
|
||||||
<a href="/" class="index-link pure-menu-heading">Invidious</a>
|
<div class="pure-u-1 pure-u-md-4-24">
|
||||||
</div>
|
<a href="/" class="index-link pure-menu-heading">Invidious</a>
|
||||||
<div class="pure-u-1 pure-u-md-12-24 searchbar">
|
</div>
|
||||||
<form class="pure-form" action="/search" method="get">
|
<div class="pure-u-1 pure-u-md-12-24 searchbar">
|
||||||
<fieldset>
|
<form class="pure-form" action="/search" method="get">
|
||||||
<input type="search" style="width:100%" name="q" placeholder="<%= translate(locale, "search") %>" value="<%= env.get?("search").try {|x| HTML.escape(x.as(String)) } %>">
|
<fieldset>
|
||||||
</fieldset>
|
<input type="search" style="width:100%" name="q" placeholder="<%= translate(locale, "search") %>" value="<%= env.get?("search").try {|x| HTML.escape(x.as(String)) } %>">
|
||||||
</form>
|
</fieldset>
|
||||||
</div>
|
</form>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
<div class="pure-u-1 pure-u-md-8-24 user-field">
|
<div class="pure-u-1 pure-u-md-8-24 user-field">
|
||||||
<% if env.get? "user" %>
|
<% if env.get? "user" %>
|
||||||
<div class="pure-u-1-4">
|
<div class="pure-u-1-4">
|
||||||
|
Loading…
Reference in New Issue
Block a user