Skip to content

Commit

Permalink
fixes on text
Browse files Browse the repository at this point in the history
  • Loading branch information
michelson committed Oct 17, 2023
1 parent ee92e92 commit 5da55a8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/controllers/playlists_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def update
@playlist = current_user.playlists.friendly.find(params[:id])

if !params[:nonpersist] && @playlist.update(playlist_params)
flash[:now] = "successfully created"
flash[:now] = "successfully updated"
end

if params[:nonpersist]
Expand Down
4 changes: 2 additions & 2 deletions app/views/playlists/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@

<%= render "sharer/share_button", resource: @playlist %>
<%= render "likes/like_button", resource: @playlist, button_class: liked?(@track) ? "button-active" : "button" %>
<%= render "likes/like_button", resource: @playlist, button_class: liked?(@playlist) ? "button-active" : "button" %>
<% if user_signed_in? && @playlist.user_id == current_user.id %>
Expand Down Expand Up @@ -279,7 +279,7 @@
-->


<div class="sm:text-xl text-sm container mx-auto px-4 my-4 prose dark:prose-invert prose-lg ">
<div class="whitespace-pre-line sm:text-xl text-sm container mx-auto px-4 my-4 prose dark:prose-invert prose-lg ">
<!--<.tag_list_for playlist={@playlist} />-->
<%= auto_link sanitize(@playlist.description, auto_link: true) %>
</div>
Expand Down
2 changes: 1 addition & 1 deletion app/views/tracks/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@
<dt class="text-sm font-medium text-gray-500 dark:text-gray-300">
<%= t("About") %>
</dt>
<dd class="mt-1 mb-4 max-w-prose text-lg text-gray-900 dark:text-gray-100 space-y-5 prose lg:prose-xl dark:prose-invert">
<dd class="whitespace-pre-line mt-1 mb-4 max-w-prose text-lg text-gray-900 dark:text-gray-100 space-y-5 prose lg:prose-xl dark:prose-invert">
<%= sanitize(auto_link(@track.description), tags: %w(a)) %>
</dd>
<% end %>
Expand Down

0 comments on commit 5da55a8

Please sign in to comment.