feat: 展示任务PDD店铺和客户端名称 (#158)

This commit is contained in:
chengma
2026-08-11 15:49:01 +08:00
parent 3e52e188f5
commit df1287f8eb
7 changed files with 175 additions and 28 deletions
+8 -1
View File
@@ -189,8 +189,15 @@ func TestTaskPage_创建人筛选列表列和详情字段齐全(t *testing.T) {
files := map[string][]string{
"templates/task/list.html": {
`{{if .ShowCreator}}`, `name="creator"`, `{{.CreatorText}}`, `>筛选</button>`,
`<th>PDD 店铺</th>`, `title="{{.PddShopText}}"`,
`title="{{.ClientTitle}}"`, `{{if .ShowCreator}}10{{else}}9{{end}}`,
},
"templates/task/detail_modal.html": {
`<dt>创建人</dt><dd>{{.CreatorText}}</dd>`,
`<dt>客户端名称</dt><dd>{{.ClientText}}</dd>`,
`<dt>客户端 ID</dt><dd>{{.ClientIDText}}</dd>`,
`<dt>PDD 店铺</dt><dd>{{.PddShopText}}</dd>`,
},
"templates/task/detail_modal.html": {`<dt>创建人</dt><dd>{{.CreatorText}}</dd>`},
}
for path, wants := range files {
content, err := os.ReadFile(path)