Skip to content

Commit

Permalink
feat(KUI-1400): upgrade kth/style
Browse files Browse the repository at this point in the history
  • Loading branch information
amirhossein-haerian committed Aug 26, 2024
1 parent d590ef4 commit ddbe035
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"@kth/monitor": "^4.3.1",
"@kth/server": "^4.1.0",
"@kth/session": "^3.0.9",
"@kth/style": "^0.18.12",
"@kth/style": "^1.3.0",
"@kth/ug-rest-api-helper": "^1.0.26",
"axios": "^1.7.2",
"body-parser": "^1.20.2",
Expand Down
4 changes: 3 additions & 1 deletion server/views/helpers/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'use strict'

const handlebars = require('handlebars')
const registerHeaderContentHelper = require('@kth/kth-node-web-common/lib/handlebars/helpers/headerContent')
const { registerBreadcrumbHelper } = require('@kth/kth-node-web-common/lib/handlebars/helpers/breadcrumbs')
const { registerLanguageLinkHelper } = require('@kth/kth-node-web-common/lib/handlebars/helpers/languageLink')
Expand Down Expand Up @@ -41,3 +41,5 @@ require('@kth/kth-node-web-common/lib/handlebars/helpers/contentedit')
const i18n = require('../../../i18n')
require('@kth/kth-node-web-common/lib/handlebars/helpers/createI18nHelper')(i18n)
require('@kth/kth-node-web-common/lib/handlebars/helpers/safe')

handlebars.registerHelper('eq', (var1, var2) => var1.toString() === var2.toString())
5 changes: 4 additions & 1 deletion server/views/partials/headerLogotype.handlebars
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
<a href="/student" class="kth-logotype">
<figure>
<img class="blue" alt="Till KTH:s startsida" width="64" height="64" src="{{{proxyPrefix}}}/assets/logotype/logotype-blue.svg">
{{#if (eq theme "external")}}
<img class="white" alt="Till KTH:s startsida" width="64" height="64" src="{{{proxyPrefix}}}/assets/logotype/logotype-white.svg">
{{else}}
<img class="blue" alt="Till KTH:s startsida" width="64" height="64" src="{{{proxyPrefix}}}/assets/logotype/logotype-blue.svg">
{{/if}}
</figure>
</a>

0 comments on commit ddbe035

Please sign in to comment.