diff options
author | Unknwon <u@gogs.io> | 2015-09-17 01:54:12 -0400 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-09-17 01:54:12 -0400 |
commit | 373731f5e85566eb385e92f604e81232e3d6ba1a (patch) | |
tree | 83311e464adf24f3006030e27473086e43a11240 /templates/user | |
parent | e75fd2f783a413ae612e3e6110c912b3ecf9555d (diff) | |
download | gitea-373731f5e85566eb385e92f604e81232e3d6ba1a.tar.gz gitea-373731f5e85566eb385e92f604e81232e3d6ba1a.zip |
user gomail and new activate account email tpl
- #1496: fallback plain text
- #1002: add date header
- #913: fix encoding of header
Diffstat (limited to 'templates/user')
-rw-r--r-- | templates/user/auth/activate.tmpl | 50 |
1 files changed, 28 insertions, 22 deletions
diff --git a/templates/user/auth/activate.tmpl b/templates/user/auth/activate.tmpl index 724f6b5078..cc318fe3b9 100644 --- a/templates/user/auth/activate.tmpl +++ b/templates/user/auth/activate.tmpl @@ -1,39 +1,45 @@ -{{template "ng/base/head" .}} -{{template "ng/base/header" .}} -<div id="sign-wrapper"> - <form class="form-align form panel sign-panel sign-form container panel-radius" id="sign-up-form" action="{{AppSubUrl}}/user/activate" method="post"> +{{template "base/head" .}} +<div class="user activate"> + <div class="ui middle very relaxed page grid"> + <div class="column"> + <form class="ui form" action="{{AppSubUrl}}/user/activate" method="post"> {{.CsrfTokenHtml}} - <div class="panel-header"> - <h2>{{.i18n.Tr "auth.active_your_account"}}</h2> - </div> - <div class="panel-content"> - {{if .IsActivatePage}} + <h2 class="ui top attached header"> + {{.i18n.Tr "auth.active_your_account"}} + </h2> + <div class="ui attached segment"> + {{if .IsActivatePage}} {{if .ServiceNotEnabled}} <p>{{.i18n.Tr "auth.disable_register_mail"}}</p> {{else if .ResendLimited}} <p>{{.i18n.Tr "auth.resent_limit_prompt"}}</p> {{else}} <p>{{.i18n.Tr "auth.confirmation_mail_sent_prompt" .SignedUser.Email .Hours | Str2html}}</p> - <hr/> - <label></label> - <a class="btn btn-green btn-large btn-link btn-radius" href="http://{{Mail2Domain .SignedUser.Email}}">{{.i18n.Tr "auth.sign_in_email"}}</a> + <div class="ui divider"></div> + <div class="text right"> + <a class="ui green button" href="http://{{Mail2Domain .SignedUser.Email}}">{{.i18n.Tr "auth.sign_in_to_account"}}</a> + </div> {{end}} - {{else}} + {{else}} {{if .IsSendRegisterMail}} <p>{{.i18n.Tr "auth.confirmation_mail_sent_prompt" .Email .Hours | Str2html}}</p> - <hr/> - <label></label> - <a class="btn btn-green btn-large btn-link btn-radius" href="http://{{Mail2Domain .Email}}">{{.i18n.Tr "auth.sign_in_to_account"}}</a> + <div class="ui divider"></div> + <div class="text right"> + <a class="ui green button" href="http://{{Mail2Domain .Email}}">{{.i18n.Tr "auth.sign_in_to_account"}}</a> + </div> {{else if .IsActivateFailed}} <p>{{.i18n.Tr "auth.invalid_code"}}</p> {{else}} <p>{{.i18n.Tr "auth.has_unconfirmed_mail" .SignedUser.Name .SignedUser.Email | Str2html}}</p> - <hr/> - <label></label> - <button class="btn btn-blue btn-large btn-radius">{{.i18n.Tr "auth.resend_mail"}}</button> + <div class="ui divider"></div> + <div class="text right"> + <button class="ui blue button" href="http://{{Mail2Domain .SignedUser.Email}}">{{.i18n.Tr "auth.resend_mail"}}</button> + </div> {{end}} - {{end}} + {{end}} </div> - </form> + </form> + </div> + </div> </div> -{{template "ng/base/footer" .}} +{{template "base/footer" .}} |