mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
fix test, fix home display for own site updates
This commit is contained in:
parent
8d592bb982
commit
39a7b93cc1
2 changed files with 8 additions and 2 deletions
|
@ -30,7 +30,7 @@ describe 'site page' do
|
|||
|
||||
visit "/browse?tag=#{tag}"
|
||||
|
||||
page.find('.website-Gallery .title a')['href'].must_match /#{blocked_site.host}/
|
||||
page.find('.website-Gallery .title a')['href'].must_match /\/surf\/#{blocked_site.username}/
|
||||
|
||||
visit "/site/#{blocked_site.username}"
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<div class="col col-66">
|
||||
<h3>Your Feed</h3>
|
||||
<div class="feed-filter">
|
||||
<% if !@events.empty? %>
|
||||
<% if !@events.empty? || params[:activity] == 'mine' %>
|
||||
<a href="/" <% if params[:activity] != 'mine' %>class="selected"<% end %>>All Activity</a>
|
||||
|
||||
<a href="/?activity=mine" <% if params[:activity] == 'mine' %>class="selected"<% end %>>
|
||||
|
@ -25,6 +25,12 @@
|
|||
<div class="col col-66">
|
||||
<% if !@events.empty? %>
|
||||
<%== erb :'_news', layout: false, locals: {site: current_site, events: @events} %>
|
||||
<% elsif params[:activity] == 'mine' %>
|
||||
<div class="welcome">
|
||||
<h4>No updates on your site yet!</h4>
|
||||
<p>
|
||||
You should <a href="/dashboard">start editing your site</a>!
|
||||
</div>
|
||||
<% else %>
|
||||
<div class="welcome">
|
||||
<h4>Welcome to your Neocities news feed!</h4>
|
||||
|
|
Loading…
Add table
Reference in a new issue