Skip to content

Commit

Permalink
Fix dangling old theme reference
Browse files Browse the repository at this point in the history
  • Loading branch information
Etheryte committed Nov 26, 2024
1 parent afae4c1 commit 4d2b2ce
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ html(lang=window.preferredLocale.replace("_", "-"))
// import custom fonts/icons styles
link(rel='stylesheet', href='/fonts/font-spacewalk/css/spacewalk-font.css?cb=#{webBuildtimestamp}')
// import styles
link(rel='stylesheet', href='/css/#{webTheme}.css?cb=#{webBuildtimestamp}', id='web-theme')
link(rel='stylesheet', href='/css/updated-#{webTheme}.css?cb=#{webBuildtimestamp}', id='updated-web-theme')
link(rel='stylesheet', href='/css/updated-#{webTheme}.css?cb=#{webBuildtimestamp}')
script(type='text/javascript').
window.preferredLocale = "#{preferredLocale}";
window.docsLocale = "#{docsLocale}";
Expand All @@ -28,7 +27,7 @@ html(lang=window.preferredLocale.replace("_", "-"))

include /templates/common.jade

body(class='#{webTheme}' == "uyuni" ? "theme-#{webTheme} old-theme login-page" : "theme-#{webTheme} old-theme")
body(class='#{webTheme}' == "uyuni" ? "theme-#{webTheme} new-theme login-page" : "theme-#{webTheme} new-theme")
#login

+csrfToken
Expand Down
3 changes: 1 addition & 2 deletions java/code/webapp/WEB-INF/decorators/layout_error.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@

<c:set var="webTheme" value="${ConfigDefaults.get().getDefaultWebTheme()}"/>
<!-- import styles -->
<link rel="stylesheet" href="/css/${webTheme}.css?cb=${cb_version}" id="web-theme" />
<link rel="stylesheet" href="/css/updated-${webTheme}.css?cb=${cb_version}" id="updated-web-theme" />
<link rel="stylesheet" href="/css/updated-${webTheme}.css?cb=${cb_version}" />

<!-- expose user preferred language to the application -->
<c:set var="currentLocale" value="${ConfigDefaults.get().getDefaultLocale()}"/>
Expand Down
3 changes: 1 addition & 2 deletions java/code/webapp/WEB-INF/decorators/layout_head.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@

<!-- import styles -->
<c:set var="webTheme" value="${GlobalInstanceHolder.USER_PREFERENCE_UTILS.getCurrentWebTheme(pageContext)}"/>
<link rel="stylesheet" href="/css/${webTheme}.css?cb=${cb_version}" id="web-theme" />
<link rel="stylesheet" href="/css/updated-${webTheme}.css?cb=${cb_version}" id="updated-web-theme" />
<link rel="stylesheet" href="/css/updated-${webTheme}.css?cb=${cb_version}" />

<!-- expose user preferred language to the application -->
<c:set var="currentLocale" value="${GlobalInstanceHolder.USER_PREFERENCE_UTILS.getCurrentLocale(pageContext)}"/>
Expand Down
1 change: 1 addition & 0 deletions java/spacewalk-java.changes.eth.login
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Update login page layout
1 change: 1 addition & 0 deletions web/spacewalk-web.changes.eth.login
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Update login page layout

0 comments on commit 4d2b2ce

Please sign in to comment.