mirror of
https://github.com/neocities/neocities.git
synced 2025-07-03 01:23:22 +02:00
catch mystery missing profile comment and skip
This commit is contained in:
parent
375cffb6fd
commit
c43b68005a
1 changed files with 22 additions and 20 deletions
|
@ -1,24 +1,26 @@
|
||||||
<% actioning_site = profile_comment.actioning_site_dataset.select(:id, :username, :stripe_customer_id, :plan_type, :parent_site_id).first %>
|
<% if profile_comment %>
|
||||||
<% site = profile_comment.site_dataset.select(:id, :username, :stripe_customer_id, :plan_type, :parent_site_id).first %>
|
<% actioning_site = profile_comment.actioning_site_dataset.select(:id, :username, :stripe_customer_id, :plan_type, :parent_site_id).first %>
|
||||||
|
<% site = profile_comment.site_dataset.select(:id, :username, :stripe_customer_id, :plan_type, :parent_site_id).first %>
|
||||||
|
|
||||||
<div class="title">
|
<div class="title">
|
||||||
<div class="icon"><a href="/site/<%= actioning_site.username %>" class="avatar" style="background-image:url(<%= actioning_site.screenshot_url('index.html', '50x50') %>);"></a></div>
|
<div class="icon"><a href="/site/<%= actioning_site.username %>" class="avatar" style="background-image:url(<%= actioning_site.screenshot_url('index.html', '50x50') %>);"></a></div>
|
||||||
|
|
||||||
<div class="text">
|
<div class="text">
|
||||||
<% if current_site && current_site.id == actioning_site.id %>
|
<% if current_site && current_site.id == actioning_site.id %>
|
||||||
<a href="/site/<%= current_site.username %>" class="you">You</a>
|
<a href="/site/<%= current_site.username %>" class="you">You</a>
|
||||||
<% else %>
|
<% else %>
|
||||||
<a href="/site/<%= actioning_site.username %>" class="user"><i class="fa fa-user"><% if actioning_site.supporter? %><i class="fa fa-heart"></i><% end %></i><%= actioning_site.username %></a>
|
<a href="/site/<%= actioning_site.username %>" class="user"><i class="fa fa-user"><% if actioning_site.supporter? %><i class="fa fa-heart"></i><% end %></i><%= actioning_site.username %></a>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<% if actioning_site.id != profile_comment.site_id %>
|
<% if actioning_site.id != profile_comment.site_id %>
|
||||||
<i class="fa fa-chevron-right comment-symbol" title="commented on"></i>
|
<i class="fa fa-chevron-right comment-symbol" title="commented on"></i>
|
||||||
<a href="/site/<%= profile_comment.site.username %>" class="user"><i class="fa fa-user"><% if profile_comment.site.supporter? %><i class="fa fa-heart"></i><% end %></i><%= profile_comment.site.username %></a>
|
<a href="/site/<%= profile_comment.site.username %>" class="user"><i class="fa fa-user"><% if profile_comment.site.supporter? %><i class="fa fa-heart"></i><% end %></i><%= profile_comment.site.username %></a>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<span class="date">
|
||||||
|
<a href="/site/<%= site.username %>?event_id=<%= profile_comment.event.id %>" class="local-date-title" data-timestamp="<%= profile_comment.created_at.to_i %>"><%= profile_comment.created_at.ago %></a>
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="content"><%== sanitize_comment profile_comment.message %></div>
|
||||||
<span class="date">
|
<% end %>
|
||||||
<a href="/site/<%= site.username %>?event_id=<%= profile_comment.event.id %>" class="local-date-title" data-timestamp="<%= profile_comment.created_at.to_i %>"><%= profile_comment.created_at.ago %></a>
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
<div class="content"><%== sanitize_comment profile_comment.message %></div>
|
|
Loading…
Add table
Add a link
Reference in a new issue