Indentation and formatting
This commit is contained in:
@@ -13,7 +13,9 @@
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<time class="bubble__bubble bubble__meta bubble__date"><%= bubble.created_at.strftime("%b <br> %d").html_safe %></time>
|
||||
<time class="bubble__bubble bubble__meta bubble__date">
|
||||
<%= bubble.created_at.strftime("%b <br> %d").html_safe %>
|
||||
</time>
|
||||
|
||||
<% bubble.tags.each do |tag| %>
|
||||
<%= link_to "##{tag.title}", bubbles_path(tag_id: tag), class: "bubble__bubble bubble__meta bubble__tag" %>
|
||||
@@ -28,7 +30,11 @@
|
||||
<% end %>
|
||||
|
||||
<%= tag.div class: "bubble__bubble bubble__meta bubble__boosts",
|
||||
data: { controller: "animation toggle-class", animation_play_class: "boosting", toggle_class_toggle_class: "boosting", action: "animationend->toggle-class#toggle" } do %>
|
||||
<turbo-frame id="<%= dom_id(bubble, "boosts") %>" src="<%= bubble_boosts_path(bubble) %>" />
|
||||
data: {
|
||||
controller: "animation toggle-class",
|
||||
animation_play_class: "boosting",
|
||||
toggle_class_toggle_class: "boosting",
|
||||
action: "animationend->toggle-class#toggle" } do %>
|
||||
<%= turbo_frame_tag dom_id(bubble, :boosts), src: bubble_boosts_path(bubble) %>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
@@ -35,11 +35,10 @@
|
||||
<fieldset class="flex flex-column unpad margin-block-end borderless justify-space-between">
|
||||
<legend class="for-screen-reader">Attachment</legend>
|
||||
<label class="input input--file input--picture unpad" data-controller="upload-preview">
|
||||
<%= image_tag bubble.image.attached? ? bubble.image : "default-picture.webp", alt: "Picture",
|
||||
<%= image_tag bubble.image.presence || "default-picture.webp", alt: "Picture",
|
||||
data: { upload_preview_target: "image" } %>
|
||||
|
||||
<%= form.file_field :image, class: "input", accept: "image/png, image/jpeg, image/jpg, image/webp",
|
||||
data: { upload_preview_target: "input", action: "upload-preview#previewImage" } %>
|
||||
data: { upload_preview_target: "input", action: "upload-preview#previewImage" } %>
|
||||
</label>
|
||||
</fieldset>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user