diff --git a/app/app/styles/section/trello.scss b/app/app/styles/section/trello.scss index 94906605..7f57783c 100644 --- a/app/app/styles/section/trello.scss +++ b/app/app/styles/section/trello.scss @@ -1,38 +1,55 @@ .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 { - width: 100%; - padding: 10px; - white-space: nowrap; - overflow: auto -} + .section-trello-list-title { + font-weight: bold; + color: #4c4c4c; + font-size: 14px; + margin: 5px; + } -.section-trello-board-title { - font-weight: bold; - color: #fff; - font-size: 16px; -} + .section-trello-list-checkbox { + vertical-align: text-bottom; + } -.section-trello-list { - background-color: #e2e4e6; - padding: 10px; - border-radius: 3px; - margin: 10px 10px 0 0; - max-width: 300px; -} + .trello-list { + margin-bottom: 10px; -.section-trello-list-title { - font-weight: bold; - color: #4c4c4c; - font-size: 14px; - margin: 5px; -} + i { + vertical-align: middle; + } + + .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 { diff --git a/app/app/templates/components/section/trello/type-editor.hbs b/app/app/templates/components/section/trello/type-editor.hbs index 980bac57..5eb38373 100644 --- a/app/app/templates/components/section/trello/type-editor.hbs +++ b/app/app/templates/components/section/trello/type-editor.hbs @@ -2,6 +2,8 @@ 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')}} +
+ {{#if authenticated}} {{#if noBoards}}
@@ -9,7 +11,7 @@
{{else}} -
+
Select Board & Lists
@@ -23,16 +25,16 @@
All boards are selectd by default
-
+
{{#each config.boards as |board|}} {{#if board.id}} -
+
{{#if board.included}} - check_box + check_box {{else}} - check_box_outline_blank + check_box_outline_blank {{/if}} - {{board.idOrganization}} / {{board.name}} + {{board.orgName}} / {{board.name}}
{{/if}} {{/each}} @@ -41,7 +43,10 @@
-
+ +
 
+ +
@@ -87,5 +92,5 @@
{{/if}} - +
{{/section/base-editor}} diff --git a/core/section/trello/archive_template.go b/core/section/trello/archive_template.go index bab5179f..7bcd4a03 100644 --- a/core/section/trello/archive_template.go +++ b/core/section/trello/archive_template.go @@ -12,49 +12,51 @@ package trello const archiveTemplate = ` -
- -{{if gt (len .Boards) 0}} -
Deleted and Archived Cards
-

Changes since {{.Since}}.

+{{if false}}
- - - {{range $b := .Boards}} - - - + + {{end}} + +
- - {{$b.Board.Name}} - - - {{range $act := $b.Actions}} - {{if eq $act.Type "deleteCard" }} - Deleted: - {{$act.Data.List.Name}} - {{if ne $act.Data.Card.Name ""}} - : {{$act.Data.Card.Name}} - {{if ne $act.Data.Text ""}} - - {{$act.Data.Text}} + + {{if gt (len .Boards) 0}} +
Deleted and Archived Cards
+

Changes since {{.Since}}.

+
+ + + {{range $b := .Boards}} + + + - - {{end}} - -
+ + {{$b.Board.Name}} + + + {{range $act := $b.Actions}} + {{if eq $act.Type "deleteCard" }} + 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}} + {{end}} + {{range $arch := $b.Archived}} + Archived: + {{$arch.Name}} + {{if ne $arch.Desc ""}} + - {{$arch.Desc}} {{end}}
{{end}} - {{end}} - {{range $arch := $b.Archived}} - Archived: - {{$arch.Name}} - {{if ne $arch.Desc ""}} - - {{$arch.Desc}} - {{end}} -
- {{end}} -
+
+
+ {{end}}
{{end}} -
`