mirror of
https://git.nadeko.net/Fijxu/invidious.git
synced 2025-12-16 18:08:52 +00:00
Move navbar search bar render check to templated
This commit is contained in:
@@ -48,7 +48,8 @@ module JSON::Serializable
|
||||
end
|
||||
end
|
||||
|
||||
macro templated(filename, template = "template")
|
||||
macro templated(filename, template = "template", navbar_search = true)
|
||||
navbar_search = {{navbar_search}}
|
||||
render "src/invidious/views/#{{{filename}}}.ecr", "src/invidious/views/#{{{template}}}.ecr"
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user