| Commit message (Collapse) | Author | Age | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This simplifies the page layout and code. We add a new #map_sidebar for
sidebar positioning, and a $mappage-header-height (defaulting to 4em)
variable. We no longer need:
* position_map_box;
* map_fix;
* special visual centre calculation; or
* custom pan zoom positioning.
As the sidebar now scrolls by itself and nothing can extend outside:
* The big-green-banner is set to 100% width (with negative margins no
longer required);
* For cobrands that have an overhanging sidebar (e.g. Zurich), we add
a .with-notes variant that adds a second column to the sidebar,
perfect for containing secondary notes about the form.
The resizing of the banner also required some tweaking to the size of
the chevron-white SVG images.
Update the $.fn.drawer() method for the new layout. Works well in IE7+8,
and degrades gracefully in IE6.
For IE7, we remove the existing z-index hacks, and put a new, simpler,
one in, and fix a CSS bug that was hiding the map.
Various cobrands are updated to adapt to the changes.
|
|
|
|
|
|
|
| |
Always centre the map on the new point when creating a new report. This
will be helpful when the map element can change width to accommodate the
.with-notes variant, is easier than the previous method, and feels very
natural.
|
| |
|
|
|
|
|
| |
We previously used !important to override them in the CSS, but better to
prevent them being set in the JavaScript in the first place.
|
| |
|
|
|
|
|
|
|
| |
Because the list of categories is reloaded when changing the location of an
in-progress report, it was possible for the category the user had selected
to be un-selected. This improves the situation by re-selecting that category
if it appears in the new list.
|
|
|
|
|
|
| |
If the list of reports was scrolled and then the map was clicked, the
form would be pre-scrolled down. It now makes sure to scroll the form
to the top. Fixes #787.
|
|
|
|
|
| |
This was added along with pin/sidebar highlighting in b71d042e,
but has proved distracting/confusing.
|
|
|
|
|
|
|
| |
It turns out the strategy was still firing even with correctly rounded
co-ordinates from getMapBounds, as there were still rounding errors
introduced by the two differing ways of calculating the map bounds. We
override one function to always equal the results of the other method.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Hovering over map pins highlights the relevant item from the
sidebar beside the map. And hovering a sidebar item highlights
the relevant map pin.
Clicking a map pin takes you directly to the relevant report
page, just like clicking an item in the sidebar.
This means the OpenLayers popup "balloon" no longer appears on
clicking a pin, and has been removed entirely.
To make customisation of the list item hover colour easier,
it has been abstracted out into a SCSS variable that cobrand
authors should override (as the fixmystreet.com cobrand does)
or leave at its default light grey colour.
Fixes #1094.
|
|
|
|
|
|
|
| |
This removes the on map/nearby tabs, replacing them with one combined
list. The styling is moved to the base, so that it is used on mobile
too. A closed option is added to the existing dropdown, and the
base/fixmystreet my templates are also combined. Fixes #1141.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
When the category dropdown is changed the map pins are re-requested
from the server with the correct category in the URL.
|
| |
|
|
|
|
| |
When zoomed out, a smaller icon is used to stop the map getting too overcrowded.
|
| |
|
|\ |
|
| | |
|
|/
|
|
|
|
| |
This reverts most of commit 71b400a1f5991b9a693095c417aa61e274a5215d,
leaving the skip-this-step CSS changes and the tweaks to the /ajax JSON
output.
|
|
|
|
|
|
|
|
| |
This changes the default flow to show no pins and a message about
reporting, with the second tab displaying existing problems (and showing
map pins). Those existing problems are the ones that would currently be
on "problems on the map" followed by those currently on "problems
nearby".
|
|
|
|
| |
Only if universal analytics turned on and on the fixmystreet cobrand
|
|
|
|
|
|
|
|
|
| |
New cobrand function of pin_path that sets the path to where the image
files for pins are located. Defaults to /i
This still means they need to use the same file names but they can at
least put those in a cobrand directory rather than having to overwrite
the files in /i or fudge it with pin_colour
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
better.
|
| |
|
| |
|
| |
|
|
|
|
| |
template.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
options the same.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|\
| |
| |
| |
| |
| |
| | |
Conflicts:
.gitignore
bin/make_css
perllib/FixMyStreet/Cobrand/FixMyStreet.pm
|
| |\
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Conflicts:
.gitignore
perllib/FixMyStreet/Cobrand/FixMyStreet.pm
perllib/FixMyStreet/Cobrand/UKCouncils.pm
templates/web/default/reports/council.html
templates/web/fixmystreet/header.html
templates/web/fixmystreet/report/display.html
web/cobrands/bromley/layout.scss
web/cobrands/fixmystreet/fixmystreet.js
web/js/map-OpenLayers.js
|
| | |
| | |
| | |
| | | |
very cluttered
|