Changed button styling

This commit is contained in:
David Allen 2024-03-13 00:39:00 -06:00
parent 9014e5548e
commit 35cf37836d
No known key found for this signature in database
GPG key ID: 1D2A29322FBB6FCB

View file

@ -76,5 +76,10 @@ func Login(config *Config, client *oauth.Client, provider *oidc.IdentityProvider
} }
func MakeButton(url string, text string) string { func MakeButton(url string, text string) string {
return "<a href=\"" + url + "\"> " + text + "</a>" html := "<input type=\"button\" "
html += "class=\"button\" "
html += fmt.Sprintf("onclick=\"window.location.href='%s';\" ", url)
html += fmt.Sprintf("value=\"%s\"", text)
return html
// return "<a href=\"" + url + "\"> " + text + "</a>"
} }