@using Lieb.Data @using Lieb.Models @using Lieb.Models.GuildWars2 @using Lieb.Models.GuildWars2.Raid @inject RaidService RaidService
@if(_allExpanded) { } else { } Role | Users | @if (flexExists) {Flex | }(@_raid.SignUps.Where(s => s.SignUpType == SignUpType.SignedUp).Count()/@_raid.Roles.Sum(r => r.Spots)) | |||
---|---|---|---|---|---|---|
ToggleRow(role)">
@if(@role.IsRowExpanded)
{
}
else
{
}
@role.Role.Name (@_raid.SignUps.Where(s => s.RaidRoleId == role.Role.RaidRoleId && s.SignUpType == SignUpType.SignedUp).Count() / @role.Role.Spots)
@if (@role.IsRowExpanded)
{
@role.Role.Description } |
}
@{List |
@if (flexExists)
{
List
|
}
@if(_liebUserId > 0 && _isRaidSignUpAllowed)
{
bool notIsRoleSignUpAllowed = !RaidService.IsRoleSignUpAllowed(_raid.RaidId, _liebUserId, role.Role.RaidRoleId, SignUpType.SignedUp, false);
bool notIsBackupAllowed = _raid.RaidType != RaidType.Planned && notIsRoleSignUpAllowed;
@if (isSignedUp && _raid.RaidType == RaidType.Planned) { | } } |