Albirew/nyaa-pantsu
Albirew
/
nyaa-pantsu
Archivé
1
0
Bifurcation 0

Misc. changes to profile edit and notifications page

Cette révision appartient à :
kipukun 2017-06-05 14:21:20 -04:00
Parent c9e480167b
révision 7a9c4cd13e
4 fichiers modifiés avec 14 ajouts et 6 suppressions

Voir le fichier

@ -12,9 +12,9 @@
{{ block "csrf_field" $ }}{{end}}
<label class="input-label">{{call $.T "api_token" }}:</label>
<p style="font-family: monospace;">{{.APIToken}}</p>
<a class="form-input up-input" href="{{ genRoute "user_profile_apireset" "id" (print .ID) "username" .Username }}">Reset Api key</a> <br> <br>
<a class="form-input up-input" href="{{ genRoute "user_profile_apireset" "id" (print .ID) "username" .Username }}">Reset API key</a> <br> <br>
<label class="input-label">{{ call $.T "email_address" }}:</label> <br>
<input class="form-input up-input" type="text" name="email" id="email" value="{{.Email}}"> <br>
<input class="form-input up-input" placeholder="{{ call $.T "email_placeholder"}}" type="text" name="email" id="email" value="{{.Email}}"> <br>
{{ range (index $.FormErrors "email")}}
<p class="error-text">{{ . }}</p>
{{end}}

Voir le fichier

@ -5,16 +5,20 @@
<div style="clear: both;"></div>
</div>
{{ range (index $.FormInfos "infos")}}
<div class="alert alert-info"><a class="panel-close close" data-dismiss="alert">×</a><i class="glyphicon glyphicon-info-sign"></i> {{ . }}</div>
<p class="success-text">{{ . }}</p>
{{end}}
<table class="table table-hover table-striped">
{{ if gt (len .Notifications) 0}}
<table>
{{ range .Notifications }}
<tr><td>
<div style="padding: 0 1rem 1rem;">
<a href="{{ .URL }}?notif"><h3><i class="glyphicon glyphicon-bell profile-usertitle-name" ></i>{{ .Content }}</h3></a>
<a href="{{ .URL }}?notif"><h3>{{ .Content }}</h3></a>
</div>
</td></tr>
{{end}}
</table>
{{else}}
<h2>No notifications</h2>
{{end}}
{{end}}
{{end}}

Voir le fichier

@ -4,7 +4,7 @@
{{define "rsstitle" }}{{ .UserProfile.Username }}{{end}}
{{define "content"}}
{{ range (index $.FormInfos "infos")}}
<div class="alert alert-info"><a class="panel-close close" data-dismiss="alert">×</a><i class="glyphicon glyphicon-info-sign"></i> {{ . }}</div>
<p class="success-text">{{ . }}</p>
{{end}}
{{with .UserProfile}}
<div class="profile-main">

Voir le fichier

@ -107,6 +107,10 @@
"id":"signup_verification_noemail",
"translation": "Registration was successful, you may now use your account."
},
{
"id":"email_placeholder",
"translation":"Can be left blank."
},
{
"id":"settings",
"translation": "Account Settings"