Skip to content

Commit

Permalink
Merge pull request #116 from ezraroi/115-try-to-display-team-name-in-…
Browse files Browse the repository at this point in the history
…the-game-list-of-phone

add tem name in small on mobile
  • Loading branch information
ezraroi authored Sep 13, 2024
2 parents 3c84026 + e675fd8 commit 81467b5
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 20 deletions.
32 changes: 22 additions & 10 deletions Mundialito/Client/src/Dashboard/Dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,16 @@
<div class="col-md-5 col-xs-3">
<team-flag team="game.HomeTeam"></team-flag>
<span class="hidden-xs">{{::game.HomeTeam.Name}}</span>
<span class="visible-xs">
<h5><small>{{::game.HomeTeam.Name}}</small></h5>
</span>
</div>
<div class="col-md-2 col-xs-6 text-center"> - </div>
<div class="col-md-5 col-xs-3">
<span class="pull-right">
<span class="hidden-xs">{{::game.AwayTeam.Name}}</span>
<team-flag team="game.AwayTeam"></team-flag>
<team-flag class="pull-right" team="game.AwayTeam"></team-flag>
<span class="pull-right hidden-xs">{{::game.AwayTeam.Name}}</span>
<span class="pull-right visible-xs">
<h6><small>{{::game.AwayTeam.Name}}</small></h6>
</span>
</div>
</div>
Expand Down Expand Up @@ -123,12 +127,16 @@
<div class="col-md-5 col-xs-3">
<team-flag team="game.HomeTeam"></team-flag>
<span class="hidden-xs">{{::game.HomeTeam.Name}}</span>
<span class="visible-xs">
<h5><small>{{::game.HomeTeam.Name}}</small></h5>
</span>
</div>
<div class="col-md-2 col-xs-6 text-center"> - </div>
<div class="col-md-5 col-xs-3">
<span class="pull-right">
<span class="hidden-xs">{{::game.AwayTeam.Name}}</span>
<team-flag team="game.AwayTeam"></team-flag>
<team-flag class="pull-right" team="game.AwayTeam"></team-flag>
<span class="pull-right hidden-xs">{{::game.AwayTeam.Name}}</span>
<span class="pull-right visible-xs">
<h6><small>{{::game.AwayTeam.Name}}</small></h6>
</span>
</div>
</div>
Expand All @@ -152,13 +160,17 @@
<div class="col-md-5 col-xs-3">
<team-flag team="game.HomeTeam"></team-flag>
<span class="hidden-xs">{{::game.HomeTeam.Name}}</span>
<span class="visible-xs">
<h5><small>{{::game.HomeTeam.Name}}</small></h5>
</span>
</div>
<div class="col-md-2 col-xs-6 text-center"> {{::game.HomeScore}} - {{::game.AwayScore}}
</div>
<div class="col-md-5 col-xs-3">
<span class="pull-right">
<span class="hidden-xs">{{::game.AwayTeam.Name}}</span>
<team-flag team="game.AwayTeam"></team-flag>
<team-flag class="pull-right" team="game.AwayTeam"></team-flag>
<span class="pull-right hidden-xs">{{::game.AwayTeam.Name}}</span>
<span class="pull-right visible-xs">
<h6><small>{{::game.AwayTeam.Name}}</small></h6>
</span>
</div>
</div>
Expand Down Expand Up @@ -201,7 +213,7 @@ <h4 class="media-heading"><a href="{{user.getUrl()}}">{{user.Place}}.
{{user.Name}}</a> <span
class="label label-info pull-right">{{user.Points}}</span></h4>
<span ng-if="user.GeneralBet != null && generalBetsAreOpen == false">
<i class="fa-solid fa-trophy"></i>
<i class="fa-solid fa-trophy"></i>
<team-flag team="user.GeneralBet.WinningTeam"></team-flag>
<span>{{::user.GeneralBet.WinningTeam.Name}}</span><br />
<i class="fa-solid fa-crown"></i> {{::user.GeneralBet.GoldenBootPlayer.Name}}
Expand Down
32 changes: 22 additions & 10 deletions Mundialito/wwwroot/App/Dashboard/Dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,16 @@
<div class="col-md-5 col-xs-3">
<team-flag team="game.HomeTeam"></team-flag>
<span class="hidden-xs">{{::game.HomeTeam.Name}}</span>
<span class="visible-xs">
<h5><small>{{::game.HomeTeam.Name}}</small></h5>
</span>
</div>
<div class="col-md-2 col-xs-6 text-center"> - </div>
<div class="col-md-5 col-xs-3">
<span class="pull-right">
<span class="hidden-xs">{{::game.AwayTeam.Name}}</span>
<team-flag team="game.AwayTeam"></team-flag>
<team-flag class="pull-right" team="game.AwayTeam"></team-flag>
<span class="pull-right hidden-xs">{{::game.AwayTeam.Name}}</span>
<span class="pull-right visible-xs">
<h6><small>{{::game.AwayTeam.Name}}</small></h6>
</span>
</div>
</div>
Expand Down Expand Up @@ -123,12 +127,16 @@
<div class="col-md-5 col-xs-3">
<team-flag team="game.HomeTeam"></team-flag>
<span class="hidden-xs">{{::game.HomeTeam.Name}}</span>
<span class="visible-xs">
<h5><small>{{::game.HomeTeam.Name}}</small></h5>
</span>
</div>
<div class="col-md-2 col-xs-6 text-center"> - </div>
<div class="col-md-5 col-xs-3">
<span class="pull-right">
<span class="hidden-xs">{{::game.AwayTeam.Name}}</span>
<team-flag team="game.AwayTeam"></team-flag>
<team-flag class="pull-right" team="game.AwayTeam"></team-flag>
<span class="pull-right hidden-xs">{{::game.AwayTeam.Name}}</span>
<span class="pull-right visible-xs">
<h6><small>{{::game.AwayTeam.Name}}</small></h6>
</span>
</div>
</div>
Expand All @@ -152,13 +160,17 @@
<div class="col-md-5 col-xs-3">
<team-flag team="game.HomeTeam"></team-flag>
<span class="hidden-xs">{{::game.HomeTeam.Name}}</span>
<span class="visible-xs">
<h5><small>{{::game.HomeTeam.Name}}</small></h5>
</span>
</div>
<div class="col-md-2 col-xs-6 text-center"> {{::game.HomeScore}} - {{::game.AwayScore}}
</div>
<div class="col-md-5 col-xs-3">
<span class="pull-right">
<span class="hidden-xs">{{::game.AwayTeam.Name}}</span>
<team-flag team="game.AwayTeam"></team-flag>
<team-flag class="pull-right" team="game.AwayTeam"></team-flag>
<span class="pull-right hidden-xs">{{::game.AwayTeam.Name}}</span>
<span class="pull-right visible-xs">
<h6><small>{{::game.AwayTeam.Name}}</small></h6>
</span>
</div>
</div>
Expand Down Expand Up @@ -201,7 +213,7 @@ <h4 class="media-heading"><a href="{{user.getUrl()}}">{{user.Place}}.
{{user.Name}}</a> <span
class="label label-info pull-right">{{user.Points}}</span></h4>
<span ng-if="user.GeneralBet != null && generalBetsAreOpen == false">
<i class="fa-solid fa-trophy"></i>
<i class="fa-solid fa-trophy"></i>
<team-flag team="user.GeneralBet.WinningTeam"></team-flag>
<span>{{::user.GeneralBet.WinningTeam.Name}}</span><br />
<i class="fa-solid fa-crown"></i> {{::user.GeneralBet.GoldenBootPlayer.Name}}
Expand Down

0 comments on commit 81467b5

Please sign in to comment.