mirror of
https://github.com/documize/community.git
synced 2025-07-23 23:29:42 +02:00
Added team name to board
This commit is contained in:
parent
e57ecb4b16
commit
ca2611c50b
3 changed files with 97 additions and 73 deletions
|
@ -1,38 +1,55 @@
|
||||||
.section-trello-editor {
|
.section-trello-editor {
|
||||||
|
.section-trello-board {
|
||||||
|
width: 100%;
|
||||||
|
padding: 10px;
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: auto
|
||||||
|
}
|
||||||
|
|
||||||
}
|
.section-trello-board-title {
|
||||||
|
font-weight: bold;
|
||||||
|
color: #fff;
|
||||||
|
font-size: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.section-trello-list {
|
||||||
|
background-color: #e2e4e6;
|
||||||
|
padding: 10px;
|
||||||
|
border-radius: 3px;
|
||||||
|
margin: 10px 10px 0 0;
|
||||||
|
max-width: 300px;
|
||||||
|
}
|
||||||
|
|
||||||
.section-trello-board {
|
.section-trello-list-title {
|
||||||
width: 100%;
|
font-weight: bold;
|
||||||
padding: 10px;
|
color: #4c4c4c;
|
||||||
white-space: nowrap;
|
font-size: 14px;
|
||||||
overflow: auto
|
margin: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.section-trello-board-title {
|
.section-trello-list-checkbox {
|
||||||
font-weight: bold;
|
vertical-align: text-bottom;
|
||||||
color: #fff;
|
}
|
||||||
font-size: 16px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.section-trello-list {
|
.trello-list {
|
||||||
background-color: #e2e4e6;
|
margin-bottom: 10px;
|
||||||
padding: 10px;
|
|
||||||
border-radius: 3px;
|
|
||||||
margin: 10px 10px 0 0;
|
|
||||||
max-width: 300px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.section-trello-list-title {
|
i {
|
||||||
font-weight: bold;
|
vertical-align: middle;
|
||||||
color: #4c4c4c;
|
}
|
||||||
font-size: 14px;
|
|
||||||
margin: 5px;
|
.trello-label {
|
||||||
}
|
font-size: 11px;
|
||||||
|
color: #fff;
|
||||||
|
padding: 0 8px;
|
||||||
|
margin-right: 5px;
|
||||||
|
border-radius: 2px;
|
||||||
|
box-shadow: inset 0 -1px 0 rgba(0,0,0,.12);
|
||||||
|
display: inline-block;
|
||||||
|
line-height: 22px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.section-trello-list-checkbox {
|
|
||||||
vertical-align: text-bottom;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.section-trello-render {
|
.section-trello-render {
|
||||||
|
|
|
@ -2,6 +2,8 @@
|
||||||
tip="Trello is the visual way to manage your projects and organize anything (https://trello.com)"
|
tip="Trello is the visual way to manage your projects and organize anything (https://trello.com)"
|
||||||
isDirty=(action 'isDirty') onCancel=(action 'onCancel') onAction=(action 'onAction')}}
|
isDirty=(action 'isDirty') onCancel=(action 'onCancel') onAction=(action 'onAction')}}
|
||||||
|
|
||||||
|
<div class="section-trello-editor">
|
||||||
|
|
||||||
{{#if authenticated}}
|
{{#if authenticated}}
|
||||||
{{#if noBoards}}
|
{{#if noBoards}}
|
||||||
<div class="input-control">
|
<div class="input-control">
|
||||||
|
@ -9,7 +11,7 @@
|
||||||
</div>
|
</div>
|
||||||
{{else}}
|
{{else}}
|
||||||
|
|
||||||
<div class="pull-left width-50">
|
<div class="pull-left width-45">
|
||||||
<div class="input-form">
|
<div class="input-form">
|
||||||
<div class="heading">
|
<div class="heading">
|
||||||
<div class="title">Select Board & Lists</div>
|
<div class="title">Select Board & Lists</div>
|
||||||
|
@ -23,16 +25,16 @@
|
||||||
<div class="input-control">
|
<div class="input-control">
|
||||||
<label>Select which boards you want to see</label>
|
<label>Select which boards you want to see</label>
|
||||||
<div class="tip">All boards are selectd by default</div>
|
<div class="tip">All boards are selectd by default</div>
|
||||||
<div class="github-board">
|
<div class="trello-board">
|
||||||
{{#each config.boards as |board|}}
|
{{#each config.boards as |board|}}
|
||||||
{{#if board.id}}
|
{{#if board.id}}
|
||||||
<div class="github-list" {{action 'onBoardCheckbox' board.id}}>
|
<div class="trello-list" {{action 'onBoardCheckbox' board.id}}>
|
||||||
{{#if board.included}}
|
{{#if board.included}}
|
||||||
<i class="material-icons widget-checkbox checkbox-gray github-list-checkbox">check_box</i>
|
<i class="material-icons widget-checkbox checkbox-gray trello-list-checkbox">check_box</i>
|
||||||
{{else}}
|
{{else}}
|
||||||
<i class="material-icons widget-checkbox checkbox-gray github-list-checkbox">check_box_outline_blank</i>
|
<i class="material-icons widget-checkbox checkbox-gray trello-list-checkbox">check_box_outline_blank</i>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
<span style="background-color: {{board.prefs.backgroundColor}}">{{board.idOrganization}} / {{board.name}}</span>
|
<span class="trello-label" style="background-color: {{board.prefs.backgroundColor}}">{{board.orgName}} / {{board.name}}</span>
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{/each}}
|
{{/each}}
|
||||||
|
@ -41,7 +43,10 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="pull-right width-50">
|
|
||||||
|
<div class="pull-left width-10"> </div>
|
||||||
|
|
||||||
|
<div class="pull-left width-45">
|
||||||
<div class="input-form">
|
<div class="input-form">
|
||||||
<div class="input-control">
|
<div class="input-control">
|
||||||
<label>Individual Board</label>
|
<label>Individual Board</label>
|
||||||
|
@ -87,5 +92,5 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
</div>
|
||||||
{{/section/base-editor}}
|
{{/section/base-editor}}
|
||||||
|
|
|
@ -12,49 +12,51 @@
|
||||||
package trello
|
package trello
|
||||||
|
|
||||||
const archiveTemplate = `
|
const archiveTemplate = `
|
||||||
<div class="section-trello-render">
|
{{if false}}
|
||||||
|
|
||||||
{{if gt (len .Boards) 0}}
|
|
||||||
<div class="heading">Deleted and Archived Cards</div>
|
|
||||||
<p>Changes since {{.Since}}.</p>
|
|
||||||
<div class="section-trello-render">
|
<div class="section-trello-render">
|
||||||
<table class="trello-table" class="width-100">
|
|
||||||
<tbody class="trello">
|
{{if gt (len .Boards) 0}}
|
||||||
{{range $b := .Boards}}
|
<div class="heading">Deleted and Archived Cards</div>
|
||||||
<tr>
|
<p>Changes since {{.Since}}.</p>
|
||||||
<td>
|
<div class="section-trello-render">
|
||||||
<a href="{{ $b.Board.URL }}">
|
<table class="trello-table" class="width-100">
|
||||||
<span class="trello-board" style="background-color: {{$b.Board.Prefs.BackgroundColor}}">{{$b.Board.Name}}</span>
|
<tbody class="trello">
|
||||||
</a>
|
{{range $b := .Boards}}
|
||||||
</td>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
{{range $act := $b.Actions}}
|
<a href="{{ $b.Board.URL }}">
|
||||||
{{if eq $act.Type "deleteCard" }}
|
<span class="trello-board" style="background-color: {{$b.Board.Prefs.BackgroundColor}}">{{$b.Board.Name}}</span>
|
||||||
Deleted:
|
</a>
|
||||||
{{$act.Data.List.Name}}
|
</td>
|
||||||
{{if ne $act.Data.Card.Name ""}}
|
<td>
|
||||||
: {{$act.Data.Card.Name}}
|
{{range $act := $b.Actions}}
|
||||||
{{if ne $act.Data.Text ""}}
|
{{if eq $act.Type "deleteCard" }}
|
||||||
- {{$act.Data.Text}}
|
Deleted:
|
||||||
|
{{$act.Data.List.Name}}
|
||||||
|
{{if ne $act.Data.Card.Name ""}}
|
||||||
|
: {{$act.Data.Card.Name}}
|
||||||
|
{{if ne $act.Data.Text ""}}
|
||||||
|
- {{$act.Data.Text}}
|
||||||
|
{{end}}
|
||||||
{{end}}
|
{{end}}
|
||||||
|
<br>
|
||||||
|
{{end}}
|
||||||
|
{{end}}
|
||||||
|
{{range $arch := $b.Archived}}
|
||||||
|
Archived:
|
||||||
|
{{$arch.Name}}
|
||||||
|
{{if ne $arch.Desc ""}}
|
||||||
|
- {{$arch.Desc}}
|
||||||
{{end}}
|
{{end}}
|
||||||
<br>
|
<br>
|
||||||
{{end}}
|
{{end}}
|
||||||
{{end}}
|
</td>
|
||||||
{{range $arch := $b.Archived}}
|
</tr>
|
||||||
Archived:
|
{{end}}
|
||||||
{{$arch.Name}}
|
</tbody>
|
||||||
{{if ne $arch.Desc ""}}
|
</table>
|
||||||
- {{$arch.Desc}}
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
<br>
|
|
||||||
{{end}}
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
{{end}}
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
</div>
|
|
||||||
`
|
`
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue