Make status colors more prominent in MantisBT 2.0

Once upon a time, MantisBT used to create a colorful table with all your issues, using the status color as a background for the whole row. Since version 2.0, the status color has been moved to a small box in the status column, making it harder to spot the info you’re looking for at a glance.

I don’t like it, people I work with don’t like it… and if you’ve reached this page from a Google search, chances are you don’t like it either 🙂

So I wrote a little plugin that will change the list from:

to:

To install it, simply copy the BetterStatusColors directory in the plugins directory of your mantis installation and activate the plugin from the administration section.

18 comments

    • Simone says:

      I’ve just upgraded too to test it, but I can still use the plugin correctly.

      Make sure that you’ve copied the plugin directory in your new mantis installation and that the file permissions are correct. Also, check that you’re using the latest release of the plugin from github

  1. xose says:

    HI Simone
    Thank you very much for your reply.
    yes i have downloaded the latest build 1.0.2 and yes i have copied it to the correct directory and the permission are fine but still no luck. Could it be that the other plugins i have are stopping yours from working. I have these installed
    1)Avatars via Gravatar 2.3.1
    2)Import/Export issues 2.3.1
    3)Mantis Graphs 2.3.1
    4)Mantis BT Core 2.3.1
    5)Mantis BT Formatting 2.3.1

    they all use MantisBT Dependencies 2.0.0 except the Formatting which uses the 2.1.0.

    Any help is greatly appreciated and again thanks for your time

    • Simone says:

      the plugin is so simple that there’s shouldn’t be any conflict with other plugins.

      At the very least, you should see the plugin in the admin page (either as installed or among the available plugins). If you don’t see it there, I can only speculate that the files are not in the correct location (e.g. you should have /plugins/BetterStatusColors/BetterStatusColors.php), that the permissions are not correct or that the plugin is not the latest one (make sure that line 36 reads “$this->requires = array();”)

  2. mantis user says:

    Make sure that the map name is BetterStatusColors and not BetterStatusColors-master in the pugin location.

    • Simone says:

      I guess it could. You’d have to modify the plugin to insert the status class into the <tr> element and probably add a few other styles to keep the text readable

  3. Hey there,
    Thanks for the plugin, i’ve been looking a while to find it. Unfortunately, when I add some custom statuses values, the plugin doesn’t work anymore. Do you have any idea why this is happening ?

    • Simone says:

      I’m using the plugin on a setup with custom statuses without any problem: what it does is simply move CSS classes around, so an extra status shouldn’t make a difference. Just make sure to use the latest version of the plugin from github if you’ve updated your mantis setup.

      Also, try clearing your browser cache: I’ve witnessed some malfunctions that got solved this way

  4. Holger says:

    I am colorblind and this Plugin is realy a big help for me!!
    It is hard to recognize a Color on a Little square. With your Plugin i can easyli recognize the Colors.

    Thank you !!!

  5. Installed on Mantis 2.25.1

    I had to change $this->requires = array(”); to $this->requires = array(‘MantisCore’ => ‘2.0.0’); in the register() function in BetterStatusColors.php otherwise the [Install] button is absent in the Plugin manager.

    After that the plug in works nicely.

    • RileyM3 says:

      Just tried installing the latest version, and it appears that the change in BetterStatusColors.php has already been applied. Works great without modification now.

    • Simone says:

      if you start with a clone of this plugin, you’ll have to edit the js file to apply the colors to the tr element instead of the td… you need a bit of js/css knowledge

Leave a Reply

Your email address will not be published. Required fields are marked *