mirror of
https://github.com/documize/community.git
synced 2025-07-23 23:29:42 +02:00
Updated activity translation map for Trello
This commit is contained in:
parent
690a29c930
commit
cff4b7c496
2 changed files with 18 additions and 5 deletions
|
@ -12,6 +12,19 @@
|
||||||
package trello
|
package trello
|
||||||
|
|
||||||
var activityTranslation = map[string]string{
|
var activityTranslation = map[string]string{
|
||||||
//"comment card": "comment on card", // TODO, this just to prove the ranslation method
|
"add checklist to card": "checklist added to card",
|
||||||
//"update board": "", // TODO, this just to test the delete functionality
|
"add member to card": "member added to card",
|
||||||
|
"comment card": "commented on card",
|
||||||
|
"create card": "created card",
|
||||||
|
"create list": "created list",
|
||||||
|
"delete card": "deleted card",
|
||||||
|
"update board": "updated board",
|
||||||
|
"add to team board": "",
|
||||||
|
"create board": "",
|
||||||
|
"update card": "updated card",
|
||||||
|
"update check item state on card": "check item updated on card",
|
||||||
|
"update list": "updated list",
|
||||||
|
"add attachment to card" : "attachment added to card",
|
||||||
|
"copy card" : "copied card",
|
||||||
|
"copy comment card" : "copied comment on card",
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,14 +31,14 @@ const boardsTemplate = `
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<div class="board-summary">
|
<div class="board-summary">
|
||||||
{{ len $b.Actions }}{{if eq 1 (len $b.Actions)}} action {{else}} actions {{end}}
|
<!-- {{ len $b.Actions }}{{if eq 1 (len $b.Actions)}} action {{else}} actions {{end}} -->
|
||||||
</div>
|
</div>
|
||||||
<span class="board-meta">
|
<span class="board-meta">
|
||||||
{{range $act, $tot := $b.ActionSummary}}
|
{{range $act, $tot := $b.ActionSummary}}
|
||||||
{{$act}} ({{$tot}}),
|
{{$tot}} {{$act}}{{if ne 1 $tot}}s{{end}},
|
||||||
{{end}}
|
{{end}}
|
||||||
{{if gt (len $b.Archived) 0}}
|
{{if gt (len $b.Archived) 0}}
|
||||||
archive card ({{len $b.Archived}})
|
{{len $b.Archived}} {{if eq 1 (len $b.Archived)}}card {{else}} cards {{end}}archived
|
||||||
{{else}}
|
{{else}}
|
||||||
no cards archived
|
no cards archived
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue