| Commit message (Collapse) | Author | Age | Lines |
| |
|
|
|
|
| |
So version 2.4.1 has no translation changes, putting back straight after.
|
|
|
|
|
|
|
|
| |
This adds a systemd service unit file for managing the FixMyStreet
Catalyst process manager.
This also updates the commonlib submodule with matching changes to
our install scripts.
|
|\ |
|
| |
| |
| |
| |
| |
| | |
replace_query_parameter() was stringifying select multiples, meaning
they were incorrectly recorded by the pushState and thus breaking on
navigation.
|
|/
|
|
| |
Fixes #2263.
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
|
|
| |
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 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).
|
|/ |
|
|
|
|
|
|
|
| |
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!
|
|
|
|
| |
Fixes #2235.
|
|\ |
|
| | |
|
|/
|
|
|
| |
Provides a template override for cobrands to show if updates aren't
allowed on the problem.
|
|
|
|
|
|
|
|
| |
if a web parameter is passed to /import then display the email
confirmation sent page rather than a SUCCESS message. Enables this page
to be used for creating partial reports from a web page.
For mysociety/collideoscope#17
|
| |
|
| |
|
|
|
|
| |
GeoJSON is used by the /reports page now, not KML.
|
| |
|
|
|
|
|
| |
This prevents leaking of user account phone
number on a failed login attempt.
|
|\ |
|
| | |
|
| | |
|
|\ \ |
|
| | | |
|
|\ \ \
| |_|/
|/| | |
|
| |/ |
|
| | |
|
|/
|
|
|
|
| |
Add by_category output to the /report/new/ajax call, containing all the data
that /report/new/category_extras returns for one category. Then alter the JS
to use that data immediately when needed.
|
| |
|
|\ |
|
| | |
|
|/
|
|
|
|
|
|
|
|
|
|
| |
Previously, if you didn’t want a hint to appear under the main "details"
textarea on the new report form, you had to override the entire
`form_report.html` template, or leave the hint element in the markup but
hide it with CSS.
Now, you can set `form_detail_placeholder` to a falsey value, and the
template won’t output the hint element at all. It also amends the
`aria-describedby` attribute on the textarea so it doesn’t end up
referencing a hint element that doesn’t exist.
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Fixes #2016.
When you load a page that includes either a problem report, or is
centered on a location, the "Report a problem" button in the nav bar
(that normally takes you to the homepage) becomes a "Report a(nother)
problem here" button, that leads directly to the new report form
for the location in question.
On full map pages (/around and any /report/<id> pages loaded via it)
the reporting form will be rendered client-side, avoiding a full page
reload.
On pages lacking the full map (eg: missing fixmystreet.bbox_strategy),
namely /reports/<area> and any /report/<id> page that hasn’t been
client-side loaded via /around, we fall back to a server-side page load.
Finally, as you’d expect, the text and URL for the button dynamically
update as you move around the map, or switch between the different
client-side states of the reporting flow.
We also hide the button entirely when you’re reporting a problem,
which was something suggested a long time ago.
|
|\ \ |
|
| |/
| |
| |
| |
| |
| |
| | |
Part of #2012.
Should make it much quicker to report multiple problems in the same
location, one after the other.
|
|/
|
|
|
|
|
|
| |
If an inspector clicks on a report from an around page the code to setup
the pin dragging needs to be called. This adds a method to the map to
allow the setup code to be called on report load.
Fixes #2073
|
|\ |
|