|
|
|
@ -1,11 +1,11 @@ |
|
|
|
@model Volo.CmsKit.Web.Pages.CmsKit.Shared.Components.ReactionSelection.ReactionSelectionViewModel |
|
|
|
<span class="cms-reaction-selection"> |
|
|
|
<span class="cms-reaction-selection" data-entity-type="@Model.EntityType" data-entity-id="@Model.EntityId"> |
|
|
|
<div class="cms-reaction-selection-available-reactions"> |
|
|
|
Pick a reaction: |
|
|
|
@foreach (var reaction in Model.Reactions) |
|
|
|
{ |
|
|
|
<span class="mr-2"> |
|
|
|
<img src="@reaction.Icon" width="16" height="16" class="cms-reaction-icon @(reaction.IsSelectedByCurrentUser ? "cms-reaction-icon-highlighted" : "")"/> |
|
|
|
<img src="@reaction.Icon" width="16" height="16" data-name="@reaction.Name" class="cms-reaction-icon @(reaction.IsSelectedByCurrentUser ? "cms-reaction-icon-highlighted" : "")"/> |
|
|
|
</span> |
|
|
|
} |
|
|
|
</div> |
|
|
|
@ -14,7 +14,7 @@ |
|
|
|
@foreach (var reaction in Model.Reactions.Where(r => r.Count > 0)) |
|
|
|
{ |
|
|
|
<span class="mr-2"> |
|
|
|
<img src="@reaction.Icon" width="20" height="20" class="cms-reaction-icon @(reaction.IsSelectedByCurrentUser ? "cms-reaction-icon-highlighted" : "")"/> |
|
|
|
<img src="@reaction.Icon" width="20" height="20" data-name="@reaction.Name" class="cms-reaction-icon @(reaction.IsSelectedByCurrentUser ? "cms-reaction-icon-highlighted" : "")"/> |
|
|
|
<span> @reaction.Count</span> |
|
|
|
</span> |
|
|
|
} |
|
|
|
|