forked from Sarah/Lieb-Website
the raid roles now have a fixed order
This commit is contained in:
parent
9246e1ab78
commit
2e92bdee5f
4 changed files with 4 additions and 4 deletions
|
@ -10,7 +10,7 @@
|
|||
RaidSignUp userRole = _raid.SignUps.Where(s => s.LiebUserId == _user.LiebUserId).FirstOrDefault();
|
||||
bool isSignedUp = userRole != null;
|
||||
}
|
||||
@foreach (PlannedRaidRole role in _raid.Roles)
|
||||
@foreach (PlannedRaidRole role in _raid.Roles.OrderBy(r => r.PlannedRaidRoleId))
|
||||
{
|
||||
RaidSignUp[] signUps = _raid.SignUps.Where(s => s.PlannedRaidRoleId == role.PlannedRaidRoleId).ToArray();
|
||||
int usedSpots = signUps.Where(s => s.SignUpType == SignUpType.SignedUp).Count();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue