mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-01-20 14:22:25 +01:00
feat(about): add torrent sales rules
This commit is contained in:
7
modules/about/client/templates/sales-rules-en.md
Normal file
7
modules/about/client/templates/sales-rules-en.md
Normal file
@@ -0,0 +1,7 @@
|
||||
## This is the `TORRENT SALES RULES` of %(appConfig.name)s
|
||||
|
||||
The rules content is read from template file, it is support `markdown` style.
|
||||
|
||||
If you want to change these rules, please modify the .md file at `modules/about/client/templates/sales-rules-xx.md`.
|
||||
|
||||
The `xx` is the language flag, like `zh`,`en` etc.
|
||||
7
modules/about/client/templates/sales-rules-zh.md
Normal file
7
modules/about/client/templates/sales-rules-zh.md
Normal file
@@ -0,0 +1,7 @@
|
||||
## 这是 `TORRENT SALES RULES` 发种规则文档
|
||||
|
||||
这些规则内容是从模板文件读取, 它完全支持 `markdown` 语法风格.
|
||||
|
||||
如果你想修改规则内容, 请编辑 .md 文件, 它存放于 `modules/about/client/templates/sales-rules-xx.md`.
|
||||
|
||||
`xx` 代表语言标识符, 如 `zh`,`en` 等.
|
||||
4
modules/about/client/views/salesRules.client.view.html
Normal file
4
modules/about/client/views/salesRules.client.view.html
Normal file
@@ -0,0 +1,4 @@
|
||||
<section ng-controller="AboutController as vm"
|
||||
ng-init="vm.getTemplateFileContent('/modules/about/client/templates/sales-rules-'+vm.lang+'.md')">
|
||||
<span ng-bind-html="vm.getTemplateMarkedContent()"></span>
|
||||
</section>
|
||||
Reference in New Issue
Block a user