|
|
|
@@ -104,41 +104,35 @@ |
|
|
|
</form> |
|
|
|
</div> |
|
|
|
<h4 class="ui top attached header"> |
|
|
|
微信绑定<!-- {{.i18n.Tr "settings.avatar"}} --> |
|
|
|
{{$.i18n.Tr "settings.bind_weChat"}} |
|
|
|
</h4> |
|
|
|
{{if not .SignedUser.IsBindWechat}} |
|
|
|
<div class="ui attached segment"> |
|
|
|
<a href="/authentication/wechat/bind?redirect_to=/user/settings" class="ui green button">绑定微信</a> |
|
|
|
<a href="/authentication/wechat/bind?redirect_to=/user/settings" class="ui green button">{{$.i18n.Tr "settings.bind_weChat"}}</a> |
|
|
|
</div> |
|
|
|
{{else}} |
|
|
|
<div class="ui attached segment"> |
|
|
|
<table class="ui celled striped table provider titleless"> |
|
|
|
<thead> |
|
|
|
<th class="center aligned"> |
|
|
|
绑定账号信息 |
|
|
|
{{$.i18n.Tr "settings.bind_account_information"}} |
|
|
|
</th> |
|
|
|
<!-- <th class="center aligned"> |
|
|
|
详情 |
|
|
|
</th> --> |
|
|
|
<th class="center aligned"> |
|
|
|
绑定时间 |
|
|
|
{{$.i18n.Tr "settings.bind_time"}} |
|
|
|
</th> |
|
|
|
<th class="center aligned"> |
|
|
|
操作 |
|
|
|
{{$.i18n.Tr "repo.cloudbrain_operate"}} |
|
|
|
</th> |
|
|
|
</thead> |
|
|
|
<tbody> |
|
|
|
<td class="center aligned"> |
|
|
|
微信 |
|
|
|
{{$.i18n.Tr "settings.wechat"}} |
|
|
|
</td> |
|
|
|
<!-- <td class="center aligned"> |
|
|
|
<img class="ui avatar image" width="24" height="24" src="{{.SignedUser.RelAvatarLink}}">{{.SignedUser.Name}} |
|
|
|
</td> --> |
|
|
|
<td class="center aligned"> |
|
|
|
{{TimeSinceUnix1 .SignedUser.WechatBindUnix}} |
|
|
|
<td class="center aligned"> |
|
|
|
<div> |
|
|
|
<a class="ui inverted orange button " onclick="showcreate(this)" href="javascript: void(0)">解除绑定</a> |
|
|
|
<a class="ui inverted orange button " onclick="showcreate(this)" href="javascript: void(0)">{{$.i18n.Tr "settings.unbind"}}</a> |
|
|
|
</div> |
|
|
|
</td> |
|
|
|
</tbody> |
|
|
|
@@ -147,13 +141,13 @@ |
|
|
|
{{end}} |
|
|
|
</div> |
|
|
|
<div class="ui mini modal wx-unbind"> |
|
|
|
<div class="header">确定要解绑微信?</div> |
|
|
|
<div class="header">{{$.i18n.Tr "settings.unbind_wechat"}}</div> |
|
|
|
<div class="content"> |
|
|
|
<p>解绑后将无法使用云脑计算资源</p> |
|
|
|
<p>{{$.i18n.Tr "settings.unbind_computing"}}</p> |
|
|
|
</div> |
|
|
|
<div class="actions"> |
|
|
|
<div class="ui blank cancel button">取消</div> |
|
|
|
<div class="ui green approve button">确定</div> |
|
|
|
<div class="ui blank cancel button">{{$.i18n.Tr "cancel"}}</div> |
|
|
|
<div class="ui green approve button">{{$.i18n.Tr "repo.confirm_choice"}}</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|