Fix typos
This commit is contained in:
@@ -59,7 +59,7 @@ func (m *Model) GetStats(c context.Context) (Stats, error) {
|
||||
}
|
||||
|
||||
// returns the player's UUID if error is nil
|
||||
// err = NoSuchEntity if the sessionsCode is incorrect
|
||||
// err = NoSuchEntity if the sessionCode is incorrect
|
||||
func (m *Model) RegisterPlayer(playerName string, sessionCode string, c context.Context) (*ent.Player, error) {
|
||||
tx, err := m.c.BeginTx(c, &sql.TxOptions{
|
||||
Isolation: sql.LevelRepeatableRead,
|
||||
|
||||
@@ -5,9 +5,9 @@
|
||||
<meta charset='utf-8'>
|
||||
<title>Tinyquiz</title>
|
||||
<link rel="stylesheet" href="/static/style.css">
|
||||
{{ block "aditional-css" . }}{{ end }}
|
||||
{{ block "additional-css" . }}{{ end }}
|
||||
<script src="/static/script.js" defer type="text/javascript"></script>
|
||||
{{ block "aditional-js" . }}{{ end }}
|
||||
{{ block "additional-js" . }}{{ end }}
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
{{- template "base" . -}}
|
||||
|
||||
{{- define "aditional-css" -}}
|
||||
{{- define "additional-css" -}}
|
||||
<link rel="stylesheet" href="/static/game.css">
|
||||
{{ end -}}
|
||||
|
||||
{{- define "aditional-js" -}}
|
||||
{{- define "additional-js" -}}
|
||||
{{ end -}}
|
||||
|
||||
{{- define "header" }}
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
{{- template "base" . -}}
|
||||
|
||||
{{- define "aditional-css" -}}
|
||||
{{- define "additional-css" -}}
|
||||
<link rel="stylesheet" href="/static/home.css">
|
||||
{{ end -}}
|
||||
|
||||
{{- define "aditional-js" -}}
|
||||
{{- define "additional-js" -}}
|
||||
<script src="/static/home.js"></script>
|
||||
{{ end -}}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user