-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconstant.go
More file actions
43 lines (40 loc) · 920 Bytes
/
constant.go
File metadata and controls
43 lines (40 loc) · 920 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
package confluence
//Confluence的备注宏,用于备注git的信息
const ConfluenceNoteMacro = `
<br/>
<br/>
<br/>
<hr/>
<ac:structured-macro ac:name="note">
<ac:parameter ac:name="icon">true</ac:parameter>
<ac:parameter ac:name="title">修改历史</ac:parameter>
<ac:rich-text-body>
<p>%s</p>
</ac:rich-text-body>
</ac:structured-macro>
`
const NewConfluenceNoteMacro = `
<br/>
<br/>
<br/>
<hr/>
<ac:structured-macro ac:name="note">
<ac:parameter ac:name="icon">true</ac:parameter>
<ac:parameter ac:name="title">修改历史</ac:parameter>
<ac:rich-text-body>
<p>
{{range .CommitList}}
<a href="{{.Href}}">{{.CommitId}}: </a>{{.CommitInfo}}<br />
{{end}}
</p>
<br />
<p>渲染自<a href="{{.GitUrl}}">{{.GitName}}</a>仓库的<a href="{{.FileUrl}}">{{.FileName}}</a>文件</p>
</ac:rich-text-body>
</ac:structured-macro>
`
var ConfluenceNoteSplite = `
<br/>
<br/>
<br/>
<hr/>
`