mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
Trying out small icon style for my friends' comments on someone else's page
This commit is contained in:
parent
d56beab370
commit
7d43fe2ab8
2 changed files with 3 additions and 3 deletions
|
@ -12,8 +12,7 @@
|
|||
|
||||
<% events.each do |event| %>
|
||||
<% if event.profile_comment_id %>
|
||||
<div class="news-item comment for-me" id="event_<%= event.id %>">
|
||||
<%== erb :'_news_profile_comment', layout: false, locals: {profile_comment: event.profile_comment} %>
|
||||
<%== erb :'_news_profile_comment', layout: false, locals: {profile_comment: event.profile_comment, event: event} %>
|
||||
<% elsif event.follow_id %>
|
||||
<div class="news-item follow">
|
||||
<div class="title">
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
<% actioning_site = profile_comment.actioning_site_dataset.select(:id, :username, :stripe_customer_id).first %>
|
||||
<% site = profile_comment.site_dataset.select(:id, :username, :stripe_customer_id).first %>
|
||||
<div class="news-item comment <% if (current_site && current_site.id == profile_comment.site_id) || (request.path != '/') %>for-me<% end %>" id="event_<%= event.id %>">
|
||||
|
||||
<div class="title">
|
||||
<div class="icon" style="background-image:url(<%= actioning_site.screenshot_url('index.html', '100x100') %>);"></div>
|
||||
<div class="icon" style="<% if current_site && current_site.id == profile_comment.site_id %>background-image:url(<%= actioning_site.screenshot_url('index.html', '100x100') %>);<% end %>"></div>
|
||||
|
||||
<% if current_site && current_site.id == actioning_site.id %>
|
||||
You
|
||||
|
|
Loading…
Add table
Reference in a new issue