1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-24 15:49:44 +02:00

More Trello copy tweaks

This commit is contained in:
EnesAlili 2016-09-12 21:09:40 +01:00
parent 67e80dfdbf
commit 690a29c930
3 changed files with 17 additions and 5 deletions

View file

@ -104,6 +104,15 @@
display: inline-block;
border-radius: 4px;
margin-right: 20px;
span {
display: table;
font-size: 14px;
line-height: 10px;
opacity: 0.5;
padding-bottom: 10px;
margin-bottom: 8px;
}
}
.board-summary {

View file

@ -23,21 +23,24 @@ const boardsTemplate = `
<tr>
<td>
<a href="{{ $b.Board.URL }}">
<span class="trello-board" style="background-color: {{$b.Board.Prefs.BackgroundColor}}">{{$b.Board.Name}}</span>
<div class="trello-board" style="background-color: {{$b.Board.Prefs.BackgroundColor}}">
{{$b.Board.Name}}
<span>{{$b.Board.OrgName}}</span>
</div>
</a>
</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}}),
{{end}}
{{if gt (len $b.Archived) 0}}
archive card ({{len $b.Archived}}).
archive card ({{len $b.Archived}})
{{else}}
no cards archived.
no cards archived
{{end}}
<br>
</span>

View file

@ -12,7 +12,7 @@
package trello
const renderTemplate = `<p>Activity since {{.Since}} for boards:
{{range $idx, $brd := .Boards}}{{if gt $idx 0}}, {{end}}<a class="link" href="{{$brd.Board.URL}}">{{$brd.Board.OrgName}} / {{$brd.Board.Name}}</a>{{end}}.</p>` +
{{range $idx, $brd := .Boards}}{{if gt $idx 0}}, {{end}}<a class="link" href="{{$brd.Board.URL}}">{{$brd.Board.OrgName}}/{{$brd.Board.Name}}</a>{{end}}.</p>` +
labelsTemplate +
boardsTemplate +
graphsTemplate +