-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
30 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,29 @@ | ||
<li class="emotion-card"> | ||
<div class="emotion-content"> | ||
<div class="emotion-header"> | ||
<span class="fullname"> | ||
<strong><%= emotion.name %></strong> | ||
</span> | ||
<span class="emotion-time"> | ||
<%= link_to "- #{l(emotion.created_at, format: :date)}", emotion_path(emotion) %> | ||
</span> | ||
<%= turbo_frame_tag emotion do %> | ||
<li class="emotion-card"> | ||
<div class="emotion-content"> | ||
<div class="emotion-header"> | ||
<span class="fullname"> | ||
<strong><%= emotion.name %></strong> | ||
</span> | ||
<span class="emotion-time"> | ||
<%= link_to "- #{l(emotion.created_at, format: :date)}", emotion_path(emotion) %> | ||
</span> | ||
</div> | ||
<div class="emotion-card-avatar"> | ||
<%== show_icon(Emotion.icons[emotion.icon]) %> | ||
</div> | ||
<div class="emotion-text"> | ||
<p> <%= simple_format emotion.body %> </p> | ||
</div> | ||
<div class="emotion-footer"> | ||
<%= button_to like_emotion_path(emotion), method: :put, class: "emotion-footer-btn" do %> | ||
<svg class="bi me-2" width="20" height="20"><use xlink:href="#balloon-heart-fill"/></svg><span><%=emotion.like_count %></span> | ||
<% end %> | ||
<%= button_to emotion, method: :delete, class: "emotion-footer-btn" do %> | ||
<svg class="bi me-2" width="20" height="20"><use xlink:href="#trash-fill"/></svg> | ||
<span>削除</span> | ||
<% end %> | ||
</div> | ||
</div> | ||
<div class="emotion-card-avatar"> | ||
<%== show_icon(Emotion.icons[emotion.icon]) %> | ||
</div> | ||
<div class="emotion-text"> | ||
<p> <%= simple_format emotion.body %> </p> | ||
</div> | ||
<div class="emotion-footer"> | ||
<%= button_to like_emotion_path(emotion), method: :put, class: "emotion-footer-btn" do %> | ||
<svg class="bi me-2" width="20" height="20"><use xlink:href="#balloon-heart-fill"/></svg><span><%=emotion.like_count %></span> | ||
<% end %> | ||
<%= button_to emotion, method: :delete, class: "emotion-footer-btn" do %> | ||
<svg class="bi me-2" width="20" height="20"><use xlink:href="#trash-fill"/></svg> | ||
<span>削除</span> | ||
<% end %> | ||
</div> | ||
</div> | ||
</li> | ||
</li> | ||
<% end %> |