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 {
|
.heading {
|
||||||
padding: 20px;
|
padding: 10px 20px;
|
||||||
color: white;
|
color: white!important;
|
||||||
border-radius: 5px;
|
|
||||||
|
|
||||||
a {
|
a {
|
||||||
color: white!important;
|
color: white!important;
|
||||||
|
@ -70,6 +69,7 @@
|
||||||
h3 {
|
h3 {
|
||||||
font-size: 22px;
|
font-size: 22px;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
font-family: "open_sanslight";
|
||||||
}
|
}
|
||||||
|
|
||||||
p {
|
p {
|
||||||
|
@ -89,6 +89,11 @@
|
||||||
border-bottom: 1px solid #e1e1e1;
|
border-bottom: 1px solid #e1e1e1;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
|
|
||||||
|
span {
|
||||||
|
color:#838d94;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.trello-single-board tbody tr td {
|
.trello-single-board tbody tr td {
|
||||||
|
@ -97,4 +102,13 @@
|
||||||
padding-bottom: 0!important;
|
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 = `
|
const tradTemplate = `
|
||||||
<div class="section-trello-render">
|
<div class="section-trello-render">
|
||||||
{{if ne .Detail.Board.ID ""}}
|
{{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>
|
<h3><a href="{{ .Detail.Board.URL }}">{{.Detail.Board.Name}} Board</a></h3>
|
||||||
<p>There are {{ .Detail.CardCount }} cards across {{ .Detail.ListCount }} lists</p>
|
<p>There are {{ .Detail.CardCount }} cards across {{ .Detail.ListCount }} lists</p>
|
||||||
</div>
|
</div>
|
||||||
|
@ -26,9 +26,8 @@ const tradTemplate = `
|
||||||
{{range $data := .Detail.Data}}
|
{{range $data := .Detail.Data}}
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="title">{{ $data.List.Name }} <span>{{len $data.Cards}}</span></th>
|
<th class="title">{{ $data.List.Name }} <span>{{len $data.Cards}} cards</span></th>
|
||||||
</tr>
|
<th></th>
|
||||||
<tr>
|
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
|
||||||
|
@ -42,9 +41,9 @@ const tradTemplate = `
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td style="text-align:right;">
|
||||||
{{range $label := $card.Labels}}
|
{{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}}
|
{{end}}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue