feat(about): add torrent sales rules

This commit is contained in:
OldHawk
2018-03-19 15:56:14 +08:00
parent bcfec96dbb
commit ee5a1e2800
3 changed files with 18 additions and 0 deletions

View 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.

View File

@@ -0,0 +1,7 @@
## 这是 `TORRENT SALES RULES` 发种规则文档
这些规则内容是从模板文件读取, 它完全支持 `markdown` 语法风格.
如果你想修改规则内容, 请编辑 .md 文件, 它存放于 `modules/about/client/templates/sales-rules-xx.md`.
`xx` 代表语言标识符, 如 `zh`,`en` 等.

View 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>