diff --git a/src/web/public/views/repositories.js b/src/web/public/views/repositories.js index 59a7510..ff3ef7a 100644 --- a/src/web/public/views/repositories.js +++ b/src/web/public/views/repositories.js @@ -28,10 +28,12 @@ const LEVELS = { STAFF: 1, DEV: 2, OWNER: 3 }; // --- List ------------------------------------------------------------------- function repositoryCard(repository) { + // The card is the link: clicking anywhere on it opens the repository, which + // is what a rectangle that reacts to the pointer promises. return h( - 'article', - { class: 'repo-card' }, - h('h3', {}, h('a', { href: `#/repos/${repository.fullName}`, text: repository.name })), + 'a', + { class: 'repo-card', href: `#/repos/${repository.fullName}` }, + h('h3', { text: repository.name }), h('p', { class: 'muted', text: repository.description || 'Sans description.' }), h( 'div',