Skip to content

Commit

Permalink
Changes after PR
Browse files Browse the repository at this point in the history
  • Loading branch information
tinaeile committed Nov 24, 2023
1 parent 701aefe commit 4b0c563
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion src/main/resources/admin/widgets/matomo/matomo.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<widget id="widget-matomo">
<link rel="stylesheet" data-th-href="${styleUri}" type="text/css" media="all"/>
<div th:if="${pageData != null}">
<!-- <h1>Report for <span data-th-text="${pageData.yesterday.label}?: ' '"/></h1>-->
<ul>
<li th:if="${pageData.yesterday != null}">
<input type="checkbox">
Expand Down
8 changes: 4 additions & 4 deletions src/main/resources/admin/widgets/matomo/matomo.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@ const settings = {
const token = app.config['matomo.token'];

exports.get = function (req) {

if (!req.params.contentId) {
const errorView = resolve("./error-handler/error.html");
const errorModel = {styleUri: libs.portal.assetUrl({
const errorModel = {
styleUri: libs.portal.assetUrl({
path: "matomo.css"
}),}
}),
};
return {
body: libs.thymeleaf.render(errorView, errorModel),
contentType: 'text/html'
Expand Down Expand Up @@ -76,4 +77,3 @@ exports.get = function (req) {
contentType: 'text/html'
};
};

0 comments on commit 4b0c563

Please sign in to comment.