mirror of
https://github.com/documize/community.git
synced 2025-07-19 13:19:43 +02:00
Trello - Ready for review
This commit is contained in:
parent
c4b0d5e9ff
commit
cbbfd8f381
2 changed files with 22 additions and 9 deletions
|
@ -59,9 +59,8 @@
|
|||
}
|
||||
|
||||
.heading {
|
||||
padding: 20px;
|
||||
color: white;
|
||||
border-radius: 5px;
|
||||
padding: 10px 20px;
|
||||
color: white!important;
|
||||
|
||||
a {
|
||||
color: white!important;
|
||||
|
@ -70,6 +69,7 @@
|
|||
h3 {
|
||||
font-size: 22px;
|
||||
margin: 0;
|
||||
font-family: "open_sanslight";
|
||||
}
|
||||
|
||||
p {
|
||||
|
@ -89,6 +89,11 @@
|
|||
border-bottom: 1px solid #e1e1e1;
|
||||
text-transform: uppercase;
|
||||
font-size: 14px;
|
||||
|
||||
span {
|
||||
color:#838d94;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.trello-single-board tbody tr td {
|
||||
|
@ -97,4 +102,13 @@
|
|||
padding-bottom: 0!important;
|
||||
}
|
||||
|
||||
.trello-label {
|
||||
color:white;
|
||||
font-size: 11px;
|
||||
padding: 4px 6px;
|
||||
border-radius: 4px;
|
||||
box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.12);
|
||||
margin-left: 10px;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue