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

Mailman Mailing Lists containing "new" have all-green buttons #375

Closed
ElpyDE opened this issue Feb 5, 2016 · 8 comments
Closed

Mailman Mailing Lists containing "new" have all-green buttons #375

ElpyDE opened this issue Feb 5, 2016 · 8 comments
Labels

Comments

@ElpyDE
Copy link

ElpyDE commented Feb 5, 2016

Hi,

I found a small bug that seems to be related to this theme:

In any table showing mailman mailing lists (per domain or global), the buttons of each list which has new in its name, are shown in green (first screenshot).

It happens that they have the class btn-success assigned for which the background-color is defined in /unauthenticated/css/package.min.css

Example (Delete button of the unnewsworthy list):

<input style="margin-left: 3px;" class="btn btn-default submitter ui_submit btn-danger btn-success heighter-28" name="unnewsworthy" id="unnewsworthy" value="Delete" type="submit">

The old theme does not add any similar classes. This is why I suppose a small bug in the logic which adds classes to buttons in Authentic Theme.

Authentic Theme:
authentic_theme

Virtualmin Framed Theme:
framed_theme

Finally: I really like the new authentic theme. It makes using virtualmin fun again. Thanks to anyone who contributed to this great work!

@iliajie
Copy link
Collaborator

iliajie commented Feb 5, 2016

You are welcome, 😄

I agree that mechanism for guessing colors of the buttons should be improved. I will leave this issue opened until next release - then I'll fix that.

Thank you for reporting.

@iliajie iliajie added the bug label Feb 5, 2016
@iliajie
Copy link
Collaborator

iliajie commented Feb 9, 2016

If you open right frame content's page, what its URL?

@iliajie
Copy link
Collaborator

iliajie commented Feb 9, 2016

I mean view-source

@ElpyDE
Copy link
Author

ElpyDE commented Feb 9, 2016

The problem occurs at all tables of Virtualmin Mailman Mailing Lists:
Let myhost.example.com be the host where virtualmin is running and example.org be one virtual server on that host. Then the green buttons will be on:
https://myhost.example.com:10000/virtualmin-mailman/ (mailing lists of all virtual servers)
and on
https://myhost.example.com:10000/virtualmin-mailman/index.cgi?show=example.org (mailing lists of only the example.org virtual server)

@iliajie
Copy link
Collaborator

iliajie commented Feb 10, 2016

It will be fixed upon next release. Please stay tuned and let me know if it's alright after upgrade.

Thanks for reporting.

@iliajie iliajie closed this as completed Feb 10, 2016
@iliajie
Copy link
Collaborator

iliajie commented Feb 10, 2016

17.64 is out, please upgrade.

@ElpyDE
Copy link
Author

ElpyDE commented Feb 11, 2016

Green buttons have gone now, thanks for your work!

Unfortunately, the previously red Delete buttons are now gray, too. But that's okay (a confirmation page is shown before any delete action is excecuted) and probably better than accidentally colored buttons, I think.

Without digging further into your code for guessing colors, I'm afraid I cannot suggest any better or even unique selection criteria :-(

@iliajie
Copy link
Collaborator

iliajie commented Feb 11, 2016

Yes, they should be labeled by the module itself. Other than that it's all guessing and can't be 100% reliable.

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

No branches or pull requests

2 participants