1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-22 22:59:43 +02:00

Updated activity translation map for Trello

This commit is contained in:
EnesAlili 2016-09-13 12:33:46 +01:00
parent 690a29c930
commit cff4b7c496
2 changed files with 18 additions and 5 deletions

View file

@ -12,6 +12,19 @@
package trello
var activityTranslation = map[string]string{
//"comment card": "comment on card", // TODO, this just to prove the ranslation method
//"update board": "", // TODO, this just to test the delete functionality
"add checklist to card": "checklist added to card",
"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",
}

View file

@ -31,14 +31,14 @@ const boardsTemplate = `
</td>
<td>
<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>
<span class="board-meta">
{{range $act, $tot := $b.ActionSummary}}
{{$act}} ({{$tot}}),
{{$tot}} {{$act}}{{if ne 1 $tot}}s{{end}},
{{end}}
{{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}}
no cards archived
{{end}}