feat(invitations): add invitations is empty info

This commit is contained in:
OldHawk
2017-06-20 14:37:50 +08:00
parent 92fd562e86
commit b8d9708eab
4 changed files with 19 additions and 5 deletions

View File

@@ -14,6 +14,7 @@
var string_en = {
COMINGSOON: 'coming soon...',
DEMO_INFO: 'Welcome to demo site, you can sign up manual to create a normal account or sign in as demo admin with account <mark>demo</mark> and password <mark>demoAdmin12#</mark>, but don`t delete any demo data please, thanks!',
//client topbar menu
MENU_CHAT: 'Chat',
@@ -468,6 +469,8 @@
SEND_INVITE_SUCCESSFULLY: 'Send invitation successfully',
SEND_INVITE_ERROR: 'Send invitation failed',
INVALID_INVITATION_TIP: 'Invalid invitation, maybe the invitation is expired.',
INVITATION_IS_EMPTY: 'There are no invitations available!',
INVITATION_USED_IS_EMPTY: 'There are no used invitations!',
//user message box
MESSAGES_BOX: 'Messages Box',

View File

@@ -14,6 +14,7 @@
var string_zh = {
COMINGSOON: '开发中,请稍候...',
DEMO_INFO: '欢迎进入meanTorrent演示站点, 您可以手动注册一个普通帐户或者使用admin演示帐号 <mark>demo</mark> 与密码 <mark>demoAdmin12#</mark>登录, 但请不要删除我们的演示数据, 谢谢!',
//client topbar menu
MENU_CHAT: '聊天室',
@@ -468,6 +469,8 @@
SEND_INVITE_SUCCESSFULLY: '发送邀请成功',
SEND_INVITE_ERROR: '发送邀请失败',
INVALID_INVITATION_TIP: '无效的邀请, 该邀请可能已过期.',
INVITATION_IS_EMPTY: '没有可用的邀请函!',
INVITATION_USED_IS_EMPTY: '没有发送过的邀请!',
//user message box
MESSAGES_BOX: '站内消息',

View File

@@ -8,7 +8,7 @@
</div>
</div>
<div class="row" ng-hide="vm.my_invitations.length<=0">
<div class="row">
<div class="col-sm-10 col-sm-offset-1">
<div class="panel panel-default">
<div class="panel-heading text-center mt-title">
@@ -21,7 +21,11 @@
</p>
</div>
<div class="table-responsive">
<div class="table-responsive margin-bottom-50 padding-top-40 padding-bottom-50 text-center" ng-if="vm.my_invitations.length<=0">
<h4>{{ 'INVITATION_IS_EMPTY' | translate }}</h4>
</div>
<div class="table-responsive" ng-if="vm.my_invitations.length>0">
<table class="table table-hover table-valign-middle">
<thead>
<tr>
@@ -58,7 +62,7 @@
</div>
</div>
<div class="row margin-top-10" ng-hide="vm.used_invitations.length<=0">
<div class="row margin-top-10">
<div class="col-sm-10 col-sm-offset-1">
<div class="panel panel-default">
<div class="panel-heading text-center mt-title">
@@ -71,7 +75,11 @@
</p>
</div>
<div class="table-responsive">
<div class="table-responsive margin-bottom-50 padding-top-40 padding-bottom-50 text-center" ng-if="vm.my_invitations.length<=0">
<h4>{{ 'INVITATION_USED_IS_EMPTY' | translate }}</h4>
</div>
<div class="table-responsive" ng-if="vm.used_invitations.length>0">
<table class="table table-hover table-valign-middle">
<thead>
<tr>

View File

@@ -30,7 +30,7 @@
</div>
<div class="table-responsive margin-top-50 margin-bottom-50 padding-top-40 padding-bottom-50 text-center" ng-if="!vm.pagedItems.length">
<h3>{{ 'MESSAGES_IS_EMPTY' | translate }}</h3>
<h4>{{ 'MESSAGES_IS_EMPTY' | translate }}</h4>
</div>
<div class="table-responsive" ng-if="vm.pagedItems.length">
<table class="table table-hover tb-v-middle">