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

Trello - Ready for review

This commit is contained in:
EnesAlili 2016-09-28 16:03:46 +01:00
parent c4b0d5e9ff
commit cbbfd8f381
2 changed files with 22 additions and 9 deletions

View file

@ -14,7 +14,7 @@ package trello
const tradTemplate = `
<div class="section-trello-render">
{{if ne .Detail.Board.ID ""}}
<div class="heading" style="background-color: {{.Detail.Board.Prefs.BackgroundColor}}">
<div class="heading" style="background-color:{{.Detail.Board.Prefs.BackgroundColor}};">
<h3><a href="{{ .Detail.Board.URL }}">{{.Detail.Board.Name}} Board</a></h3>
<p>There are {{ .Detail.CardCount }} cards across {{ .Detail.ListCount }} lists</p>
</div>
@ -26,9 +26,8 @@ const tradTemplate = `
{{range $data := .Detail.Data}}
<thead>
<tr>
<th class="title">{{ $data.List.Name }} <span>{{len $data.Cards}}</span></th>
</tr>
<tr>
<th class="title">{{ $data.List.Name }} <span>{{len $data.Cards}} cards</span></th>
<th></th>
</tr>
</thead>
@ -42,9 +41,9 @@ const tradTemplate = `
</div>
</a>
</td>
<td>
<td style="text-align:right;">
{{range $label := $card.Labels}}
<span style="background-color:{{$label.Color}}"> {{$label.Name}} </span>
<span class="trello-label" style="background-color:{{$label.Color}}"> {{$label.Name}} </span>
{{end}}
</td>
</tr>