* Try disabling text-select (mobile long-tap) * Try to force button color on mobile safari * Try making notification decorator more helpful * More using notification decorator * Helper so I can see exceptions * As we toggle feature flag, temporary show 'heart' for unsupported reactions * Reaction on Comment is a 'reaction'-type notification * Temporarily add new emojis to i18n * Render full-color, unique SVGs for multiple_reactions * Restore card layout * Aggregate reaction icons also need unique SVGs * This seems unnecessary? * Multiple is -more-than-one- * Display *unique* reaction categories on /notifications * Comment notification no longer needs to re-render as reaction * Decorator needs to handle some data gaps * Fix NotificationHelper * Try a better name for this * Tests for the notification decorator * These partials wound up without an outer layer * Add a descriptive comment * index needs force_unique * Try multiple reactions external img (#19076) * Try external img SVGs * Unique SVG might not be necessary if this works * Can also remove this spec if successful * Restore flash icon behavior * Plus external img for #index as well
15 lines
753 B
Text
15 lines
753 B
Text
<div class="crayons-card notification">
|
|
<% json_data = notification.json_data %>
|
|
<%= render "notifications/shared/profile_pic", json_data: json_data %>
|
|
|
|
<div class="notification__content">
|
|
<header class="mb-4">
|
|
<h2 class="fs-base fw-normal">
|
|
<%= message_user_acted_maybe_org(json_data, "views.notifications.new_post.verb_html", if_org: "views.notifications.new_post.if_org_html") %>
|
|
</h2>
|
|
<p class="lh-tight"><small class="fs-s color-base-60"><%= time_ago_in_words json_data["article"]["published_at"], scope: :"datetime.distance_in_words_ago" %></small></p>
|
|
</header>
|
|
|
|
<%= render "notifications/shared/article_preview", json_data: json_data, notification: notification, context: "default" %>
|
|
</div>
|
|
</div>
|