| Commit message (Collapse) | Author | Age | Lines |
| |
|
|\ |
|
| | |
|
|/
|
|
|
|
|
|
|
|
|
|
|
| |
Users with the `report_inspect` permission can click a new 'inspect' button on a
report page to input more detailed problem information into a new form that
appears in a column alongside the report detail.
- Inspector data is stored in problem's 'extra' field
- Report category/state can be edited
- Location can be changed by dragging the pin or HTML5 geolocation
(Factored out Zurich admin pin drag into own function)
For mysociety/fixmystreetforcouncils#22
|
|
|
|
| |
Fixes a bug with updates not being displayed correctly in the app.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
Searches the `id` and `external_id` fields.
This takes you directly to the report if only a single report matches, otherwise
a disambiguation page is shown.
For mysociety/fixmystreetforcouncils#16
|
|
|
|
|
|
| |
A user with the appropriate permission can add/remove reports from their
list of planned reports using a button on a report page. The list can be
viewed at /my/planned.
|
|
|
|
| |
This makes sure the correct dropdown is shown.
|
|\ |
|
| |
| |
| |
| |
| |
| | |
@scales does not include the hidden zoom levels, so we need to offset
the matrix ID to be correct in the URL but not do so to calculate the
tile row and column.
|
| | |
|
| |
| |
| |
| |
| | |
The config page is only accessible by superusers.
The stats page only shows figures for the user’s from_body unless superuser.
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
Superusers can set a user's from_body to any value, but a normal staff user
can only set another user's from_body to the same as their own or undefined.
This is presented in the UI as a 'staff' tickbox.
|
| |
| |
| |
| |
| |
| |
| |
| | |
The 'user_edit' permission is required to edit users.
The admin pages on UK council cobrands only allow editing of users whose
from_body is the same as the logged-in user, or who have sent reports or updates
to the council.
|
|/ |
|
| |
|
|
|
|
|
| |
This lets you choose to e.g. minimize JS files during a deploy, without
making it mandatory as with the CSS.
|
| |
|
|
|
|
| |
Double quoted string is needed for $1 and $2 to not be used exactly.
|
| |
|
|
|
|
|
| |
The 'created' and 'state' column names are shared between the 'problem' and
'comment' tables, and this was causing ambiguous column references in the SQL.
|
| |
|
| |
|
|
|
|
| |
Fixes #306.
|
| |
|
| |
|
| |
|
|\ |
|
| |
| |
| |
| |
| | |
If they are absolute already, do nothing.
Switch a couple of uses to Path::Tiny as well.
|
|\ \
| |/
|/| |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This allows users who have the correct permissions to add reports on
behalf of the body or another user.
We enable editing of the email box by default, so that if JavaScript
isn't available, someone can still change the email for the 'another
user' option.
For mysociety/fixmystreetforcouncils#10 and
mysociety/fixmystreetforcouncils#11
|
| |
| |
| |
| | |
Also don't fetch tiles if running tests.
|
| |
| |
| |
| | |
Fixes #1313.
|
| |
| |
| |
| | |
Fixes #1461.
|
|/
|
|
|
|
|
|
| |
This allows multiple test suites to run simultaneously (beforehand, a
second run would overwrite the same config file and lose its database
connection).
Clean up the created config file on exit.
|
|\ |
|
| | |
|
|/
|
|
| |
This is a continuation of b45b29c8.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Design is all Zarino. This adds the ability to send HTML emails,
including attached inline images. When included, this is done as a
multipart/related email containing a multipart/alternative (of plain and
HTML) and any attached images, so that the images are available even if
HTML mail is not.
The alert emails list data has been improved so it can be constructed in
the templates rather than the code. Various templates have been tidied.
Various workarounds for email clients have been made, including:
* <th> is used so that the Android 4.x mail client can give them
`block` styling in the small screen media query.
* Font settings defined on every table cell (<th>) so that sans-serif
fonts are used in Outlook, rather than Times New Roman.
* A three-column wrapper table to create a 620px centred content area
that also shrinks down on narrow screens. (Outlook doesn’t like
max-width, so this is the simplest alternative.)
* Enforcing a sensible (500px) min-width for the main content area,
on clients that don’t support media queries (eg: native Gmail app).
* Giant borders on buttons so Outlook displays them
* Image alignment with align rather than float.
|
| |
|
| |
|
|
|
|
| |
(VERSION disappears in some recent version.)
|
|
|
|
|
| |
Also takes the opportunity to fix the incorrectly-encoded sender name which
was appearing to some clients as "Züri Wie Neu".
|
| |
|
| |
|