Skip to content

Commit

Permalink
Add subscription option to task card (forem#21210)
Browse files Browse the repository at this point in the history
  • Loading branch information
benhalpern authored Aug 20, 2024
1 parent 352c89a commit ffc8f8f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/views/onboardings/_task_card.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,13 @@
<svg width="8" height="14" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M5.172 7L.222 2.05 1.636.636 8 7l-6.364 6.364L.222 11.95 5.172 7z" fill="#fff" /></svg>
</a>
</li>
<% if FeatureFlag.enabled?("subscriber_icon") %>
<li class="task-card-action">
<a class="task-card-link" href="/++">
<p><%= t("views.onboardings.join_subscription_html") %></p>
<svg width="8" height="14" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M5.172 7L.222 2.05 1.636.636 8 7l-6.364 6.364L.222 11.95 5.172 7z" fill="#fff" /></svg>
</a>
</li>
<% end %>
</ul>
</div>
1 change: 1 addition & 0 deletions config/locales/views/misc/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ en:
settings_html: "<span class=\"emoji\">πŸ’…πŸΌ</span>Customize your profile"
welcome_html: "<span class=\"emoji\">😊</span>Join the Welcome thread"
write_html: "<span class=\"emoji\">✍🏾</span>Write your first %{community} post"
join_subscription_html: "<span class=\"emoji\">πŸš€</span>Join DEV++"
pins:
article: Pinned
pinned: "πŸ“Œ Pinned! (pinned posts display chronologically, 5 max)"
Expand Down
1 change: 1 addition & 0 deletions config/locales/views/misc/fr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ fr:
settings_html: "<span class=\"emoji\">πŸ’…πŸΌ</span>Customize your profile"
welcome_html: "<span class=\"emoji\">😊</span>Join the Welcome thread"
write_html: "<span class=\"emoji\">✍🏾</span>Write your first %{community} post"
join_subscription_html: "<span class=\"emoji\">πŸš€</span>Join DEV++"
pins:
article: Γ‰pinglΓ©
pinned: "πŸ“Œ Pinned! (pinned posts display chronologically, 5 max)"
Expand Down

0 comments on commit ffc8f8f

Please sign in to comment.