parent
30c06b1b5c
commit
ebc2961920
5 changed files with 5 additions and 3 deletions
|
|
@ -90,7 +90,7 @@
|
|||
<div
|
||||
class="pinned color-accent-brand fw-bold"
|
||||
data-testid="pinned-article">
|
||||
<%= inline_svg_tag("pin.svg", alt: "", aria_hidden: true, class: "mr-1 align-text-bottom color-accent-brand") %>Pinned <span class="hidden s:inline">post</span>
|
||||
<%= inline_svg_tag("pin.svg", alt: "", aria_hidden: true, class: "mr-1 align-text-bottom color-accent-brand") %><%= t("core.pinned") %>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
<header>
|
||||
<h3 class="crayons-subtitle-3 inline-flex items-center bg-accent-brand color-base-inverted pl-3 pr-4 py-2 ml-4 -mt-2 radius-default">
|
||||
<%= inline_svg_tag("pin.svg", aria: true, class: "crayons-icon mr-2", title: "Pin") %>
|
||||
Pinned
|
||||
<%= t("core.pinned") %>
|
||||
</h3>
|
||||
</header>
|
||||
<div class="p-4 pb-2 pt-3">
|
||||
|
|
|
|||
|
|
@ -33,6 +33,7 @@ en:
|
|||
month: Month
|
||||
more_from: More from
|
||||
my_tags: My Tags
|
||||
pinned: Pinned
|
||||
on_video: "%{name} on Video"
|
||||
popular_tags: Popular Tags
|
||||
post: Post
|
||||
|
|
|
|||
|
|
@ -33,6 +33,7 @@ fr:
|
|||
month: Mois
|
||||
more_from: Plus de la part de
|
||||
my_tags: Mes sujets
|
||||
pinned: Épinglé
|
||||
on_video: "%{name} en Vidéo"
|
||||
popular_tags: Sujets populaires
|
||||
post: Publication
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ RSpec.describe "UserProfiles", type: :request do
|
|||
end
|
||||
|
||||
it "does not render pins if they don't exist" do
|
||||
get "/#{user.username}"
|
||||
get "/#{user.username}?i=i" # Pinned will still be present in layout file, but not the "internal" version
|
||||
expect(response.body).not_to include "Pinned"
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue