mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-07-10 15:13:04 +02:00
feat(invitations): show tooltip when invite function is closed
This commit is contained in:
2
config/env/torrents.js
vendored
2
config/env/torrents.js
vendored
@@ -19,7 +19,7 @@ module.exports = {
|
||||
allow_social_sign: true
|
||||
},
|
||||
invite: {
|
||||
open_invite: true,
|
||||
open_invite: false,
|
||||
score_exchange: 10000,
|
||||
expires: 60 * 60 * 1000 * 24
|
||||
},
|
||||
|
||||
@@ -426,6 +426,8 @@
|
||||
EXCHANGE_INVITATION_CONFIRM_BODY_TEXT: 'Are you sure want to exchange an invitation with {{score}} scores?',
|
||||
EXCHANGE_INVITATION_SUCCESSFULLY: 'Exchange invitation successfully',
|
||||
EXCHANGE_INVITATION_ERROR: 'Exchange invitation failed',
|
||||
INVITE_CLOSED: 'The invitation function is closed and you cannot exchange an invitations ...',
|
||||
NOTE_CAPTION: 'Note!',
|
||||
|
||||
//user message box
|
||||
MESSAGES_INBOX: 'Messages Inbox',
|
||||
|
||||
@@ -426,6 +426,8 @@
|
||||
EXCHANGE_INVITATION_CONFIRM_BODY_TEXT: '您确定要花 {{score}} 积分来兑换一个限时邀请么?',
|
||||
EXCHANGE_INVITATION_SUCCESSFULLY: '限时邀请兑换成功',
|
||||
EXCHANGE_INVITATION_ERROR: '限时邀请兑换失败',
|
||||
INVITE_CLOSED: '邀请功能已关闭, 现在不能使用积分兑换邀请 ...',
|
||||
NOTE_CAPTION: '请注意!',
|
||||
|
||||
//user message box
|
||||
MESSAGES_INBOX: '消息收件箱',
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row margin-top-30">
|
||||
<div class="row margin-top-30" ng-show="vm.inviteConfig.open_invite">
|
||||
<div class="col-sm-8 col-sm-offset-2 text-center">
|
||||
<button class="btn btn-default" ng-disabled="vm.user.score < vm.inviteConfig.score_exchange"
|
||||
translate="EXCHANGE_INVITATION" translate-values='{ score: vm.inviteConfig.score_exchange}'
|
||||
@@ -32,6 +32,14 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row margin-top-30" ng-hide="vm.inviteConfig.open_invite">
|
||||
<div class="col-sm-8 col-sm-offset-2 text-center">
|
||||
<div class="alert alert-warning" role="alert">
|
||||
<strong>{{ 'NOTE_CAPTION' | translate }}</strong> {{ 'INVITE_CLOSED' | translate }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row margin-top-30 padding-top-30">
|
||||
<div class="col-sm-8 col-sm-offset-2">
|
||||
<legend class="small-legend" translate="SCORE.HOW_TO_GET_LEVEL"></legend>
|
||||
|
||||
Reference in New Issue
Block a user