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

Merge remote-tracking branch 'origin/trello-improvements' into trello-improvements

This commit is contained in:
Elliott Stoneham 2016-09-08 15:08:21 +01:00
commit d1179de20c
3 changed files with 77 additions and 23 deletions

View file

@ -5,6 +5,7 @@
overflow: auto
}
.section-trello-board-title {
font-weight: bold;
color: #fff;
@ -32,6 +33,34 @@
.section-trello-render {
table.trello-table {
border:none!important;
margin-left: 0 !important;
margin-bottom: 20px !important;
}
table.trello-table td {
border:none!important;
padding: 20px 20px 0 0 !important;
}
span.trello-label {
padding: 4px 10px;
color: white;
border-radius: 3px;
text-shadow: 0 0 5px rgba(0,0,0,.2),0 0 2px #000;
}
.trello-avatar {
border-radius: 3px;
}
h6 {
font-size: 18px;
margin: 0;
}
> .trello-board {
width: 100%;
max-height: 600px;
@ -44,7 +73,7 @@
font-weight: bold;
color: #fff;
font-size: 16px;
}
}
}
> .trello-list {
@ -65,7 +94,7 @@
font-size: 14px;
margin: 0 10px 10px 0;
}
> a {
> .trello-card {
color: #4c4c4c;
@ -82,8 +111,8 @@
white-space: normal;
cursor: pointer;
vertical-align: top;
}
}
}
}
}
}
}

View file

@ -12,13 +12,24 @@
package trello
const labelsTemplate = `
<b>Labels</b><br>
{{range $l := .SharedLabels}}
<span style="background-color: {{ $l.Color }}">{{ $l.Name }}</span>
{{range $brd := $l.Boards}}
{{ $brd }},
{{end}}
<br>
{{end}}
<br>
<h3>Labels</h3>
<p>There are {{len .SharedLabels}} common labels across the boards.</p>
<div class="section-trello-render non-printable">
<table class="trello-table" class="width-100">
<tbody class="trello">
{{range $l := .SharedLabels}}
<tr>
<td class="width-15">
<span class="trello-label" style="background-color: {{ $l.Color }}">{{ $l.Name }} ({{len $l.Boards}})</span>
</td>
<td class="width-85">
{{range $brd := $l.Boards}}
{{ $brd }},
{{end}}
</td>
</tr>
{{end}}
</tbody>
</table>
</div>
`

View file

@ -12,14 +12,28 @@
package trello
const membersTemplate = `
<b>Member Stats</b><br>
{{range $m := .MemberBoardAssign}}
<img src="https://trello-avatars.s3.amazonaws.com/{{$m.AvatarHash}}/50.png">
{{$m.MemberName}} :
{{range $ac := $m.AssignCounts}}
{{$ac.BoardName}} ({{$ac.Count}}),
{{end}}
<br>
{{end}}
<br>
<h3>Member Stats</h3>
<p> There are {{len .MemberBoardAssign}} members assigned to ##9 cards across {{len .Boards}} boards.</p>
<div class="section-trello-render non-printable">
<table class="trello-table" class="width-100">
<tbody>
{{range $m := .MemberBoardAssign}}
<tr>
<td class="width-15">
<img class="trello-avatar" src="https://trello-avatars.s3.amazonaws.com/{{$m.AvatarHash}}/50.png" height="50" alt="Member Avatar">
</td>
<td class="width-85">
<h6>{{$m.MemberName}}</h6>
{{range $ac := $m.AssignCounts}}
{{$ac.BoardName}} ({{$ac.Count}}),
{{end}}
</td>
</tr>
{{end}}
</tbody>
</table>
</div>
`