feat: 展示任务PDD店铺和客户端名称 (#158)
This commit is contained in:
+8
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user