From a5bbc1742cf3003a65c6a012c9e13389b82917b5 Mon Sep 17 00:00:00 2001 From: mrjvs Date: Sun, 22 Aug 2021 17:42:05 +0200 Subject: [PATCH] working github links --- public/assets/css/main.css | 6 +++++- src/trello.js | 2 +- views/partials/progress-list.handlebars | 12 +++++++----- views/progress.handlebars | 2 +- 4 files changed, 14 insertions(+), 8 deletions(-) diff --git a/public/assets/css/main.css b/public/assets/css/main.css index d0c4cdd..6e11265 100644 --- a/public/assets/css/main.css +++ b/public/assets/css/main.css @@ -417,10 +417,11 @@ section.team { .progress-title a.github { margin-top: 10px; color: #6D73A2; - display: flex; + display: inline-flex; align-items: center; opacity: .75; text-decoration: none; + transition: color 50ms ease-in-out; } .progress-title a.github:focus, .progress-title a.github:hover, .progress-title a.github:visited { color: #6D73A2; @@ -436,6 +437,9 @@ section.team { .feature-list-wrapper.purple .progress-title a.github, .feature-list-wrapper.purple .progress-title a.github:focus, .feature-list-wrapper.purple .progress-title a.github:hover, .feature-list-wrapper.purple .progress-title a.github:visited { color: #c69cf9; } +.feature-list-wrapper .core > .progress-title a.github:hover { + color: white; +} .feature-list-wrapper canvas { width: 100px; diff --git a/src/trello.js b/src/trello.js index 4860f2d..ca5f856 100644 --- a/src/trello.js +++ b/src/trello.js @@ -41,7 +41,7 @@ async function updateTrelloCache() { }; meta.title = board.name; - meta.id = board.id; + meta.id = board.shortLink; const lists = await trello.getListsOnBoard(board.id); const cards = await trello.getCardsOnBoard(board.id); diff --git a/views/partials/progress-list.handlebars b/views/partials/progress-list.handlebars index a72f764..91e6460 100644 --- a/views/partials/progress-list.handlebars +++ b/views/partials/progress-list.handlebars @@ -10,12 +10,14 @@

{{ data.title }}

- {{#if data.id}}{{#if (lookup boards data.id)}}{{#with (lookup boards id) as | board |}} + {{#if data.id}}{{#if (lookup boards data.id)}}{{#with (lookup boards data.id) as | board |}} {{#each board.github_links}} - - - {{this.display}} - +
+ + + {{this.display}} + +
{{/each}} {{/with}}{{/if}}{{/if}}
diff --git a/views/progress.handlebars b/views/progress.handlebars index 6a88206..f0507d0 100644 --- a/views/progress.handlebars +++ b/views/progress.handlebars @@ -13,7 +13,7 @@
{{#each progressLists.sections}}
- {{> progress-list data=this boards=boards }} + {{> progress-list data=this boards=@root.boards }}
{{/each}}