aboutsummaryrefslogtreecommitdiffstats
path: root/perllib
Commit message (Collapse)AuthorAgeLines
* Use config's EMAIL_DOMAIN in cron email Message-ID.Matthew Somerville2014-03-12-2/+2
| | | | Rather than hardcoded mysociety.org.
* Add test for de47a7f.Matthew Somerville2014-03-12-1/+1
| | | | | | This tests that the default string used by the old-style Open311 update code if there is no incoming string and the report is marked fixed, is translated.
* Merge remote branch 'origin/sweden-rebase'Matthew Somerville2014-03-11-13/+583
|\ | | | | | | | | | | | | Conflicts: bin/update-schema locale/sv_SE.UTF-8/LC_MESSAGES/FixMyStreet.po perllib/FixMyStreet/DB/Result/Body.pm
| * Make sure language is set before updating report.Matthew Somerville2014-03-11-0/+2
| | | | | | | | So that e.g. 'Closed by council' is translated.
| * Add `external_url' column to `body' table.Jon Kristensen2014-03-11-0/+3
| |
| * Alter Open311 description to only include English on FixMyStreet.Jon Kristensen2014-03-11-13/+12
| | | | | | | | This could be made cobrand-customisable in future.
| * Bring back open311-update-reports, GetUpdates.pm and getupdates.tJon Kristensen2014-03-11-0/+82
| | | | | | | | | | | | This commit reverses the "Remove unused Open311 GetUpdates code." commit. FixaMinGata, the Swedish FixMyStreet cobrand, is still using open311-update-reports.
| * Remove hardcoded Swedish translationsJon Kristensen2014-03-11-3/+3
| |
| * Move Swedish changes from Geocode/OSM.pm to Geocode/FixaMinGata.pmJon Kristensen2014-03-11-26/+214
| |
| * Fix "Statens vegvesen" bugJon Kristensen2014-03-11-3/+2
| | | | | | | | Fixes #4.
| * Added MapQuest/OSM attribution.Jonas Oberg2014-03-11-0/+4
| |
| * fixed search resultsRikard2014-03-11-41/+22
| | | | | | | | Now, instead of selecting a potentially bad result, it shows a list of results hashed together using the first three words in display_name.
| * Added link to service for commentsJonas Oberg2014-03-11-0/+2
| |
| * Updated to address square and parkJonas Oberg2014-03-11-4/+6
| |
| * Pushed fix for Göteborg cityJonas Oberg2014-03-11-2/+7
| |
| * Added hamletJonas Oberg2014-03-11-1/+2
| |
| * Updated with small bug fixesJonas Oberg2014-03-11-3/+12
| |
| * Updated address search to behave better.. I think.Jonas Oberg2014-03-11-2/+19
| |
| * Updated translations manuallyJonas Oberg2014-03-11-3/+3
| |
| * Updated headerJonas Oberg2014-03-11-0/+5
| |
| * Updated translation of datesJonas Oberg2014-03-11-0/+4
| |
| * Updated information for Swedish councilsJonas Oberg2014-03-11-0/+4
| |
| * Added Locale for sv_SE dirs and files, the cobrand perlfile and templatesRikard2014-03-11-1/+4
| |
| * Added Swedish locale dir and files, and also the Cobrand FixaMinGata ↵Rikard2013-09-05-0/+260
| | | | | | | | (Swedish version of fixmystreet in the making
* | Export reports as CSV on /dashboardHakim Cassimally2014-03-10-6/+104
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Provide a button to download the details and text of reports at the second "Look up" button on /dashboard. Provides acknowledged, fixed, closed dates by parsing updates. Fixes #692 (and mysociety/FixMyStreet-Commercial#399) Email is not shown, and name honours anonymous flag: as /dashboard is accessible to people who are from_body (who still do not see anon-users name and email in the FMS web app.) A basic test is provided as per Zurich's similar report.
* | Quash DBIC warnings re DateTime in dashboardHakim Cassimally2014-03-10-5/+11
| |
* | fix wrong diasmbig field for ChileDave Whiteland2014-03-07-1/+1
| |
* | add BellaVistaEnAccion: FMS SantiagoDave Whiteland2014-03-07-0/+33
| |
* | Cobrand 'hidden_categories' methodHakim Cassimally2014-03-05-0/+15
| | | | | | | | | | | | | | | | This deals with the issue of hiding a two_tier category for the Hart cobrand, without removing it for the whole of Hampshire, e.g. see https://github.com/mysociety/FixMyStreet-Commercial/issues/477 but is written as a generic extension to setup_categories_and_bodies as it may be generally useful.
* | [Hart] Guidance related to two_tier, e.g. HCCHakim Cassimally2014-03-05-3/+9
| | | | | | | | | | | | | | | | Guidance in prominent places (report, all reports, and message on confirming problem.) Should alleviate mysociety/FixMyStreet-Commercial#481 and mysociety/FixMyStreet-Commercial#485
* | [Hart] basic Hart cobrandingHakim Cassimally2014-03-05-0/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Originally copied from template of Bromley code, substituting logo, council ID, geolocation data, and renaming .scss variables etc. (NB: this was a bad idea. As per notes/cobranding.txt, should have started with less copying of files, as this required more cleanup. Bromley's code has some particularities, like smaller map, split First/Last name fields and so on. The current branch has been rebased to present a slightly idealised picture of the process.) (Includes contributions by @davea and @stevenday) * Some code cleanup and added is_two_tier * Add Hart-specific links to footer * Shift FMS nav out of the main header * Update styling to follow design more closely * Flip nav colours to better indicate links * Make header banner entire width of the page * Stretch footer bg to entire width of page * Add top-level nav links * Correct header height on mobile * Correct wording of top menu item * Remove FMS logo from top of page * Shift top level nav to correct position * Invert media query so IE8 displays header properly * hide folding triangle, as makes no sense on this cobrand * Some more renaming of Bromley to Hart * Treat Hart the same as Bromley in the JS * Whitespace/formatting fixes * Basic test for cobrand * Javascript #map_box fixes * Make sure #map_box is not in desk-only * ensure there is only single map (one .wrapper only) * colour tweaks * Fix example places (postcode, spelling) * Basic FAQ text * Set Zoom level 3 * CSS/HTML/JS tweaks removing Bromley customizations * Switch templates to put navigation in footer, as FMS.com does * remaining HTML/CSS changes for large map * replace favicon * move site-logo scss to one place * make small logo transparent
* | Merge branch 'issues/671-guidance-on-no-reports'Matthew Somerville2014-02-27-0/+3
|\ \
| * | Explanatory text/link on /my with no reportsHakim Cassimally2014-02-26-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Usually you won't get to "Your Reports" page without any content (reports or updates) but it's possible to do so, as we just discovered in a client meeting, logging into that page, and arriving on a screen of blank content with no guidance. This patch shows some text and a link to create a new report, if there aren't any problems/updates. Fixes #671
* | | Merge branch 'issues/677-open311-errors-on-comment-processing'Matthew Somerville2014-02-27-5/+7
|\ \ \
| * | | Fix uncommon Open311 errors on processing updates.Hakim Cassimally2014-02-27-5/+7
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes #677. The query to fetch the related alert sometimes: * retrieves no result, causing an error on $alert->id * retrieves multiple results, causing deprecation warnings (e.g. which may at some point become future errors in DBIC) This commit turns the resultset('DB::Alert')->find(...) into a search(...) and loops over the results, to suppress them.
* | | Make sure language is set early enough in email alert loop.Matthew Somerville2014-02-26-1/+2
| | | | | | | | | | | | | | | The call to set_lang_and_domain needs to happen before the first string is translated (the report state).
* | | Make sure bodies returned in consistent order.Matthew Somerville2014-02-25-1/+4
|/ /
* | Add links to user survey to emails, front page and confirmation pagesStruan Donald2014-02-18-0/+14
| | | | | | | | | | | | | | | | Use the cross sell function to put an 'advert' for the survey on the various confirmation pages Create new alert email templates for fixmystreet co-brand so we can include the survey link on those alone All as one commit for ease of reverting when the survey is done.
* | Send staging reports to reporter, not contact address.Matthew Somerville2014-01-30-1/+1
| | | | | | | | Fixes #653.
* | Don't update problem state from service request if currently hidden.Matthew Somerville2014-01-30-1/+3
| |
* | [Bromley] Reduce update character limit to 1750.Matthew Somerville2014-01-30-4/+6
| | | | | | | | Following on from f117167 (and fixing comment from that commit).
* | Default lastname of '-' if none found.Matthew Somerville2014-01-14-0/+1
| |
* | [Bromley] Reduce detail field character limit to 1750Chris Mytton2014-01-14-2/+3
| | | | | | | | | | | | | | | | "The length of 2000 characters is causing some issues in the underline back office application." Updated to include a comment making it (hopefully) clearer which council this is for - thanks @davewhiteland!
* | [Zurich] admin template to respect closed_overdueHakim Cassimally2013-12-20-2/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | This value is now cached, but the template calls the function, calculating it anew, so for old reports (closed within SLA) the problem_row.html template showed these as overdue. Instead, we point the template at a function which first checks the cached value. (Attempting to roll this functionality into the .overdue() method itself caused a fair amount of collateral test breakage, and it seems safest to extract the caching function for now.) Closes https://github.com/mysociety/FixMyStreet-Commercial/issues/462
* | Merge branch 'issues/commercial/461-zurich-export-hidden-stats'Hakim Cassimally2013-12-17-1/+1
|\ \
| * | [Zurich] stats export include 'hidden'Hakim Cassimally2013-12-17-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | See https://github.com/mysociety/FixMyStreet-Commercial/issues/461 Again, we just need to substitute the %params line (which elides hidden reports) for the less restrictive %date_params. This commit includes very basic tests for the previously untested ?export=1 functionality.
* | | Test for admin_base_url in RS::ProblemHakim Cassimally2013-12-17-1/+6
| | | | | | | | | | | | | | | Test that the slash is added in correct place (the base URL should not have its own trailing slash).
* | | Rationalise trailing slashes from admin_base_urlHakim Cassimally2013-12-11-5/+5
|/ / | | | | | | | | | | Remove from admin_base_url (which wraps config vars like {ADMIN_,}BASE_URL) and add to places in code which aren't expecting it.
* | [Zurich] also allow hidden reports for closed_overdueHakim Cassimally2013-12-10-1/+1
| |
* | [Zurich] fix moderated statistics to include hiddenHakim Cassimally2013-12-10-1/+1
| | | | | | | | | | | | As per comments after testing mysociety/FixMyStreet-Commercial#459, the business logic of the actual state changes is fine, but the stats do also then need to include hidden records.