mirror of
https://github.com/Team254/cheesy-arena-lite.git
synced 2026-03-09 13:46:44 -04:00
Improved announcer display formatting.
This commit is contained in:
@@ -290,7 +290,7 @@ func getOfficialTeamInfo(teamId int) (*Team, error) {
|
||||
// Generate accomplishments string
|
||||
for _, award := range recentAwards {
|
||||
if time.Now().Year()-award.Year <= 2 {
|
||||
accomplishmentsBuffer.WriteString(fmt.Sprintf("%d %s - %s\n", award.Year, award.EventName, award.Name))
|
||||
accomplishmentsBuffer.WriteString(fmt.Sprintf("<p>%d %s - %s</p>", award.Year, award.EventName, award.Name))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -86,6 +86,11 @@
|
||||
.nowrap {
|
||||
white-space: nowrap;
|
||||
}
|
||||
.indentwrap p {
|
||||
margin: 8px 0px;
|
||||
padding-left: 20px;
|
||||
text-indent: -20px;
|
||||
}
|
||||
.scoring {
|
||||
font-size: 20px;
|
||||
font-weight: bold;
|
||||
|
||||
@@ -54,7 +54,7 @@
|
||||
<div>Rookie Year: {{"{{RookieYear}}"}}</div>
|
||||
</div>
|
||||
<div class="col-lg-5">{{"{{Name}}"}}</div>
|
||||
<div class="col-lg-5 nowrap">{{"{{{Accomplishments}}}"}}</div>
|
||||
<div class="col-lg-5 indentwrap">{{"{{{Accomplishments}}}"}}</div>
|
||||
{{"{{else}}"}}
|
||||
<div class="col-lg-12">No team present</div>
|
||||
{{"{{/if}}"}}
|
||||
|
||||
Reference in New Issue
Block a user