mirror of
https://github.com/neocities/neocities.git
synced 2025-04-25 01:32:36 +02:00
fix dep injection
This commit is contained in:
parent
4bdf43097e
commit
7f5f028cc5
1 changed files with 2 additions and 2 deletions
|
@ -95,13 +95,13 @@
|
||||||
<% if @latest_events.empty? %>
|
<% if @latest_events.empty? %>
|
||||||
<div>
|
<div>
|
||||||
<p>No recent activity.</p>
|
<p>No recent activity.</p>
|
||||||
<% if @site == current_site %>
|
<% if current_site && site.owned_by?(parent_site) %>
|
||||||
<p>
|
<p>
|
||||||
You should <a href="/dashboard">update your site</a>!
|
You should <a href="/dashboard">update your site</a>!
|
||||||
</p>
|
</p>
|
||||||
<%== erb :'_news', layout: false, locals: {site: @site, events: @latest_events} %>
|
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
<%== erb :'_news', layout: false, locals: {site: @site, events: @latest_events} %>
|
||||||
<% else %>
|
<% else %>
|
||||||
<%== erb :'_news', layout: false, locals: {site: @site, events: @latest_events} %>
|
<%== erb :'_news', layout: false, locals: {site: @site, events: @latest_events} %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
Loading…
Add table
Reference in a new issue