forked from e621ng/e621ng
make the guest warning ('Over 18?') configurable
This commit is contained in:
parent
0234362cb0
commit
81add14565
@ -1,3 +1,4 @@
|
|||||||
|
<% if Danbooru.config.guest_warning? %>
|
||||||
<div class="guest-warning" style="display: none;">
|
<div class="guest-warning" style="display: none;">
|
||||||
<div class="guest-warning-dialog">
|
<div class="guest-warning-dialog">
|
||||||
<h1 class="dialog-header">Over 18?</h1>
|
<h1 class="dialog-header">Over 18?</h1>
|
||||||
@ -17,3 +18,4 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<% end %>
|
||||||
|
@ -29,6 +29,10 @@ module Danbooru
|
|||||||
false
|
false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def guest_warning?
|
||||||
|
true
|
||||||
|
end
|
||||||
|
|
||||||
# The canonical hostname of the site.
|
# The canonical hostname of the site.
|
||||||
def hostname
|
def hostname
|
||||||
Socket.gethostname
|
Socket.gethostname
|
||||||
|
Loading…
Reference in New Issue
Block a user