mirror of
https://github.com/documize/community.git
synced 2025-07-28 01:29:43 +02:00
More Trello copy tweaks
This commit is contained in:
parent
67e80dfdbf
commit
690a29c930
3 changed files with 17 additions and 5 deletions
|
@ -104,6 +104,15 @@
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
margin-right: 20px;
|
margin-right: 20px;
|
||||||
|
|
||||||
|
span {
|
||||||
|
display: table;
|
||||||
|
font-size: 14px;
|
||||||
|
line-height: 10px;
|
||||||
|
opacity: 0.5;
|
||||||
|
padding-bottom: 10px;
|
||||||
|
margin-bottom: 8px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.board-summary {
|
.board-summary {
|
||||||
|
|
|
@ -23,21 +23,24 @@ const boardsTemplate = `
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<a href="{{ $b.Board.URL }}">
|
<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>
|
</a>
|
||||||
</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}}),
|
{{$act}} ({{$tot}}),
|
||||||
{{end}}
|
{{end}}
|
||||||
{{if gt (len $b.Archived) 0}}
|
{{if gt (len $b.Archived) 0}}
|
||||||
archive card ({{len $b.Archived}}).
|
archive card ({{len $b.Archived}})
|
||||||
{{else}}
|
{{else}}
|
||||||
no cards archived.
|
no cards archived
|
||||||
{{end}}
|
{{end}}
|
||||||
<br>
|
<br>
|
||||||
</span>
|
</span>
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
package trello
|
package trello
|
||||||
|
|
||||||
const renderTemplate = `<p>Activity since {{.Since}} for boards:
|
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 +
|
labelsTemplate +
|
||||||
boardsTemplate +
|
boardsTemplate +
|
||||||
graphsTemplate +
|
graphsTemplate +
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue