Improved announcer display formatting.

This commit is contained in:
Patrick Fairbank
2015-09-01 22:54:39 -07:00
parent 41e571ec62
commit c9658b57c8
3 changed files with 7 additions and 2 deletions

View File

@@ -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))
}
}

View File

@@ -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;

View File

@@ -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}}"}}