diff --git a/src/sunstone/etc/sunstone-views.yaml b/src/sunstone/etc/sunstone-views.yaml index 85d370a229..be4445de24 100644 --- a/src/sunstone/etc/sunstone-views.yaml +++ b/src/sunstone/etc/sunstone-views.yaml @@ -1,4 +1,5 @@ --- +logo: ../images/opennebula-sunstone-v4.0.png users: groups: oneadmin: diff --git a/src/sunstone/etc/sunstone-views/admin.yaml b/src/sunstone/etc/sunstone-views/admin.yaml index 3ab34004ae..676f81be64 100644 --- a/src/sunstone/etc/sunstone-views/admin.yaml +++ b/src/sunstone/etc/sunstone-views/admin.yaml @@ -1,3 +1,4 @@ +small_logo: images/opennebula-sunstone-v4.0-small.png tabs: dashboard-tab: enabled: true diff --git a/src/sunstone/etc/sunstone-views/user.yaml b/src/sunstone/etc/sunstone-views/user.yaml index 6187922865..f7f7d0d3d9 100644 --- a/src/sunstone/etc/sunstone-views/user.yaml +++ b/src/sunstone/etc/sunstone-views/user.yaml @@ -1,3 +1,4 @@ +small_logo: images/opennebula-sunstone-v4.0-small.png tabs: dashboard-tab: enabled: true diff --git a/src/sunstone/models/SunstoneViews.rb b/src/sunstone/models/SunstoneViews.rb index 8f133382b4..8d6aae27f4 100644 --- a/src/sunstone/models/SunstoneViews.rb +++ b/src/sunstone/models/SunstoneViews.rb @@ -55,4 +55,8 @@ class SunstoneViews return available_views end + + def logo + @views_config['logo'] + end end \ No newline at end of file diff --git a/src/sunstone/public/css/login.css b/src/sunstone/public/css/login.css index dc415eaa81..32049fe0c0 100644 --- a/src/sunstone/public/css/login.css +++ b/src/sunstone/public/css/login.css @@ -71,9 +71,7 @@ div#logo_sunstone { top: 65px; margin-left: auto; margin-right: auto; - background: url(../images/opennebula-sunstone-v4.0.png) no-repeat center; vertical-align: center; - background-size: 355px; } div#login { diff --git a/src/sunstone/views/_login_standard.erb b/src/sunstone/views/_login_standard.erb index 50af211cfe..ef0ed34bce 100644 --- a/src/sunstone/views/_login_standard.erb +++ b/src/sunstone/views/_login_standard.erb @@ -1,8 +1,10 @@