mirror of https://github.com/abpframework/abp.git
5 changed files with 59 additions and 29 deletions
@ -1,6 +1,6 @@ |
|||
{ |
|||
"culture": "en", |
|||
"texts": { |
|||
|
|||
"PickYourReaction": "Pick your reaction" |
|||
} |
|||
} |
|||
|
|||
@ -1,5 +1,6 @@ |
|||
{ |
|||
"culture": "tr", |
|||
"texts": { |
|||
"PickYourReaction": "Tepkinizi seçin" |
|||
} |
|||
} |
|||
|
|||
@ -1,22 +1,18 @@ |
|||
@model Volo.CmsKit.Web.Pages.CmsKit.Shared.Components.ReactionSelection.ReactionSelectionViewModel |
|||
<span class="cms-reaction-selection" data-entity-type="@Model.EntityType" data-entity-id="@Model.EntityId"> |
|||
<div> |
|||
Pick a reaction: |
|||
<span class="cms-reaction-area" data-entity-type="@Model.EntityType" data-entity-id="@Model.EntityId"> |
|||
<span class="cms-reaction-select-icon"><i class="fa fa-smile-o"></i></span> |
|||
<div class="cms-reaction-selection-popover-content" style="display: none"> |
|||
@foreach (var reaction in Model.Reactions) |
|||
{ |
|||
<span class="mr-2"> |
|||
<img src="@reaction.Icon" width="16" height="16" data-name="@reaction.Name" class="cms-reaction-icon @(reaction.IsSelectedByCurrentUser ? "cms-reaction-icon-selected" : "")"/> |
|||
</span> |
|||
} |
|||
</div> |
|||
<div> |
|||
Current reactions: |
|||
@foreach (var reaction in Model.Reactions.Where(r => r.Count > 0)) |
|||
{ |
|||
<span class="mr-2"> |
|||
<img src="@reaction.Icon" width="20" height="20" data-name="@reaction.Name" class="cms-reaction-icon @(reaction.IsSelectedByCurrentUser ? "cms-reaction-icon-selected" : "")"/> |
|||
<span> @reaction.Count</span> |
|||
<span class="mr-1"> |
|||
<img src="@reaction.Icon" width="18" height="18" data-name="@reaction.Name" class="cms-reaction-icon @(reaction.IsSelectedByCurrentUser ? "cms-reaction-icon-selected" : "")"/> |
|||
</span> |
|||
} |
|||
</div> |
|||
@foreach (var reaction in Model.Reactions.Where(r => r.Count > 0)) |
|||
{ |
|||
<span class="mr-1"> |
|||
<img src="@reaction.Icon" width="18" height="18" data-name="@reaction.Name" class="cms-reaction-icon @(reaction.IsSelectedByCurrentUser ? "cms-reaction-icon-selected" : "")"/>@(reaction.Count) |
|||
</span> |
|||
} |
|||
</span> |
|||
|
|||
@ -1,8 +1,13 @@ |
|||
.cms-reaction-icon |
|||
.cms-reaction-select-icon |
|||
{ |
|||
cursor: pointer; |
|||
} |
|||
.cms-reaction-icon |
|||
{ |
|||
cursor: pointer; |
|||
padding: 2px; |
|||
} |
|||
.cms-reaction-icon-selected |
|||
{ |
|||
border: 1px solid gray; |
|||
background-color: #eee; |
|||
} |
|||
|
|||
Loading…
Reference in new issue