mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
80 lines
3.3 KiB
Text
80 lines
3.3 KiB
Text
<div class="header-Outro with-columns">
|
|
<div class="row content">
|
|
<div class="col col-66">
|
|
<h3>Your Feed</h3>
|
|
<div class="feed-filter"><a href="/">All Activity</a> <a href="/?activity=mine">Activity on your profile</a></div>
|
|
</div>
|
|
<div class="col col-32">
|
|
<h3>Your Website</h3>
|
|
<a href="/dashboard" class="btn-Action edit">Edit Site</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="container">
|
|
<div class="content misc-page columns right-col">
|
|
<div class="col-left">
|
|
<div class="col col-66">
|
|
<% if current_site.followings_dataset.count > 0 %>
|
|
<%== erb :'_news', layout: false, locals: {site: current_site, events: @events} %>
|
|
<% else %>
|
|
<div class="welcome">
|
|
<h4>Welcome to your Neocities news feed!</h4>
|
|
<p>
|
|
You aren't following any websites yet! Once you do, updates will show up here and you can like and comment on them.
|
|
|
|
<% if @suggestions.length > 0 %>
|
|
Here are some website suggestions based on your tags, or <a href="/browse">check out all the sites on Neocities!</a>
|
|
<% else %>
|
|
Want to find some sites to follow? <a href="/browse">Check out all the sites on Neocities!</a>
|
|
<% end %>
|
|
</p>
|
|
</div>
|
|
|
|
<% @suggestions.each do |suggested_site| %>
|
|
<div class="site-suggestion">
|
|
<div class="site-portrait">
|
|
<a href="//<%= suggested_site.host %>">
|
|
<img src="<%= suggested_site.screenshot_url('index.html', '270x162') %>">
|
|
</a>
|
|
<span class="caption">
|
|
<a href="/site/<%= suggested_site.username %>"><%= suggested_site.title %></a></span>
|
|
</div>
|
|
<% suggested_site.tags.each do |tag| %>
|
|
<a class="tag" href="/browse?tag=<%= Rack::Utils.escape tag.name %>"><%= tag.name %></a>
|
|
<% end %>
|
|
</div>
|
|
<% end %>
|
|
<% end %>
|
|
</div>
|
|
|
|
<div class="col col-33">
|
|
<p class="site-url"><a href="//<%= current_site.host %>" target="_blank"><%= site.title %></a></p>
|
|
<div class="stats">
|
|
<div class="col col-50">
|
|
<% if site.updated_at %>
|
|
Last updated<br><strong><%= site.updated_at.ago %></strong>
|
|
<% else %>
|
|
Your new site!<br><strong><a href="/dashboard">Start Building</a></strong>
|
|
<% end %>
|
|
</div>
|
|
<div class="col col-50">
|
|
<div><strong><%= site.hits_english %></strong> hits</div>
|
|
<div><strong><%= site.follows_dataset.count %></strong> followers</div>
|
|
<div><strong><%= site.tips_dataset.count %></strong> tips ($<%= site.tip_amount %>)</div>
|
|
</div>
|
|
</div>
|
|
|
|
<a href=""><img src="<%= site.screenshot_url('index.html', '348x205') %>" style="width:340px" class="large-portrait"></a>
|
|
|
|
<div style="margin-top: 20px; margin-bottom: 20px" class="txt-Center">
|
|
<a href="/site/<%= site.username %>" class="btn-Action">View Site Profile</a>
|
|
</div>
|
|
|
|
<%== erb :'_follows', layout: false, locals: {site: site, is_current_site: site == current_site} %>
|
|
|
|
<%== erb :'_tags', layout: false, locals: {site: site, is_current_site: site == current_site} %>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|