mirror of
https://github.com/neocities/neocities.git
synced 2025-08-06 01:24:56 +02:00
more improvements for profile/feed page
This commit is contained in:
parent
5bc66e2524
commit
177e4d3592
9 changed files with 28 additions and 26 deletions
|
@ -5,7 +5,7 @@
|
|||
<p>You are not following any sites yet. Add some by <a href="/browse">browsing sites</a> or looking at your tags.
|
||||
<% else %>
|
||||
<% site.followings.each do |following| %>
|
||||
<a href="#"><img src="<%= site.screenshot_path 'index.html', '37x37' %>" class="avatar"></a>
|
||||
<a href="/site/<%= site.username %>"><img src="<%= site.screenshot_path 'index.html', '37x37' %>" class="avatar"></a>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</div>
|
||||
|
|
|
@ -1,10 +1,9 @@
|
|||
<% events.each do |event| %>
|
||||
<% if event.profile_comment_id %>
|
||||
<%== erb :'_news_profile_comment', layout: false, locals: {event: event} %>
|
||||
<%== erb :'_news_profile_comment', layout: false, locals: {profile_comment: event.profile_comment} %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
|
||||
<!--
|
||||
<div class="news-item follow">
|
||||
<div class="title">
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
<div class="news-item comment for-me">
|
||||
<div class="title">
|
||||
<div class="icon" style="background-image:url(https://neocities.org/site_screenshots/codeventurer.jpg);"></div>
|
||||
<a href="" class="user">Foo</a>
|
||||
<span class="date"><%= event.profile_comment.created_at.ago %></span>
|
||||
<div class="comment"><%= event.profile_comment.message %></div>
|
||||
<div class="icon" style="background-image:url(<%= profile_comment.actioning_site.screenshot_url('index.html', '82x62') %>);"></div>
|
||||
<a href="" class="user"><%= profile_comment.actioning_site.username %></a>
|
||||
<span class="date"><%= profile_comment.created_at.ago %></span>
|
||||
<div class="comment"><%= profile_comment.message %></div>
|
||||
</div>
|
||||
</div>
|
|
@ -1,10 +1,10 @@
|
|||
<% if is_current_site %>
|
||||
<% if (!is_current_site && site.tags_dataset.count > 0) || is_current_site %>
|
||||
<h3>Tags</h3>
|
||||
<% if site.tags_dataset.count == 0 %>
|
||||
<p>You don't have any tags yet. <a href="#">Add some!</a>
|
||||
<% else %>
|
||||
<% site.tags.each do |tag| %>
|
||||
<a class="tag" href="//neocities.org/tags/<%= tag.name %>"><%= tag.name %></a>
|
||||
<a class="tag" href="/tags/<%= tag.name %>"><%= tag.name %></a>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<% end %>
|
|
@ -107,10 +107,10 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<a href=""><img src="http://neocities.org/site_screenshots/codeventurer.jpg" style="width:340px" class="large-portrait"></a>
|
||||
<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="/profile/<%= site.username %>" class="btn-Action">View Site Profile</a>
|
||||
<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} %>
|
||||
|
|
|
@ -3,12 +3,12 @@
|
|||
<div class="col col-50 signup-Area large">
|
||||
<div class="signup-Form">
|
||||
<fieldset class="content">
|
||||
<img class="screenshot" src="http://neocities.org/site_screenshots/codeventurer.jpg" style="width: 358px;height: 215px;">
|
||||
<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>Derp's Website</span> <% if site.supporter? && !site.ended_supporter? %><a href="/plan" class="supporter-badge" title="Neocities Supporter"></a> <% end %></h2>
|
||||
<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>
|
||||
|
@ -29,13 +29,15 @@
|
|||
<div class="container">
|
||||
<div class="content misc-page columns right-col"><div class="col-left">
|
||||
<div class="col col-66">
|
||||
<div class="post-comment">
|
||||
<form method="POST" action="/profile/<%= site.username %>/comment">
|
||||
<input name="csrf_token" type="hidden" value="<%= csrf_token %>">
|
||||
<input name="message" type="text" placeholder="Post a message..." maxlength="<%= Site::MAX_COMMENT_SIZE %>">
|
||||
<button class="btn-Action">Post</button>
|
||||
</form>
|
||||
</div>
|
||||
<% if current_site %>
|
||||
<div class="post-comment">
|
||||
<form method="POST" action="/profile/<%= site.username %>/comment">
|
||||
<input name="csrf_token" type="hidden" value="<%= csrf_token %>">
|
||||
<input name="message" type="text" placeholder="Post a message..." maxlength="<%= Site::MAX_COMMENT_SIZE %>">
|
||||
<button class="btn-Action">Post</button>
|
||||
</form>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<% if site.latest_events.empty? %>
|
||||
<div>
|
Loading…
Add table
Add a link
Reference in a new issue