Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
minerva
core
Commits
8dfb8d2d
Commit
8dfb8d2d
authored
Jan 22, 2019
by
Piotr Gawron
Browse files
when logo is provided as full url the image is not broken on the login page
parent
57d429dd
Changes
1
Hide whitespace changes
Inline
Side-by-side
frontend-js/src/main/js/minerva.js
View file @
8dfb8d2d
...
...
@@ -492,6 +492,10 @@ function createFooter() {
return
ServerConnector
.
getConfigurationParam
(
ConfigurationType
.
LOGO_IMG
);
}).
then
(
function
(
result
)
{
logoImg
=
result
;
if
(
!
/^
(
f|ht
)
tps
?
:
\/\/
/i
.
test
(
logoImg
))
{
logoImg
=
GuiConnector
.
getImgPrefix
()
+
logoImg
;
}
return
ServerConnector
.
getConfiguration
();
}).
then
(
function
(
configuration
)
{
return
functions
.
createElement
({
...
...
@@ -500,7 +504,7 @@ function createFooter() {
content
:
'
<table width="100%" border="0" cellspacing="0" cellpadding="0">
'
+
'
<tr>
'
+
'
<td align="left"><a href="
'
+
logoLink
+
'
" title="
'
+
logoText
+
'
" target="_blank">
'
+
'
<img src="
'
+
GuiConnector
.
getImgPrefix
()
+
logoImg
+
'
" width="80" height="80" border="0" alt="
'
+
logoText
+
'
"/>
'
+
'
<img src="
'
+
logoImg
+
'
" width="80" height="80" border="0" alt="
'
+
logoText
+
'
"/>
'
+
'
</a></td>
'
+
'
<td align="center" class="minerva-footer-text">MiNERVA version
'
+
configuration
.
getVersion
()
+
'
;<br/>
'
+
'
build
'
+
configuration
.
getBuildDate
()
+
'
;<br/>
'
+
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment