mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-08-05 01:50:47 +02:00
feat(about): add many rule files route and menu item
This commit is contained in:
@@ -17,8 +17,8 @@
|
||||
});
|
||||
|
||||
menuService.addSubMenuItem('topbar', 'about', {
|
||||
title: 'MENU_ABOUT_RULES',
|
||||
state: 'about.rules',
|
||||
title: 'MENU_ABOUT_MANUAL',
|
||||
state: 'about.manual.userRules',
|
||||
position: 1
|
||||
});
|
||||
// 2 is item of Users Ranking configure in module ranking
|
||||
|
||||
@@ -14,12 +14,65 @@
|
||||
url: '/about',
|
||||
template: '<ui-view/>'
|
||||
})
|
||||
.state('about.rules', {
|
||||
url: '/rules',
|
||||
templateUrl: '/modules/about/client/views/rules.client.view.html',
|
||||
.state('about.manual', {
|
||||
abstract: true,
|
||||
url: '/manual',
|
||||
templateUrl: '/modules/about/client/views/manual.client.view.html'
|
||||
})
|
||||
.state('about.manual.userRules', {
|
||||
url: '/usrRules',
|
||||
templateUrl: '/modules/about/client/views/userRules.client.view.html',
|
||||
data: {
|
||||
roles: ['user', 'oper', 'admin'],
|
||||
pageTitle: 'PAGETITLE.RULES'
|
||||
pageTitle: 'PAGETITLE.USER_RULES'
|
||||
}
|
||||
})
|
||||
.state('about.manual.userLevelRules', {
|
||||
url: '/userLevelRules',
|
||||
templateUrl: '/modules/about/client/views/userLevelRules.client.view.html',
|
||||
data: {
|
||||
roles: ['user', 'oper', 'admin'],
|
||||
pageTitle: 'PAGETITLE.USER_LEVEL_RULES'
|
||||
}
|
||||
})
|
||||
.state('about.manual.scoreRules', {
|
||||
url: '/scoreRules',
|
||||
templateUrl: '/modules/about/client/views/scoreRules.client.view.html',
|
||||
data: {
|
||||
roles: ['user', 'oper', 'admin'],
|
||||
pageTitle: 'PAGETITLE.SCORE_RULES'
|
||||
}
|
||||
})
|
||||
.state('about.manual.uploaderRules', {
|
||||
url: '/uploaderRules',
|
||||
templateUrl: '/modules/about/client/views/uploaderRules.client.view.html',
|
||||
data: {
|
||||
roles: ['user', 'oper', 'admin'],
|
||||
pageTitle: 'PAGETITLE.UPLOADER_RULES'
|
||||
}
|
||||
})
|
||||
.state('about.manual.invitationsRules', {
|
||||
url: '/invitationsRules',
|
||||
templateUrl: '/modules/about/client/views/invitationsRules.client.view.html',
|
||||
data: {
|
||||
roles: ['user', 'oper', 'admin'],
|
||||
pageTitle: 'PAGETITLE.INVITATIONS_RULES'
|
||||
}
|
||||
})
|
||||
.state('about.manual.hnrRules', {
|
||||
url: '/hnrRules',
|
||||
templateUrl: '/modules/about/client/views/hnrRules.client.view.html',
|
||||
data: {
|
||||
roles: ['user', 'oper', 'admin'],
|
||||
pageTitle: 'PAGETITLE.HNR_RULES'
|
||||
}
|
||||
})
|
||||
.state('about.manual.vipRules', {
|
||||
url: '/vipRules',
|
||||
templateUrl: '/modules/about/client/views/vipRules.client.view.html',
|
||||
data: {
|
||||
roles: ['user', 'oper', 'admin'],
|
||||
pageTitle: 'PAGETITLE.VIP_DETAIL_RULES'
|
||||
}
|
||||
})
|
||||
.state('about.black', {
|
||||
|
||||
25
modules/about/client/views/manual.client.view.html
Normal file
25
modules/about/client/views/manual.client.view.html
Normal file
@@ -0,0 +1,25 @@
|
||||
<section class="container padding-top-30">
|
||||
<div class="row">
|
||||
<div class="col-sm-4 col-md-3">
|
||||
<div class="list-group panel-menu-list">
|
||||
<a ui-sref="about.manual.userRules" class="list-group-item"
|
||||
ui-sref-active="active">{{'ABOUT.MENU_ABOUT_MANUAL_USER_RULES' | translate}}</a>
|
||||
<a ui-sref="about.manual.userLevelRules" class="list-group-item"
|
||||
ui-sref-active="active">{{'ABOUT.MENU_ABOUT_MANUAL_USER_LEVEL_RULES' | translate}}</a>
|
||||
<a ui-sref="about.manual.scoreRules" class="list-group-item"
|
||||
ui-sref-active="active">{{'ABOUT.MENU_ABOUT_MANUAL_SCORE_RULES' | translate}}</a>
|
||||
<a ui-sref="about.manual.uploaderRules" class="list-group-item"
|
||||
ui-sref-active="active">{{'ABOUT.MENU_ABOUT_MANUAL_UPLOADER_RULES' | translate}}</a>
|
||||
<a ui-sref="about.manual.invitationsRules" class="list-group-item"
|
||||
ui-sref-active="active">{{'ABOUT.MENU_ABOUT_MANUAL_INVITATIONS_RULES' | translate}}</a>
|
||||
<a ui-sref="about.manual.hnrRules" class="list-group-item"
|
||||
ui-sref-active="active">{{'ABOUT.MENU_ABOUT_MANUAL_HNR_RULES' | translate}}</a>
|
||||
<a ui-sref="about.manual.vipRules" class="list-group-item"
|
||||
ui-sref-active="active">{{'ABOUT.MENU_ABOUT_MANUAL_VIP_RULES' | translate}}</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-8 col-md-9">
|
||||
<div ui-view></div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@@ -1,8 +0,0 @@
|
||||
<section class="container padding-top-10" ng-controller="AboutController as vm">
|
||||
<div class="row">
|
||||
<div class="col-md-10 col-md-offset-1">
|
||||
<div marked src="'/modules/about/client/templates/rules-'+vm.lang+'.md'" compile="true">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@@ -40,7 +40,7 @@
|
||||
MENU_FORUMS: 'Forums',
|
||||
MENU_REQUESTS: 'Requests',
|
||||
MENU_ABOUT: 'About',
|
||||
MENU_ABOUT_RULES: 'User Rules',
|
||||
MENU_ABOUT_MANUAL: 'Site Manual',
|
||||
MENU_ABOUT_BLACKLIST: 'Client Black List',
|
||||
MENU_ABOUT_MAKERGROUP: 'Torrents Maker Group',
|
||||
MENU_ABOUT_OPERLIST: 'Admin/Oper List',
|
||||
@@ -195,7 +195,13 @@
|
||||
TORRENT_INFO: 'Torrent Info',
|
||||
TORRENT_SEARCH: 'Torrent Search',
|
||||
RANKING: 'Users Ranking',
|
||||
RULES: 'User Rules',
|
||||
USER_RULES: 'User Rules',
|
||||
USER_LEVEL_RULES: 'User level Rules',
|
||||
SCORE_RULES: 'Score Rules',
|
||||
UPLOADER_RULES: 'Uploader Rules',
|
||||
INVITATIONS_RULES: 'Invitations Rules',
|
||||
HNR_RULES: 'H&R Rules',
|
||||
VIP_DETAIL_RULES: 'VIP Rules',
|
||||
BLACK: 'Client Black List',
|
||||
MAKER: 'Torrents Maker Group',
|
||||
OPERLIST: 'Admin/Oper List',
|
||||
@@ -599,6 +605,14 @@
|
||||
|
||||
//about views
|
||||
ABOUT: {
|
||||
USERS_MANUAL: 'Users Manual',
|
||||
MENU_ABOUT_MANUAL_USER_RULES: 'User Detail Rules',
|
||||
MENU_ABOUT_MANUAL_USER_LEVEL_RULES: 'User Level Rules',
|
||||
MENU_ABOUT_MANUAL_SCORE_RULES: 'Score Detail Rules',
|
||||
MENU_ABOUT_MANUAL_UPLOADER_RULES: 'Uploader Detail Rules',
|
||||
MENU_ABOUT_MANUAL_INVITATIONS_RULES: 'Invitations Detail Rules',
|
||||
MENU_ABOUT_MANUAL_HNR_RULES: 'H&R Detail Rules',
|
||||
MENU_ABOUT_MANUAL_VIP_RULES: 'VIP Detail Rules',
|
||||
CLIENT_BLACK_LIST: 'Client Black List',
|
||||
MAKER_GROUP: 'Torrents Maker Group',
|
||||
BLACK_TOOLTIP: '<h4>Note:</h4>All the clients in the list was forbidden by server and can not announce or get any torrent data, For more help, please contact our <strong><a href="mailto:{{admin}}">administrator</a></strong>.',
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
MENU_FORUMS: '论坛',
|
||||
MENU_REQUESTS: '求种',
|
||||
MENU_ABOUT: '关于',
|
||||
MENU_ABOUT_RULES: '站内用户规则',
|
||||
MENU_ABOUT_MANUAL: '站点手册',
|
||||
MENU_ABOUT_BLACKLIST: '禁止客户端列表',
|
||||
MENU_ABOUT_MAKERGROUP: '资源压制小组',
|
||||
MENU_ABOUT_OPERLIST: 'Admin/Oper 列表',
|
||||
@@ -195,7 +195,13 @@
|
||||
TORRENT_INFO: '种子信息',
|
||||
TORRENT_SEARCH: '种子搜索',
|
||||
RANKING: '用户排行榜',
|
||||
RULES: '用户规则',
|
||||
USER_RULES: '用户守则',
|
||||
USER_LEVEL_RULES: '用户等级细节',
|
||||
SCORE_RULES: '积分细则',
|
||||
UPLOADER_RULES: '发种细则',
|
||||
INVITATIONS_RULES: '邀请函细则',
|
||||
HNR_RULES: 'H&R 细则',
|
||||
VIP_DETAIL_RULES: 'VIP 细则',
|
||||
BLACK: '禁止客户端列表',
|
||||
MAKER: '资源压制小组',
|
||||
OPERLIST: 'Admin/Oper 列表',
|
||||
@@ -599,6 +605,14 @@
|
||||
|
||||
//about views
|
||||
ABOUT: {
|
||||
USERS_MANUAL: '站内用户手册',
|
||||
MENU_ABOUT_MANUAL_USER_RULES: '用户守则',
|
||||
MENU_ABOUT_MANUAL_USER_LEVEL_RULES: '用户等级细则',
|
||||
MENU_ABOUT_MANUAL_SCORE_RULES: '积分细则',
|
||||
MENU_ABOUT_MANUAL_UPLOADER_RULES: '发种细则',
|
||||
MENU_ABOUT_MANUAL_INVITATIONS_RULES: '邀请函细则',
|
||||
MENU_ABOUT_MANUAL_HNR_RULES: 'H&R 细则',
|
||||
MENU_ABOUT_MANUAL_VIP_RULES: 'VIP 细则',
|
||||
CLIENT_BLACK_LIST: '禁止客户端列表',
|
||||
MAKER_GROUP: '资源压制小组',
|
||||
BLACK_TOOLTIP: '<h4>提示:</h4>下面列出的所有客户端都已被服务器禁止,使用它们将不能下载到任何数据, 如需其它帮助,请与我们的 <strong><a href="mailto:{{admin}}">系统管理员</a> </strong>联系.',
|
||||
|
||||
Reference in New Issue
Block a user