Skip to content

Commit

Permalink
Add revision in page title.
Browse files Browse the repository at this point in the history
  • Loading branch information
patrikbjork committed Mar 3, 2021
1 parent 2abdb43 commit 6ef4766
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions src/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -605,6 +605,11 @@ function createMenuesAndBigStartPage(mainMenuData, dataResources, dataNews, data
$('body').addClass(dataYears.present === dataYears.show ? 'adminmode-present-year' : 'adminmode-other-year');
printTemplate(dataYears, "#admin-bar-template", '#admin-bar-placeholder');
}

if (dataYears.show) {
$('#revisionPlaceholder')[0].innerHTML = dataYears.show;
}

printTemplate(data, "#main-menu-template", '#main-menu-placeholder');
printTemplate(data, "#filler-template", '#details-filler-placeholder');
printTemplate(data, "#fly-menu-template", '#fly-menu-placeholder');
Expand Down
4 changes: 2 additions & 2 deletions src/resources/reklistan.appcache
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
CACHE MANIFEST
# v17 - 2020-10-17
# v18 - 2021-03-01

CACHE:
https://fonts.googleapis.com/css?family=Roboto:500,900italic,900,400italic,100,700italic,300,700,500italic,100italic,300italic,400
Expand All @@ -19,7 +19,7 @@ https://fonts.gstatic.com/s/roboto/v19/KFOjCnqEu92Fr1Mu51TzBic6CsTYl4BO.woff2
/o/reklistan-theme/css/main.css?browserId=other&themeId=reklistantheme_WAR_reklistantheme&languageId=sv_SE&b=7110&t=1
/o/reklistan-theme/js/libs.min.js?t=1
/o/reklistan-theme/js/lunr.unicodeNormalizer.js?t=1
/o/reklistan-theme/js/main.js?browserId=other&languageId=sv_SE&b=7110&t=146
/o/reklistan-theme/js/main.js?browserId=other&languageId=sv_SE&b=7110&t=154
/o/reklistan-theme/custom-lib/flaticon/flaticon.woff
/o/reklistan-theme/images/theme/vgr-w400-c.png
/o/reklistan-theme/images/favicon.ico
Expand Down
4 changes: 2 additions & 2 deletions src/templates/portal_normal.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@
<div class="appbar">
<div class="appbar-menu-title-wrapper">
<div class="appbar-menu-title">
<a href="#">REK<span class="thin">listan</span></a>
<a href="#">REK<span class="thin">listan <span id="revisionPlaceholder"></span></span></a>
<div class="appbar-menu-sub-title">Läkemedelskommittén i Västra Götalandsregionen</div>
</div>
</div>
Expand Down Expand Up @@ -308,7 +308,7 @@
</div>
</div>
<script src="${themeDisplay.pathThemeRoot}/js/main.js?browserId=${browserId}&languageId=${themeDisplay.languageId}&b=${liferayBuild}&t=152" type="text/javascript"></script>
<script src="${themeDisplay.pathThemeRoot}/js/main.js?browserId=${browserId}&languageId=${themeDisplay.languageId}&b=${liferayBuild}&t=154" type="text/javascript"></script>
<script>
initApp();
Expand Down

0 comments on commit 6ef4766

Please sign in to comment.