added github links to progress

This commit is contained in:
mrjvs
2021-08-22 16:45:10 +02:00
parent 345f8860fd
commit cf570d2b19
8 changed files with 71 additions and 6 deletions

View File

@@ -1,5 +1,6 @@
const { Router } = require('express');
const util = require('../util');
const { boards } = require('../../boards/boards.json');
const router = new Router();
const { getTrelloCache } = require('../trello');
@@ -11,7 +12,8 @@ router.get('/', async (request, response) => {
response.render('home', {
layout: 'main',
locale: tmpLocale,
featuredFeatureList: cache.sections[0]
featuredFeatureList: cache.sections[0],
boards,
});
});

View File

@@ -1,5 +1,6 @@
const { Router } = require('express');
const util = require('../util');
const { boards } = require('../../boards/boards.json');
const router = new Router();
const { getTrelloCache } = require('../trello');
@@ -11,7 +12,8 @@ router.get('/', async (request, response) => {
response.render('progress', {
layout: 'main',
locale: tmpLocale,
progressLists: cache
progressLists: cache,
boards,
});
});

View File

@@ -31,6 +31,7 @@ async function updateTrelloCache() {
for (const board of boards) {
const meta = {
title: '',
id: '',
percentage_complete: 0,
progress: {
not_started: [],
@@ -40,6 +41,7 @@ async function updateTrelloCache() {
};
meta.title = board.name;
meta.id = board.id;
const lists = await trello.getListsOnBoard(board.id);
const cards = await trello.getCardsOnBoard(board.id);