Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add theme with hostname displayed on top #3093

Closed
mwaldmueller opened this issue Nov 16, 2017 · 6 comments
Closed

Add theme with hostname displayed on top #3093

mwaldmueller opened this issue Nov 16, 2017 · 6 comments

Comments

@mwaldmueller
Copy link

This is an enhancement and especially helpful when you have Icinga Web 2 installed on two cluster nodes. Until now I expand the themes like this with "/usr/share/icingaweb2/public/css/themes/hostname.less":

#header:after {
        content: 'i2-master01';
        color: white;
        padding-left: 33px;
}

Example screenshot:
bildschirmfoto 2017-11-16 um 10 04 19

Environment

  • Icinga Web 2 version and modules (System - About): 2.4.2
  • Version used (icinga2 --version): 2.7.2
  • Operating System and version: CentOS 7.4
@Thomas-Gelf
Copy link
Contributor

Problem with this is that it wastes space on the right side, as there is now superfluous free space on top. But lucky you, our next layout is in the work these days and we'll separate the logo itself from header row constraints. So, this will allow to do what you're currently practicing with even more possibilities and less spacing constraints.

And it could then allow us to provide an optional/configurable "header-logo-info" section. I could imagine a configuration section like this:

[themes]
logo-info = "${fqdn}: ${ipaddress}\n${operatingsystem}\nPowered by @mwaldmueller" 

Probably with less details, the example should just show what could be accomplished.

@Thomas-Gelf
Copy link
Contributor

@mwaldmueller: eventually talk to @flourish86, he's currently working on the new theme. So, now is the perfect time to influence him with your ideas.

@mwaldmueller
Copy link
Author

Already done! Thanks for your feedback

@dnsmichi
Copy link
Contributor

I would do that in the browsers tab title, if not already there. Classic UI had such a patch.

@lippserd lippserd added the enhancement New feature or improvement label Jun 20, 2018
@nilmerg
Copy link
Member

nilmerg commented Apr 10, 2019

If such a thing is desired one can still (as shown in the OP) accomplish this with a custom theme. Plenty of users do this already. (even in a more extensive manner)

@dnsmichi
Copy link
Contributor

I've moved this into Icinga/icingaweb2-theme-company#7 since I really like the idea :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants