frontend: use the new set of icons for notification
This commit is contained in:
parent
19bd8cca0d
commit
e57ff1be8d
5 changed files with 6 additions and 6 deletions
|
|
@ -121,7 +121,7 @@ func treatSubmission(pathname string, team fic.Team, exercice_id string) {
|
|||
// Write event
|
||||
if lvl, err := exercice.GetLevel(); err != nil {
|
||||
log.Println(id, "[ERR] Unable to get exercice level:", err)
|
||||
} else if _, err := fic.NewEvent(fmt.Sprintf("L'équipe %s a résolu le <strong>%d<sup>e</sup></strong> défi %s !", team.Name, lvl, theme.Name), "success"); err != nil {
|
||||
} else if _, err := fic.NewEvent(fmt.Sprintf("L'équipe %s a résolu le <strong>%d<sup>e</sup></strong> défi %s !", team.Name, lvl, theme.Name), "success"); err != nil {
|
||||
log.Println(id, "[WRN] Unable to create event:", err)
|
||||
}
|
||||
genTeamAll(team)
|
||||
|
|
@ -132,7 +132,7 @@ func treatSubmission(pathname string, team fic.Team, exercice_id string) {
|
|||
if tm.Unix() == 0 {
|
||||
if lvl, err := exercice.GetLevel(); err != nil {
|
||||
log.Println(id, "[ERR] Unable to get exercice level:", err)
|
||||
} else if _, err := fic.NewEvent(fmt.Sprintf("L'équipe %s tente le <strong>%d<sup>e</sup></strong> défi %s !", team.Name, lvl, theme.Name), "warning"); err != nil {
|
||||
} else if _, err := fic.NewEvent(fmt.Sprintf("L'équipe %s tente le <strong>%d<sup>e</sup></strong> défi %s !", team.Name, lvl, theme.Name), "warning"); err != nil {
|
||||
log.Println(id, "[WRN] Unable to create event:", err)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue