aboutsummaryrefslogtreecommitdiffstats
path: root/web
Commit message (Collapse)AuthorAgeLines
...
* [fixmystreet.com] Factor out poster JavaScript.Matthew Somerville2016-08-16-0/+29
|
* Factor out most inline JavaScript.Matthew Somerville2016-08-16-10/+71
| | | | | No need for a special no-map case in the filters case, as all pages now have fixmystreet.page set if needed.
* Do HTML class and JS variable setting ASAP.Matthew Somerville2016-08-16-6/+19
|
* Use separate mobile banner HTML to simplify changeMatthew Somerville2016-08-16-33/+25
|
* Split up modernizr/html5shiv/yepnope.Matthew Somerville2016-08-16-2/+8
| | | | | We only need html5shiv for <IE9, and we only use yepnope on the front page.
* Only set Back link when first report pulled in.Matthew Somerville2016-08-16-3/+4
| | | | | Otherwise subsequent report views set the Back link to a report URI, so clicking it goes back to the list but with an incorrect address.
* Fix "Problems nearby" link on /my and /reports.Matthew Somerville2016-08-10-1/+5
| | | | | Problems nearby should load the /around page from those pages, rather than act like "Back to all reports" but changing to an incorrect URL.
* Feature to create report as body/other user.Zarino Zappia2016-08-10-0/+28
| | | | | | | | | | | | 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
* [fixmystreet.com] Replace councils page with temporary pageMartin Wright2016-08-02-458/+33
| | | | | | Temporarily removes the councils page as the information was out of date. Replaces it with a holding page. New page is on the way.
* [East Sussex] Remove East Sussex cobrandDave Arter2016-08-02-482/+0
|
* [UK Councils] Email themes for 4 UK councilsZarino Zappia2016-08-01-0/+0
| | | | Email themes for Oxfordshire, Bromley, Warwickshire, and Greenwich.
* Add HTML email templates.Matthew Somerville2016-08-01-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* Work correctly for alt-click/cmd-click etc.Matthew Somerville2016-07-14-3/+39
|
* Only set document.title after any pushState call.Matthew Somerville2016-07-14-2/+2
| | | | pushState stores the title at the time for e.g. the Back dropdown.
* Call two more set up functions on report pull.Matthew Somerville2016-07-13-1/+2
| | | | | This is so form valdation and the 'log in by email' button are set up appropriately if pulled in via JavaScript.
* Don't set up multiple handlers on drawers.Matthew Somerville2016-07-13-1/+3
|
* Fix issues with sub_map_links and JS navigation.Matthew Somerville2016-07-12-8/+18
| | | | | Have 'Get updates' displaying correctly on a report page again, fix some navigational problems.
* Fix going back to /reports page on mobile.Matthew Somerville2016-07-12-9/+13
| | | | | | Record the original page we're at, so that when we go back to it, we go back to the right one (the only difference between /around and /reports being the full screen map of /around).
* Zoom into map after second click on marker.Matthew Somerville2016-07-12-0/+7
|
* Make sure mobile map scrolled into view and fixed.Matthew Somerville2016-07-12-2/+12
| | | | | This prevents scrolling when we're on the full screen map, and makes sure the map is back in view when it is shown.
* Only create popstate event after page load.Matthew Somerville2016-07-12-28/+34
| | | | | Some older browers will fire a popstate event at page load, which can cause an issue if we assume it's only fired due to a history event.
* Fix a few JavaScript issues with reports pages.Matthew Somerville2016-07-12-1/+7
| | | | | | | Don't stringify pin problem ID, as get_marker_by_id assumes it will be an integer; only activate the bounding box strategy if it exists; make sure a refresh of the markers happens when going back to the list; set the Back link on a pulled-in report to the current URL.
* Tweak WMTS JavaScript to match merged branch.Matthew Somerville2016-07-11-16/+13
| | | | Use $.each rather than .forEach.
* Merge branch '1351-report-list-ajax'Matthew Somerville2016-07-11-1488/+1771
|\
| * [fixmystreet.com] Update share buttons to be linksMatthew Somerville2016-07-11-4/+15
| | | | | | | | | | Having them as SDK-included buttons causes issues with the ajax report pull-ins, plus Firefox doesn't like them being hidden.
| * Merge two fixmystreet.js file.Matthew Somerville2016-07-11-208/+201
| |
| * Add history polyfill for <=IE9.Matthew Somerville2016-07-11-1/+38
| |
| * Fix map page popstate / mobile nav menu bugZarino Zappia2016-07-11-1/+15
| | | | | | | | | | | | | | | | | | | | | | Previously, pressing the mobile menu icon would change the location hash, which fired a history popstate event with an empty state object, causing trouble for our map page JavaScript. Now, pressing the mobile menu icon triggers a pushState, instead of changing the location hash. This means our map page popstate logic is unaffected, but mobile users can still use their browser's Back button to escape out of the mobile menu.
| * Move to using pushState for new report.Zarino Zappia2016-07-11-82/+96
| | | | | | | | | | Update the URL whenever location of pin is updated (first time, drag, or reclick), make sure it works when clicking back.
| * Fix top of content display if scrolled previously.Matthew Somerville2016-07-11-1/+2
| |
| * Load in report details on around page via ajax.Zarino Zappia2016-07-11-37/+270
| | | | | | | | | | | | | | | | | | | | | | Include URL changing, using history.pushState. Show a larger marker icon for the selected report. Make sure title is updated, and correct sub_map_links are shown. The /report/new template is now wrapped in a <div id="side-form"> rather than <div id="side"> for consistency with the /around page, which keeps display_all_reports_in_area() simpler, because it can always assume "#side" means "list of reports".
| * Simplify "rap-notes" visibility togglingZarino Zappia2016-07-11-44/+42
| | | | | | | | | | On mobile, the notes in `#report-a-problem-sidebar` are hidden by default, and can be toggled using the `.rap-notes-trigger`.
| * Edge case fixes for window resizes mid process.Matthew Somerville2016-07-11-3/+3
| |
| * Only match the actual ID, not same-ending others.Matthew Somerville2016-07-11-2/+2
| |
| * Increase opacity a bit on non-hovered pins.Matthew Somerville2016-07-11-1/+1
| |
| * Tidy up JavaScript functions.Matthew Somerville2016-07-11-1231/+1203
| | | | | | | | Split big functions into smaller more descriptive ones.
| * Move most JavaScript mobile map changes to CSS.Zarino Zappia2016-07-01-36/+46
| |
* | [East Herts] Cobranded frontendDave Arter2016-07-08-0/+317
| | | | | | | | For mysociety/FixMyStreet-Commercial#773.
* | [Zurich] Use new LV95/CH1903+ geocoder and base map tilesDave Arter2016-07-07-255/+203
| | | | | | | | | | | | | | | | | | | | | | - Use new `getLocation95` method for geocoding addresses - Replace Coordinates::CH1903 with Coordinates::CH1903Plus - Refactor Map::Zurich to use WMTSBase instead of duplicating code - Slightly refactor map templates to make using custom WMTS tiles easier - Use correct sizes for marker pins on maps Closes mysociety/FixMyStreet-Commercial#769. Closes mysociety/FixMyStreet-Commercial#768.
* | [Oxfordshire] Use relative image paths in CSS.Matthew Somerville2016-07-06-13/+13
| |
* | Remove need to customise OpenLayers built script.Matthew Somerville2016-07-04-366/+451
| | | | | | | | | | This also allows the map to work in a proxied admin. Upgrade Angus OL to master branch code.
* | Make sure map JS works through an admin proxy.Matthew Somerville2016-07-04-12/+9
| | | | | | | | | | Tidy up use of absolute URLs when in the admin. Have the 404 handler spot static files in admin as a fallback.
* | Use static files for validation_rules.js.Matthew Somerville2016-07-04-0/+13
|/ | | | | No need for this to be generated via a template, it only differs occasionally by cobrand.
* Merge branch '1347-fold-back-zurich'Matthew Somerville2016-06-29-18/+42
|\
| * Improve admin report edit page.Matthew Somerville2016-06-29-18/+42
| | | | | | | | | | Show map, break into two columns, fix display of sent time after clicking "Mark as sent", tidy up labels.
* | [Harrogate] Update to match harrogate.gov.uk designDave Arter2016-06-28-121/+842
| | | | | | | | Closes mysociety/FixMyStreet-Commercial#779
* | Reinstate missing margin before reporting form email inputZarino Zappia2016-06-24-10/+24
| | | | | | | | | | | | | | | | | | | | | | | | `.form-box--logged-in-name` has no preceding heading, which meant the grey box background was colliding with whatever content happened to go before it. We add some margin, and while we’re at it, remove the extra margin-top on first-child labels (unnecessary, since .form-boxes have their own padding) and tidy up the syntax of the .form-box rule set. Fixes #1418.
* | Remove default box-shadow from .content and asideZarino Zappia2016-06-24-73/+24
|/ | | | | | | Fixes #1419. We also standardize on using `@include box-shadow()` where possible, and clearing out lots of now unnecessary box-shadow resets.
* [Zurich] Fix admin report page with base changes.Matthew Somerville2016-06-22-4/+12
| | | | Add missing class on updates.
* Patch Dropzone to correctly orient preview images.Matthew Somerville2016-06-20-2/+190
| | | | | | Include a patch file, applied to Dropzone as of version e524e03c, that also includes our previous Opera patch from 445e9a3d. The new minified file is our cut-down exif.js plus the patched dropzone.js.