Add the most minimal home page design
This is so that Oriol can start working on it.
This commit is contained in:
parent
2d5a644c9d
commit
dde4395888
|
@ -77,7 +77,7 @@ func NewRouter(db *Db) http.Handler {
|
||||||
}
|
}
|
||||||
http.Redirect(w, r, companyURI(company, "/"), http.StatusFound)
|
http.Redirect(w, r, companyURI(company, "/"), http.StatusFound)
|
||||||
} else {
|
} else {
|
||||||
http.Redirect(w, r, "/login", http.StatusSeeOther)
|
mustRenderWebTemplate(w, r, "home.gohtml", nil)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
31
po/ca.po
31
po/ca.po
|
@ -8,7 +8,7 @@ msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: numerus\n"
|
"Project-Id-Version: numerus\n"
|
||||||
"Report-Msgid-Bugs-To: jordi@tandem.blog\n"
|
"Report-Msgid-Bugs-To: jordi@tandem.blog\n"
|
||||||
"POT-Creation-Date: 2023-06-10 20:40+0200\n"
|
"POT-Creation-Date: 2023-06-11 22:23+0200\n"
|
||||||
"PO-Revision-Date: 2023-01-18 17:08+0100\n"
|
"PO-Revision-Date: 2023-01-18 17:08+0100\n"
|
||||||
"Last-Translator: jordi fita mas <jordi@tandem.blog>\n"
|
"Last-Translator: jordi fita mas <jordi@tandem.blog>\n"
|
||||||
"Language-Team: Catalan <ca@dodds.net>\n"
|
"Language-Team: Catalan <ca@dodds.net>\n"
|
||||||
|
@ -25,15 +25,15 @@ msgstr "Afegeix productes a la factura"
|
||||||
|
|
||||||
#: web/template/invoices/products.gohtml:9 web/template/invoices/new.gohtml:9
|
#: web/template/invoices/products.gohtml:9 web/template/invoices/new.gohtml:9
|
||||||
#: web/template/invoices/index.gohtml:9 web/template/invoices/view.gohtml:9
|
#: web/template/invoices/index.gohtml:9 web/template/invoices/view.gohtml:9
|
||||||
#: web/template/invoices/edit.gohtml:9 web/template/quotes/products.gohtml:9
|
#: web/template/invoices/edit.gohtml:9 web/template/home.gohtml:2
|
||||||
#: web/template/quotes/new.gohtml:9 web/template/quotes/index.gohtml:9
|
#: web/template/quotes/products.gohtml:9 web/template/quotes/new.gohtml:9
|
||||||
#: web/template/quotes/view.gohtml:9 web/template/quotes/edit.gohtml:9
|
#: web/template/quotes/index.gohtml:9 web/template/quotes/view.gohtml:9
|
||||||
#: web/template/contacts/new.gohtml:9 web/template/contacts/index.gohtml:9
|
#: web/template/quotes/edit.gohtml:9 web/template/contacts/new.gohtml:9
|
||||||
#: web/template/contacts/edit.gohtml:10 web/template/profile.gohtml:9
|
#: web/template/contacts/index.gohtml:9 web/template/contacts/edit.gohtml:10
|
||||||
#: web/template/expenses/new.gohtml:10 web/template/expenses/index.gohtml:10
|
#: web/template/profile.gohtml:9 web/template/expenses/new.gohtml:10
|
||||||
#: web/template/expenses/edit.gohtml:10 web/template/tax-details.gohtml:9
|
#: web/template/expenses/index.gohtml:10 web/template/expenses/edit.gohtml:10
|
||||||
#: web/template/products/new.gohtml:9 web/template/products/index.gohtml:9
|
#: web/template/tax-details.gohtml:9 web/template/products/new.gohtml:9
|
||||||
#: web/template/products/edit.gohtml:10
|
#: web/template/products/index.gohtml:9 web/template/products/edit.gohtml:10
|
||||||
msgctxt "title"
|
msgctxt "title"
|
||||||
msgid "Home"
|
msgid "Home"
|
||||||
msgstr "Inici"
|
msgstr "Inici"
|
||||||
|
@ -251,6 +251,12 @@ msgctxt "title"
|
||||||
msgid "Edit Invoice “%s”"
|
msgid "Edit Invoice “%s”"
|
||||||
msgstr "Edició de la factura «%s»"
|
msgstr "Edició de la factura «%s»"
|
||||||
|
|
||||||
|
#: web/template/home.gohtml:7 web/template/login.gohtml:2
|
||||||
|
#: web/template/login.gohtml:15
|
||||||
|
msgctxt "title"
|
||||||
|
msgid "Login"
|
||||||
|
msgstr "Entrada"
|
||||||
|
|
||||||
#: web/template/form.gohtml:36
|
#: web/template/form.gohtml:36
|
||||||
msgctxt "input"
|
msgctxt "input"
|
||||||
msgid "(Max. %s)"
|
msgid "(Max. %s)"
|
||||||
|
@ -448,11 +454,6 @@ msgctxt "title"
|
||||||
msgid "Edit Contact “%s”"
|
msgid "Edit Contact “%s”"
|
||||||
msgstr "Edició del contacte «%s»"
|
msgstr "Edició del contacte «%s»"
|
||||||
|
|
||||||
#: web/template/login.gohtml:2 web/template/login.gohtml:15
|
|
||||||
msgctxt "title"
|
|
||||||
msgid "Login"
|
|
||||||
msgstr "Entrada"
|
|
||||||
|
|
||||||
#: web/template/login.gohtml:19
|
#: web/template/login.gohtml:19
|
||||||
msgctxt "action"
|
msgctxt "action"
|
||||||
msgid "Login"
|
msgid "Login"
|
||||||
|
|
31
po/es.po
31
po/es.po
|
@ -7,7 +7,7 @@ msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: numerus\n"
|
"Project-Id-Version: numerus\n"
|
||||||
"Report-Msgid-Bugs-To: jordi@tandem.blog\n"
|
"Report-Msgid-Bugs-To: jordi@tandem.blog\n"
|
||||||
"POT-Creation-Date: 2023-06-10 20:40+0200\n"
|
"POT-Creation-Date: 2023-06-11 22:23+0200\n"
|
||||||
"PO-Revision-Date: 2023-01-18 17:45+0100\n"
|
"PO-Revision-Date: 2023-01-18 17:45+0100\n"
|
||||||
"Last-Translator: jordi fita mas <jordi@tandem.blog>\n"
|
"Last-Translator: jordi fita mas <jordi@tandem.blog>\n"
|
||||||
"Language-Team: Spanish <es@tp.org.es>\n"
|
"Language-Team: Spanish <es@tp.org.es>\n"
|
||||||
|
@ -25,15 +25,15 @@ msgstr "Añadir productos a la factura"
|
||||||
|
|
||||||
#: web/template/invoices/products.gohtml:9 web/template/invoices/new.gohtml:9
|
#: web/template/invoices/products.gohtml:9 web/template/invoices/new.gohtml:9
|
||||||
#: web/template/invoices/index.gohtml:9 web/template/invoices/view.gohtml:9
|
#: web/template/invoices/index.gohtml:9 web/template/invoices/view.gohtml:9
|
||||||
#: web/template/invoices/edit.gohtml:9 web/template/quotes/products.gohtml:9
|
#: web/template/invoices/edit.gohtml:9 web/template/home.gohtml:2
|
||||||
#: web/template/quotes/new.gohtml:9 web/template/quotes/index.gohtml:9
|
#: web/template/quotes/products.gohtml:9 web/template/quotes/new.gohtml:9
|
||||||
#: web/template/quotes/view.gohtml:9 web/template/quotes/edit.gohtml:9
|
#: web/template/quotes/index.gohtml:9 web/template/quotes/view.gohtml:9
|
||||||
#: web/template/contacts/new.gohtml:9 web/template/contacts/index.gohtml:9
|
#: web/template/quotes/edit.gohtml:9 web/template/contacts/new.gohtml:9
|
||||||
#: web/template/contacts/edit.gohtml:10 web/template/profile.gohtml:9
|
#: web/template/contacts/index.gohtml:9 web/template/contacts/edit.gohtml:10
|
||||||
#: web/template/expenses/new.gohtml:10 web/template/expenses/index.gohtml:10
|
#: web/template/profile.gohtml:9 web/template/expenses/new.gohtml:10
|
||||||
#: web/template/expenses/edit.gohtml:10 web/template/tax-details.gohtml:9
|
#: web/template/expenses/index.gohtml:10 web/template/expenses/edit.gohtml:10
|
||||||
#: web/template/products/new.gohtml:9 web/template/products/index.gohtml:9
|
#: web/template/tax-details.gohtml:9 web/template/products/new.gohtml:9
|
||||||
#: web/template/products/edit.gohtml:10
|
#: web/template/products/index.gohtml:9 web/template/products/edit.gohtml:10
|
||||||
msgctxt "title"
|
msgctxt "title"
|
||||||
msgid "Home"
|
msgid "Home"
|
||||||
msgstr "Inicio"
|
msgstr "Inicio"
|
||||||
|
@ -251,6 +251,12 @@ msgctxt "title"
|
||||||
msgid "Edit Invoice “%s”"
|
msgid "Edit Invoice “%s”"
|
||||||
msgstr "Edición de la factura «%s»"
|
msgstr "Edición de la factura «%s»"
|
||||||
|
|
||||||
|
#: web/template/home.gohtml:7 web/template/login.gohtml:2
|
||||||
|
#: web/template/login.gohtml:15
|
||||||
|
msgctxt "title"
|
||||||
|
msgid "Login"
|
||||||
|
msgstr "Entrada"
|
||||||
|
|
||||||
#: web/template/form.gohtml:36
|
#: web/template/form.gohtml:36
|
||||||
msgctxt "input"
|
msgctxt "input"
|
||||||
msgid "(Max. %s)"
|
msgid "(Max. %s)"
|
||||||
|
@ -448,11 +454,6 @@ msgctxt "title"
|
||||||
msgid "Edit Contact “%s”"
|
msgid "Edit Contact “%s”"
|
||||||
msgstr "Edición del contacto «%s»"
|
msgstr "Edición del contacto «%s»"
|
||||||
|
|
||||||
#: web/template/login.gohtml:2 web/template/login.gohtml:15
|
|
||||||
msgctxt "title"
|
|
||||||
msgid "Login"
|
|
||||||
msgstr "Entrada"
|
|
||||||
|
|
||||||
#: web/template/login.gohtml:19
|
#: web/template/login.gohtml:19
|
||||||
msgctxt "action"
|
msgctxt "action"
|
||||||
msgid "Login"
|
msgid "Login"
|
||||||
|
|
|
@ -0,0 +1,8 @@
|
||||||
|
{{ define "title" -}}
|
||||||
|
{{( pgettext "Home" "title" )}}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{ define "content" -}}
|
||||||
|
<h1><img src="/static/numerus.svg" alt="Numerus" width="620" height="77"></h1>
|
||||||
|
<a href="/login">{{( pgettext "Login" "title" )}}</a>
|
||||||
|
{{- end }}
|
Loading…
Reference in New Issue