Skip to content

Commit

Permalink
tested
Browse files Browse the repository at this point in the history
  • Loading branch information
ezraroi committed Sep 12, 2024
1 parent 8948f36 commit be15636
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 5 deletions.
4 changes: 4 additions & 0 deletions Mundialito/Client/css/Site.css
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,8 @@ input.ng-invalid.ng-dirty, textarea.ng-invalid.ng-dirty, select.ng-invalid.ng-di
.big-logo {
width: 40px;
height: 40px;
}

.label-as-badge {
border-radius: 1em;
}
2 changes: 1 addition & 1 deletion Mundialito/Client/src/Users/ManageApp.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</thead>
<tbody>
<tr ng-repeat="user in users">
<td><a href="{{user.getUrl()}}">{{::user.Name}}</a><span style="margin-left: 5px;" class="badge" ng-class="{'badge-success': user.Roles === 'Admin', 'label-default': user.Roles === 'Active', 'label-danger':user.Roles === 'Disabled'}">{{::user.Roles}}</span> </td>
<td><a href="{{user.getUrl()}}">{{::user.Name}}</a><span style="margin-left: 5px;" class="label label-as-badge" ng-class="{'label-success': user.Roles === 'Admin', 'label-default': user.Roles === 'Active', 'label-danger':user.Roles === 'Disabled'}">{{::user.Roles}}</span> </td>
<td>{{user.Email}}</td>
<td>
<button title="delete" type="button" class="btn btn-danger btn-sm" ng-click="deleteUser(user)" tooltip="Delete User"><i class="fa fa-times-circle"></i> <span class="hidden-xs">Delete</span></button>
Expand Down
10 changes: 9 additions & 1 deletion Mundialito/Models/GeneralBetsModels.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,15 @@ public GeneralBetViewModel(GeneralBet bet, DateTime closeTime)
{
OwnerId = bet.User.Id;
GeneralBetId = bet.GeneralBetId;
WinningTeam = bet.WinningTeam;
WinningTeam = new Team {
TeamId = bet.WinningTeam.TeamId,
Name = bet.WinningTeam.Name,
Flag = bet.WinningTeam.Flag,
Logo = bet.WinningTeam.Logo,
ShortName = bet.WinningTeam.ShortName,
TeamPage = bet.WinningTeam.TeamPage,
IntegrationsData = bet.WinningTeam.IntegrationsData
};
GoldenBootPlayer = bet.GoldBootPlayer;
IsResolved = bet.IsResolved;
if (IsResolved)
Expand Down
2 changes: 1 addition & 1 deletion Mundialito/wwwroot/App/Users/ManageApp.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</thead>
<tbody>
<tr ng-repeat="user in users">
<td><a href="{{user.getUrl()}}">{{::user.Name}}</a><span style="margin-left: 5px;" class="badge" ng-class="{'badge-success': user.Roles === 'Admin', 'label-default': user.Roles === 'Active', 'label-danger':user.Roles === 'Disabled'}">{{::user.Roles}}</span> </td>
<td><a href="{{user.getUrl()}}">{{::user.Name}}</a><span style="margin-left: 5px;" class="label label-as-badge" ng-class="{'label-success': user.Roles === 'Admin', 'label-default': user.Roles === 'Active', 'label-danger':user.Roles === 'Disabled'}">{{::user.Roles}}</span> </td>
<td>{{user.Email}}</td>
<td>
<button title="delete" type="button" class="btn btn-danger btn-sm" ng-click="deleteUser(user)" tooltip="Delete User"><i class="fa fa-times-circle"></i> <span class="hidden-xs">Delete</span></button>
Expand Down
2 changes: 1 addition & 1 deletion Mundialito/wwwroot/css/app-cerulean.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Mundialito/wwwroot/css/app-space-lab.css

Large diffs are not rendered by default.

0 comments on commit be15636

Please sign in to comment.