mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
98 lines
4 KiB
Text
98 lines
4 KiB
Text
<div class="header-Outro with-site-image">
|
|
<div class="row content">
|
|
<div class="col col-50 signup-Area large">
|
|
<div class="signup-Form">
|
|
<fieldset class="content">
|
|
<img class="screenshot" src="<%= site.screenshot_url('index.html', '348x205') %>" style="width: 358px;height: 215px;">
|
|
</fieldset>
|
|
</div>
|
|
</div>
|
|
<div class="col col-50">
|
|
<h2 class="eps title-with-badge"><span><%= site.title %></span> <% if site.supporter? && !site.ended_supporter? %><a href="/plan" class="supporter-badge" title="Neocities Supporter"></a> <% end %></h2>
|
|
<p class="site-url"><a href="http://<%= site.username %>.neocities.org" target="_blank">http://<%= site.username %>.neocities.org</a></p>
|
|
<div class="stats">
|
|
<div class="stat"><strong><%= site.hits_english %></strong> <span>hits</span></div>
|
|
<div class="stat"><strong><%= site.follows_dataset.count %></strong> <span>followers</span></div>
|
|
<div class="stat tips"><strong><%= site.tips_dataset.count %></strong> <span>tips</span></div>
|
|
</div>
|
|
<div class="actions">
|
|
<% if current_site && current_site != site %>
|
|
<a id="followLink" href="#" onclick="Site.toggleFollow(<%= site.id %>, '<%= csrf_token %>')" class="btn-Action <%= current_site.is_following?(site) ? '' : 'follow' %>">
|
|
<span><%= current_site.is_following?(site) ? 'Unfollow' : 'Follow' %></span>
|
|
</a>
|
|
<a href="#" class="btn-Action tip"><span>Tip</span></a>
|
|
<% end %>
|
|
<a href="" class="btn-Action share"><span>Share</span></a>
|
|
</div>
|
|
</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 %>
|
|
<div class="post-comment">
|
|
<form method="POST" action="/site/<%= site.username %>/comment">
|
|
<input name="csrf_token" type="hidden" value="<%= csrf_token %>">
|
|
<input name="message" type="text" placeholder="Post a message..." autocomplete="off" maxlength="<%= Site::MAX_COMMENT_SIZE %>">
|
|
<button class="btn-Action">Post</button>
|
|
</form>
|
|
</div>
|
|
<% end %>
|
|
|
|
<% if site.latest_events.empty? %>
|
|
<div>
|
|
<p>No activity yet.</p>
|
|
</div>
|
|
<% else %>
|
|
<%== erb :'_news', layout: false, locals: {site: site, events: site.events_dataset.order(:id.desc).all} %>
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
<div class="col col-33">
|
|
<h3>Website Stats</h3>
|
|
<div class="stats">
|
|
<div class="stat">
|
|
<span>Last updated</span>
|
|
<strong>
|
|
<% if site.updated_at.nil? %>
|
|
Just Created
|
|
<% else %>
|
|
<%= site.updated_at.ago.downcase %>
|
|
<% end %>
|
|
</strong>
|
|
</div>
|
|
<div class="stat"><span>Total updates</span><strong><%= site.changed_count %></strong></div>
|
|
<div class="stat"><span>Created</span><strong><%= site.created_at.strftime('%B %-d, %Y') %></strong></div>
|
|
</div>
|
|
|
|
<h3>Archives</h3>
|
|
<div class="archives">
|
|
<a href=""><img src="http://neocities.org/site_screenshots/codeventurer.jpg"></a>
|
|
<a href=""><img src="http://neocities.org/site_screenshots/codeventurer.jpg"></a>
|
|
<a href=""><img src="http://neocities.org/site_screenshots/codeventurer.jpg"></a>
|
|
<a href=""><img src="http://neocities.org/site_screenshots/codeventurer.jpg"></a>
|
|
<a href="" class="more">See all versions</a>
|
|
</div>
|
|
|
|
<% if site.followings_dataset.count < 0 %>
|
|
<h3>Following</h3>
|
|
<div class="following">
|
|
<% site.followings.each do |following| %>
|
|
<a href="#"><img src="<%= site.screenshot_path 'index.html', '37x37' %>" class="avatar"></a>
|
|
<% end %>
|
|
</div>
|
|
<% end %>
|
|
|
|
<%== 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 class="report">
|
|
<a href="">Report</a> | <a href="">Block</a>
|
|
</div>
|
|
</div>
|
|
</div></div>
|
|
</div>
|