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