danreeves / danreeves/refined-gitlab
Things to do?
- Dominant language
- No language data
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
- [ ] Nicer board styling (e.g. centred)
- [ ] Add Board to the main nav of a project
- [ ] Remove Project from main nav
- [ ] Reset nav active class
```
'use strict';
try {
// Centre board
document.querySelector('.boards-list')
.setAttribute('style','display: flex; align-items: center; justify-content: center;');
} catch(e){}
// Add Board to menu
var menuItem = document.querySelector('.shortcuts-graphs');
menuItem.setAttribute('title', 'Board');
menuItem.setAttribute('href', menuItem.href.replace('graphs/master', 'boards'));
menuItem.innerHTML = 'Board';
// Remove Project from menu
document.querySelector('.nav-links .home').remove();
// Remove active class
document.querySelector('.nav-links .active').classList.remove('active');
// Redo nav active class
Array.from(document.querySelectorAll('.layout-nav .nav-links li')).forEach(function (el) {
try {
if (el.querySelector('a').href === document.location.toString()) el.classList.add('active');
} catch(e){}
});
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.