Majic Projects
Majic Ansible Roles
Go to the previous open issue
Go to the previous issue (open or closed)
star_faded.png
Please log in to bookmark issues
icon_project.png Majic Ansible Roles / Closed Feature request MAR-70 Ability to distinguish between websites in different environments
action_vote_minus_faded.png
0
Votes
action_vote_plus_faded.png
Go to the next issue (open or closed)
Go to the next open issue
This issue has been closed with status "Closed" and resolution "RESOLVED".
Issue basics
  • Type of issue
    Feature request
  • Category
    User interface
  • Targetted for
    1.1.0
  • Status
    Closed
  • Progress
  • Priority
    Must fix before next release
User pain
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
Affected by this issue (0)
There are no items
People involved
Times and dates
  • Posted at
  • Last updated
  • Estimated time
    4 hours
  • Time spent
    2 hours
    Click here to see time logged against this issue
Issue details
  • Resolution
    RESOLVED
Attachments (0)
There is nothing attached to this issue
Duplicate issues (0)
This issue does not have any duplicates
Description

Currently there can be a lot of confusion when accessing a web application on what environment it belongs to. This can lead to a lot of mistakes.

This can be fixed by updating themes for every single web application, but that can prove both tedious and sometimes impossible (not to mention unmanageable).

However, a better approach would be to utilise Nginx's sub_filter option to replace closing HTML body tag with something to make it more distinguishing.

For example:

sub_filter "</body>" "<div id='majicenvironment' style='background-color: orange; width: 100%; text-align: center; position: fixed; bottom: 5px; color: black;'>TEST ENVIRONMENT</div></body>";
sub_filter_once on;

The feature should be implemented as follows:

  • Default to not showing any environment-specific info.
  • A small floating footer should be shown everywhere (for entire vserver).
  • Text, text colour and background colour should be configurable.
  • Make the indicator fade-away on mouse-over (so text can be seen behind it) - as much as possible, but maybe keep it visible at all times.
Todos (0 / 0)
There are no comments