diff options
author | Unknwon <joe2010xtmf@163.com> | 2014-08-09 10:29:51 -0700 |
---|---|---|
committer | Unknwon <joe2010xtmf@163.com> | 2014-08-09 10:29:51 -0700 |
commit | 9820b8e1342017edfe4f6ced9cc3a7d811449c7b (patch) | |
tree | b26331d3359623abc7ba54aa7abd5b3ee497efab /templates/user/settings | |
parent | 7c7014262bdf90880826e6e6cc802bdab300b5ae (diff) | |
download | gitea-9820b8e1342017edfe4f6ced9cc3a7d811449c7b.tar.gz gitea-9820b8e1342017edfe4f6ced9cc3a7d811449c7b.zip |
Finish new hooks list page
Diffstat (limited to 'templates/user/settings')
-rw-r--r-- | templates/user/settings/profile.tmpl | 34 | ||||
-rw-r--r-- | templates/user/settings/sshkeys.tmpl | 8 |
2 files changed, 22 insertions, 20 deletions
diff --git a/templates/user/settings/profile.tmpl b/templates/user/settings/profile.tmpl index 2d09975f4d..33e6a944d7 100644 --- a/templates/user/settings/profile.tmpl +++ b/templates/user/settings/profile.tmpl @@ -8,38 +8,40 @@ {{template "ng/base/alert" .}} <div id="setting-content"> <div id="user-profile-setting-content" class="panel panel-radius"> - <p class="panel-header"><strong>{{.i18n.Tr "settings.public_profile"}}</strong></p> + <div class="panel-header"> + <strong>{{.i18n.Tr "settings.public_profile"}}</strong> + </div> <form class="form form-align panel-body" id="user-profile-form" action="/user/settings" method="post"> {{.CsrfTokenHtml}} - <p class="text-center panel-desc">{{.i18n.Tr "settings.profile_desc"}}</p> - <p class="field"> + <div class="text-center panel-desc">{{.i18n.Tr "settings.profile_desc"}}</div> + <div class="field"> <label class="req" for="username">{{.i18n.Tr "username"}}</label> <input class="ipt ipt-large ipt-radius {{if .Err_UserName}}ipt-error{{end}}" id="username" name="uname" type="text" value="{{.SignedUser.Name}}" data-uname="{{.SignedUser.Name}}" required /> - </p> - <p class="field"> + </div> + <div class="field"> <label for="full-name">{{.i18n.Tr "settings.full_name"}}</label> <input class="ipt ipt-large ipt-radius {{if .Err_FullName}}ipt-error{{end}}" id="full-name" name="fullname" type="text" value="{{.SignedUser.FullName}}" /> - </p> - <p class="field"> + </div> + <div class="field"> <label class="req" for="email">{{.i18n.Tr "email"}}</label> <input class="ipt ipt-large ipt-radius {{if .Err_Email}}ipt-error{{end}}" id="email" name="email" type="email" value="{{.SignedUser.Email}}" required /> - </p> - <p class="field"> + </div> + <div class="field"> <label for="website">{{.i18n.Tr "settings.website"}}</label> <input class="ipt ipt-large ipt-radius {{if .Err_Website}}ipt-error{{end}}" id="website" name="website" type="url" value="{{.SignedUser.Website}}" /> - </p> - <p class="field"> + </div> + <div class="field"> <label for="location">{{.i18n.Tr "settings.location"}}</label> <input class="ipt ipt-large ipt-radius {{if .Err_Location}}ipt-error{{end}}" id="location" name="location" type="text" value="{{.SignedUser.Location}}" /> - </p> - <p class="field"> + </div> + <div class="field"> <label for="gravatar-email">Gravatar {{.i18n.Tr "email"}}</label> <input class="ipt ipt-large ipt-radius {{if .Err_Avatar}}ipt-error{{end}}" id="gravatar-email" name="avatar" type="text" value="{{.SignedUser.AvatarEmail}}" /> - </p> - <p class="field"> + </div> + <div class="field"> <span class="form-label"></span> <button class="btn btn-green btn-large btn-radius">{{.i18n.Tr "settings.update_profile"}}</button> - </p> + </div> </form> </div> </div> diff --git a/templates/user/settings/sshkeys.tmpl b/templates/user/settings/sshkeys.tmpl index 43dfb66e26..ed54cbf5b6 100644 --- a/templates/user/settings/sshkeys.tmpl +++ b/templates/user/settings/sshkeys.tmpl @@ -8,11 +8,11 @@ {{template "ng/base/alert" .}} <div id="user-ssh-setting-content"> <div id="user-ssh-panel" class="panel panel-radius"> - <p class="panel-header"> - <button class="btn btn-small btn-black btn-radius right" id="ssh-add">{{.i18n.Tr "settings.add_key"}}</button> + <div class="panel-header"> + <a class="btn btn-small btn-black btn-header btn-radius right" id="ssh-add">{{.i18n.Tr "settings.add_key"}}</a> <strong>{{.i18n.Tr "settings.manage_ssh_keys"}}</strong> - </p> - <ul class="panel-body menu menu-vertical switching-list"> + </div> + <ul class="panel-body setting-list"> <li>{{.i18n.Tr "settings.ssh_desc"}}</li> {{range .Keys}} <li class="ssh clear"> |