| Commit message (Collapse) | Author | Age | Lines |
... | |
|/
|
|
| |
checks what is shown/hidden at various screen sizes
|
|
|
|
| |
The new lookup would only work if it was present.
|
|
|
|
|
|
| |
Rather than pulling across the preinit file from master, use the
version in the copy of FixMyStreet on the image - this will then
match the release actually being built.
|
|
|
|
| |
Fixes mysociety/fixmystreet-commercial#1131
|
|
|
|
|
| |
The change to web/js/front.js was required because Oxfordshire has no
`.report-a-problem-btn`, so the front.js shouldn’t assume it’s there.
|
|
|
|
|
|
|
|
|
|
|
| |
The large negative text-indent can sometimes cause horizontal scrollbars
in Right-to-Left languages, and, in some browsers, can also result in a
huge :focus outline being drawn around the button and off to the right
of the window.
Setting a zero height, padding top, and overflow:hidden is a simpler
way to achieve the same thing, and works regardless of text direction,
text length, or focus state.
|
|
|
|
| |
There is no need for #front_stats to always be nested inside of #front-howto.
|
| |
|
|
|
|
|
|
|
|
| |
The reference number is a) the FMS report id which is irrelevant and b)
we don't get an OCC reference number back immediately so could not show
it anyway.
Related to mysociety/fixmystreet-commercial#1193
|
|
|
|
|
| |
but only send if the problem as a customer reference and use that as the
external id reference
|
|
|
|
|
| |
we no longer need some of the hardcoded oxfordshire Open311 overrides so
remove them
|
|
|
|
|
| |
OCC uses the customer reference from extra to store the enquiry
reference so use that on the report page rather than external_id.
|
|
|
|
|
| |
If an Open311 update has a customer_reference property then add that to
the metadata for the problem.
|
|
|
|
|
| |
This is required to build some of the Perl modules pulled in by the
addition of `Net::Amazon::S3`.
|
| |
|
| |
|
| |
|
|\ |
|
| | |
|
| | |
|
| | |
|
|/ |
|
|
|
|
|
| |
Adds a mocked Oxfordshire cobrand permissions method that adds
back in the permissions explicitly removed there.
|
|\ |
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| | |
This adds details of our Docker images and the example Docker
Compose environment, including notes on how to use this with
a cobrand and how to customise the database configuration.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This adds a script for loading cobrands into an instance of the
FixMyStreet Docker container.
A directory containing the necessary module, templates, css, etc
should be mapped into the container at `/var/www/fixmystreet/cobrand`
and activated by adding the cobrand to `ALLOWED_COBRANDS` as usual.
See the documentation at https://fixmystreet.org/install/docker
for more details.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This includes four containers: app, memcached, nginx, and postgres.
The preinit script is used at container startup to ensure the database
is initialised. Includes a volume for the Postgres database to permit
persistence. Also sets the `PGDATA` variable to a subdirectory to
support optional use of a filesystem mount.
The repo/branch can be specified at build time.
If `SUPERUSER_EMAIL` and `SUPERUSER_PASSWORD` are set when the FMS
container starts the preinit script will pass these to
`bin/createsuperuser` when it starts up. These have been set to test
values in the supplied Docker Compose configuration.
Reverse proxy issue
===================
If nginx and fms were on the same machine, ReverseProxy would
automatically be in use, but via docker containers they are not. Do we
need to force it to be switched on? Let's see. There are four possible
options, with their outcome:
* port not in Host, ReverseProxy not in use
Anything using the automatically-generated base instead of BASE_URL uses
port 9000, meaning those links don't work.
* port not in Host, ReverseProxy in use
Anything using the automatically-generated base instead of BASE_URL uses
port 80, meaning those links don't work (they would if you had
docker-compose listen on port 80, being then a similar situation to e.g.
the AMI image).
* port in Host, ReverseProxy not in use
This works *unless* the port is 80, just to be contrary to the above; in
that case it is stripped and :9000 is put back on, meaning those links
again don't work. I realise we use 8000, but would be confusing if
someone tried it out.
* port in Host, ReverseProxy in use
This works in all scenarios, and thus is what we go with.
|
| |
| |
| |
| |
| |
| |
| | |
- Adds support for additional variables intended to control when to
install postfix and postgres.
- Skips nginx setup and integration when performing a docker build.
- Don't print usage during docker build
|
| | |
|
|/
|
|
|
|
|
|
|
|
|
|
|
| |
This sets the default box to be `mysociety/fixmystreet` and provides
an optional argument, `--base-box`, that can be used to override this.
When using the `mysociety/fixmystreet` box, the Perl modules are
prebuilt in `/usr/share/fixmystreet/local` and are bind-mounted into
`/home/vagrant/fixmystreet/local`. This ensures that these are
compatible with the guest machine and speeds up an initial launch.
The `mysociety/fixmystreet` box is also based on Debian Stretch so is
a closer match to our current production environment.
|
| |
|
| |
|
| |
|
|\ |
|
| | |
|
|\ \ |
|
| |/
| |
| |
| |
| |
| | |
Use a HashRefInflator wherever all_sorted is used, with consequential
changes to deal with it now not being an object (e.g. add some with_*
functions for manual fetching of extra data).
|
| | |
|
| | |
|
|/
|
|
| |
For mysociety/fixmystreet-freshdesk#16.
|
|
|
|
|
|
|
| |
Previously we assumed that any memcache instance would be running on
the local loopback interface. This commit makes this configurable with
a `MEMCACHED_HOST` option. If left unset, this will default to
`127.0.0.1`.
|
|
|
|
|
| |
If an admin with the user_edit permission but not user_assign_body
edited a user with from_body set, the from_body field was lost.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Now that the "Report a problem" link in the nav bar links, more often
than not, to the reporting form rather than the homepage, it could be
challenging to actually start a new report in a location *other* than
the one currently on screen.
Rather than adding a link to the homepage, this change hopefully adds
a link right at the moment the user expects it – right on the "Report
a problem" form.
It also gave us an opportunity to reword the "Wrong location" message
and give it an icon more suitable for high-dpi displays.
Fixes #2238.
|
|
|
|
|
|
|
| |
Works for both the "Report" button shown in the mobile header,
and the "Report a problem" span on the desktop site.
Thanks to Louise for suggesting this in mysociety/collideoscope#42!
|
|
|
|
|
|
|
|
| |
Some cobrands (like Collideoscope) don’t have a .report-a-problem-btn
in their mobile nav menu, so .querySelector() would raise an exception
when we tried to attach an event listener to it.
Now we check that the element exists before attaching the listener.
|
| |
|
| |
|
|
|
|
| |
Fixes #2235.
|