mirror of
https://github.com/iv-org/invidious.git
synced 2024-11-02 17:03:25 +05:30
Add support for adding banner to site header
This commit is contained in:
parent
8a525bc131
commit
21190a240f
@ -125,6 +125,7 @@ user: String,
|
|||||||
dmca_content: {type: Array(String), default: [] of String}, # For compliance with DMCA, disables download widget using list of video IDs
|
dmca_content: {type: Array(String), default: [] of String}, # For compliance with DMCA, disables download widget using list of video IDs
|
||||||
check_tables: {type: Bool, default: false}, # Check table integrity, automatically try to add any missing columns, create tables, etc.
|
check_tables: {type: Bool, default: false}, # Check table integrity, automatically try to add any missing columns, create tables, etc.
|
||||||
cache_annotations: {type: Bool, default: false}, # Cache annotations requested from IA, will not cache empty annotations or annotations that only contain cards
|
cache_annotations: {type: Bool, default: false}, # Cache annotations requested from IA, will not cache empty annotations or annotations that only contain cards
|
||||||
|
banner: {type: String?, default: nil}, # Optional banner to be displayed along top of page for announcements, etc.
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -94,13 +94,18 @@
|
|||||||
<% if config.login_enabled %>
|
<% if config.login_enabled %>
|
||||||
<div class="pure-u-1-3">
|
<div class="pure-u-1-3">
|
||||||
<a href="/login?referer=<%= env.get?("current_page") %>" class="pure-menu-heading">
|
<a href="/login?referer=<%= env.get?("current_page") %>" class="pure-menu-heading">
|
||||||
<%= translate(locale, "Log in") %>
|
<%= translate(locale, "Log in") %>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<% if CONFIG.banner %>
|
||||||
|
<div class="h-box">
|
||||||
|
<h3><%= CONFIG.banner %></h3>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
||||||
<%= content %>
|
<%= content %>
|
||||||
<div class="footer">
|
<div class="footer">
|
||||||
<div class="pure-g">
|
<div class="pure-g">
|
||||||
|
Loading…
Reference in New Issue
Block a user