Skip to content

Commit

Permalink
添加相关词条总数显示
Browse files Browse the repository at this point in the history
  • Loading branch information
LittleFish-233 committed Sep 14, 2022
1 parent b51a878 commit e859c7b
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
var castWorks = Model.StaffGames.Where(s => s.AddInfors != null && s.AddInfors.Any(s => s.Contents.Any(s => ToolHelper.GetGeneralType(s.DisplayName) == PositionGeneralType.CV)));
@if (castWorks.Any())
{
<CnGalWebSite.Shared.MasaComponent.Shared.Components.MasaTitleContainer Icon="fa fa-fw fa-paper-plane" Title="配音作品" Outline Collapable>
<CnGalWebSite.Shared.MasaComponent.Shared.Components.MasaTitleContainer Icon="fa fa-fw fa-paper-plane" Title="@("配音作品"+(castWorks.Count()>4?$" ({castWorks.Count()})":""))" Outline Collapable>
<div class="row">
@foreach (var item in castWorks)
{
Expand All @@ -47,7 +47,7 @@
var participationWorks = Model.StaffGames.Where(s => s.AddInfors == null || s.AddInfors.Any(s => s.Contents.Any(s => ToolHelper.GetGeneralType(s.DisplayName) != PositionGeneralType.CV && ToolHelper.GetGeneralType(s.DisplayName) != PositionGeneralType.SpecialThanks)));
@if (participationWorks.Any())
{
<CnGalWebSite.Shared.MasaComponent.Shared.Components.MasaTitleContainer Icon="fa fa-fw fa-paper-plane-o" Title="参与作品" Outline Collapable>
<CnGalWebSite.Shared.MasaComponent.Shared.Components.MasaTitleContainer Icon="fa fa-fw fa-paper-plane-o" Title="@("参与作品"+(participationWorks.Count()>4?$" ({participationWorks.Count()})":""))" Outline Collapable>
<div class="row">
@foreach (var item in participationWorks)
{
Expand All @@ -64,7 +64,7 @@

@if (appreciatedParticWorks.Any())
{
<CnGalWebSite.Shared.MasaComponent.Shared.Components.MasaTitleContainer Icon="fa fa-fw fa-star-o" Title="特别感谢" Outline Collapable>
<CnGalWebSite.Shared.MasaComponent.Shared.Components.MasaTitleContainer Icon="fa fa-fw fa-star-o" Title="@("特别感谢"+(appreciatedParticWorks.Count()>4?$" ({appreciatedParticWorks.Count()})":""))" Outline Collapable>
<div class="row">
@foreach (var item in appreciatedParticWorks)
{
Expand All @@ -79,7 +79,7 @@
}
@if (Model.EntryRelevances.Any(s => s.Type == EntryType.Game))
{
<CnGalWebSite.Shared.MasaComponent.Shared.Components.MasaTitleContainer Icon="fa fa-fw fa-gamepad" Title="相关游戏" Outline Collapable>
<CnGalWebSite.Shared.MasaComponent.Shared.Components.MasaTitleContainer Icon="fa fa-fw fa-gamepad" Title="@("相关游戏"+(Model.EntryRelevances.Count(s => s.Type == EntryType.Game)>4?$" ({Model.EntryRelevances.Count(s => s.Type == EntryType.Game)})":""))" Outline Collapable>
<div class="row">
@foreach (var item in Model.EntryRelevances.Where(s => s.Type == EntryType.Game))
{
Expand All @@ -93,7 +93,7 @@
}
@if (Model.EntryRelevances.Any(s => s.Type == EntryType.Staff))
{
<CnGalWebSite.Shared.MasaComponent.Shared.Components.MasaTitleContainer Icon="fa fa-fw fa-star" Title="相关STAFF" Outline Collapable>
<CnGalWebSite.Shared.MasaComponent.Shared.Components.MasaTitleContainer Icon="fa fa-fw fa-star" Title="@("相关STAFF"+(Model.EntryRelevances.Count(s => s.Type == EntryType.Staff)>4?$" ({Model.EntryRelevances.Count(s => s.Type == EntryType.Staff)})":""))" Outline Collapable>
<div class="row">
@foreach (var item in Model.EntryRelevances.Where(s => s.Type == EntryType.Staff))
{
Expand All @@ -107,7 +107,7 @@
}
@if (Model.EntryRelevances.Any(s => s.Type == EntryType.Role))
{
<CnGalWebSite.Shared.MasaComponent.Shared.Components.MasaTitleContainer Icon="fa fa-fw fa-group" Title="相关角色" Outline Collapable>
<CnGalWebSite.Shared.MasaComponent.Shared.Components.MasaTitleContainer Icon="fa fa-fw fa-group" Title="@("相关角色"+(Model.EntryRelevances.Count(s => s.Type == EntryType.Role)>4?$" ({Model.EntryRelevances.Count(s => s.Type == EntryType.Role)})":""))" Outline Collapable>
<div class="row">
@foreach (var item in Model.EntryRelevances.Where(s => s.Type == EntryType.Role))
{
Expand All @@ -121,7 +121,7 @@
}
@if (Model.EntryRelevances.Any(s => s.Type == EntryType.ProductionGroup))
{
<CnGalWebSite.Shared.MasaComponent.Shared.Components.MasaTitleContainer Icon="fa fa-fw fa-object-group" Title="相关制作组" Outline Collapable>
<CnGalWebSite.Shared.MasaComponent.Shared.Components.MasaTitleContainer Icon="fa fa-fw fa-object-group" Title="@("相关制作组"+(Model.EntryRelevances.Count(s => s.Type == EntryType.ProductionGroup)>4?$" ({Model.EntryRelevances.Count(s => s.Type == EntryType.ProductionGroup)})":""))" Outline Collapable>
<div class="row">
@foreach (var item in Model.EntryRelevances.Where(s => s.Type == EntryType.ProductionGroup))
{
Expand Down

0 comments on commit e859c7b

Please sign in to comment.