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

Button Color in Custom Commands Module #244

Closed
sn1999 opened this issue Sep 15, 2015 · 1 comment
Closed

Button Color in Custom Commands Module #244

sn1999 opened this issue Sep 15, 2015 · 1 comment

Comments

@sn1999
Copy link

sn1999 commented Sep 15, 2015

Not quite sure if it is a bug or intended.
If you create a Custom Command including Stop (case-sensitive) in the Description the button of this command turns orange (css class btn-warning is added).
If it is a Bug, it would be great if we had a config option to add specific colors if a specific String is used in the buttons description of Custom Command.
As an example:
Set all custom commands containing 'Start' to green (by selecting css class btn-success or adding a own css class to it).
This would be awesome if you use Custom Commands to Start/Stop Gameservers/Teamspeak.
customcmd

@iliajie
Copy link
Collaborator

iliajie commented Sep 15, 2015

I don't support yet this mode of Custom Commands. I will in the future but not just right now. I had the discussion about this with Jamie (Webmin dev) and I keep this in my to-do list.

Meanwhile, you could get what you want, if you change the mode in settings: Module Settings->Main page shows->Links to commands.

Then you will see a nicer list of custom commands.

To give color to it, use theme extension CSS part and add the following code:

body.custom a[href="view.cgi?id=1438250349"] {
    color: red
}

body.custom a[href="view.cgi?id=1438269117"] {
    color: green
}

It's a nice idea! Thanks!

@iliajie iliajie closed this as completed Sep 15, 2015
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

2 participants