mirror of
https://github.com/neocities/neocities.git
synced 2025-08-05 17:18:02 +02:00
check for site owner instead of crashing on missing current_site
This commit is contained in:
parent
1afb5da0bb
commit
951e66861e
2 changed files with 3 additions and 1 deletions
|
@ -166,11 +166,13 @@
|
|||
|
||||
<canvas id="myChart" style="width:100%;height:300px;display:block"></canvas>
|
||||
|
||||
<% if @site == current_site %>
|
||||
<div class="row">
|
||||
<div class="col col-50">
|
||||
<p><a href="?days=<%= params[:days] %>&format=csv">Export as CSV File</a></p>
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<!--
|
||||
<div class="row">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue