diff --git a/src/routes/util.ts b/src/routes/util.ts index 1da4bcd..944a3cd 100644 --- a/src/routes/util.ts +++ b/src/routes/util.ts @@ -253,6 +253,7 @@ export function adminAuth (req: Request, res: Response, next: NextFunction) { // Render a page export function renderPage(req: Request, res: Response, page: string, options: any) { options = options || {}; + options.url = req.originalUrl; services.MetaService.getMeta('Version', (version) => { options.version = version; if (!req.session || !req.session.sessionId) { diff --git a/src/static/css/main.css b/src/static/css/main.css index 171af9a..7173e3d 100644 --- a/src/static/css/main.css +++ b/src/static/css/main.css @@ -157,6 +157,10 @@ footer .footer-list-link { padding: 0px 20px; } +#index .card-link { + text-decoration: none; +} + #index .thumbnail { width: 250px; height: 250px; diff --git a/src/static/js/index.js b/src/static/js/index.js index 2e7629f..73c638d 100644 --- a/src/static/js/index.js +++ b/src/static/js/index.js @@ -14,62 +14,67 @@ function deleteLastBook() { function addBook(book) { var courseNumber = book.coursenumber ? ' ' + book.coursenumber : ''; //