diff --git a/public/css/g.css b/public/css/g.css index 16cc2976..10335716 100644 --- a/public/css/g.css +++ b/public/css/g.css @@ -43,8 +43,8 @@ th a { color: #7A5C94; } th { border-color: #cbbdd7 !important; } td { border-color: #e6eff4 !important; } -td.tr-se { color: #22A243; } -td.tr-le { color: #E84C4C; } +td.tr-se, .success-text { color: #22A243; } +td.tr-le, .error-text { color: #E84C4C; } .aplus { background: hsla(200, 100%, 50%, 0.2) !important; } .trusted { background: hsla(100, 100%, 50%, 0.2) !important; } diff --git a/public/css/main.css b/public/css/main.css index 918cdc14..d555d2d7 100644 --- a/public/css/main.css +++ b/public/css/main.css @@ -424,8 +424,8 @@ th a { color: #6E96AA; } th { border-color: #ddd !important; } td { border-color: #ccc !important; } -td.tr-se { color: #22A243; } -td.tr-le { color: #E84C4C; } +td.tr-se, .success-text { color: #22A243; } +td.tr-le, .error-text { color: #E84C4C; } /* Original Nyaa colors, do NOT change! */ .aplus { background: #60B0F0; } @@ -712,3 +712,6 @@ input.filelist-checkbox:checked + table.table-filelist { .editor-preview-side { top: 110px; } +.error-text, .success-text { + text-align: center; +} diff --git a/public/css/tomorrow.css b/public/css/tomorrow.css index 8b409c56..86342c72 100644 --- a/public/css/tomorrow.css +++ b/public/css/tomorrow.css @@ -37,8 +37,8 @@ th a { color: #c5c8c6; } th, td { border-color: #141517 !important; } -td.tr-se { color: #b5bd68; } -td.tr-le { color: #cc6666; } +td.tr-se, .success-text { color: #b5bd68; } +td.tr-le, .error-text { color: #cc6666; } .aplus { background: hsla(180, 50%, 50%, 0.2) !important; } .trusted { background: hsla(90, 50%, 50%, 0.2) !important; } diff --git a/templates/_profile_edit.html b/templates/_profile_edit.html index 1f27602e..99fb4212 100644 --- a/templates/_profile_edit.html +++ b/templates/_profile_edit.html @@ -1,10 +1,10 @@ {{define "profile_edit_content"}} {{with .UserProfile}} {{ range (index $.FormInfos "infos")}} -
× {{ . }}
+

{{ . }}

{{end}} {{ range (index $.FormErrors "errors")}} -
× {{ . }}
+

{{ . }}

{{end}}

{{ call $.T "personal_info"}}

@@ -16,7 +16,7 @@

{{ range (index $.FormErrors "email")}} -

{{ . }}

+

{{ . }}

{{end}}

{{ range (index $.FormErrors "language")}} -

{{ . }}

+

{{ . }}

{{end}} {{ if not (HasAdmin $.User)}}

{{ range (index $.FormErrors "current_password")}} -

{{ . }}

+

{{ . }}

{{end}} {{end}}

{{ range (index $.FormErrors "password")}} -

{{ . }}

+

{{ . }}

{{end}}

{{ range (index $.FormErrors "password_confirmation")}} -

{{ . }}

+

{{ . }}

{{end}}

{{ call $.T "preferences"}}


@@ -54,7 +54,7 @@
{{ range (index $.FormErrors "theme")}} -

{{ . }}

+

{{ . }}

{{end}} {{ with .Settings }} {{ if DefaultUserSettings "new_torrent"}} @@ -64,7 +64,7 @@
{{ range (index $.FormErrors "new_torrent")}} -

{{ . }}

+

{{ . }}

{{end}} {{end}} {{ if DefaultUserSettings "new_torrent_email"}} @@ -74,7 +74,7 @@
{{ range (index $.FormErrors "new_torrent_email")}} -

{{ . }}

+

{{ . }}

{{end}} {{end}} {{ if DefaultUserSettings "new_comment"}} @@ -84,7 +84,7 @@
{{ range (index $.FormErrors "new_comment")}} -

{{ . }}

+

{{ . }}

{{end}} {{end}} {{ if DefaultUserSettings "new_comment_email"}} @@ -94,7 +94,7 @@
{{ range (index $.FormErrors "new_comment_email")}} -

{{ . }}

+

{{ . }}

{{end}} {{end}} {{ if DefaultUserSettings "new_responses"}} @@ -104,7 +104,7 @@
{{ range (index $.FormErrors "new_responses")}} -

{{ . }}

+

{{ . }}

{{end}} {{end}} {{ if DefaultUserSettings "new_responses_email"}} @@ -114,7 +114,7 @@
{{ range (index $.FormErrors "new_responses_email")}} -

{{ . }}

+

{{ . }}

{{end}} {{end}} {{ if DefaultUserSettings "new_follower"}} @@ -124,7 +124,7 @@
{{ range (index $.FormErrors "new_follower")}} -

{{ . }}

+

{{ . }}

{{end}} {{end}} {{ if DefaultUserSettings "new_follower_email"}} @@ -134,7 +134,7 @@
{{ range (index $.FormErrors "new_follower_email")}} -

{{ . }}

+

{{ . }}

{{end}} {{end}} {{ if DefaultUserSettings "followed"}} @@ -144,7 +144,7 @@
{{ range (index $.FormErrors "followed")}} -

{{ . }}

+

{{ . }}

{{end}} {{end}} {{ if DefaultUserSettings "followed_email"}} @@ -154,7 +154,7 @@
{{ range (index $.FormErrors "followed_email")}} -

{{ . }}

+

{{ . }}

{{end}} {{end}} {{end}} @@ -163,7 +163,7 @@
{{ range (index $.FormErrors "username")}} -

{{ . }}

+

{{ . }}

{{end}} {{ range (index $.FormErrors "status")}} -

{{ . }}

+

{{ . }}

{{end}} {{end}} diff --git a/templates/upload.html b/templates/upload.html index 595979d6..65e554ac 100644 --- a/templates/upload.html +++ b/templates/upload.html @@ -5,7 +5,7 @@
{{ block "csrf_field" $ }}{{end}} {{ range (index $.FormErrors "errors")}} -
× {{ . }}
+

{{ . }}

{{end}}

{{call $.T "name"}}

diff --git a/templates/user/login.html b/templates/user/login.html index 275aafad..8e895d8d 100644 --- a/templates/user/login.html +++ b/templates/user/login.html @@ -8,15 +8,15 @@ {{ block "csrf_field" $ }}{{end}}

{{call $.T "sign_in_box_title"}}

{{ range (index $.FormErrors "errors")}} -
{{ . }}
+

{{ . }}

{{end}}
{{ range (index $.FormErrors "username")}} -

{{ . }}

+

{{ . }}

{{end}}
{{ range (index $.FormErrors "password")}} -

{{ . }}

+

{{ . }}

{{end}}