aboutsummaryrefslogtreecommitdiffstats
path: root/app
Commit message (Collapse)AuthorAgeLines
* Whitelist UserController#signup params0.19.0.3hotfix/0.19.0.3Gareth Rees2014-09-09-1/+5
| | | | Protects from mass-assignment exploit attempts
* Return a list of all cache directories for the requestLouise Crow2014-09-01-6/+11
|
* Use request dirs method.Louise Crow2014-09-01-2/+1
|
* Use path relative to Rails root.Louise Crow2014-09-01-1/+1
|
* Move method to model to make it more testable, add spec.Louise Crow2014-09-01-8/+8
|
* Reword View Requests to Browse Requests in navGareth Rees2014-08-21-3/+5
| | | | | | | User testing highlighted that it was easy to mistake "View Requests" for a Facebook-style wall rather than the list of all requests. [1] [1] https://github.com/mysociety/alaveteli/issues/1505
* Merge branch 'issues/1181-destroy-external-request' into rails-3-developGareth Rees2014-08-21-1/+2
|\
| * Interpolate rather than String#+Gareth Rees2014-08-18-1/+1
| | | | | | https://github.com/bbatsov/ruby-style-guide#concat-strings
| * Use different flash for fully_destroy external InfoRequestGareth Rees2014-08-18-1/+2
| | | | | | | | Uses a different flash message to avoid trying to fetch a non existent user record
* | Merge branch 'issues/1744-view-as-html-stylesheet' into rails-3-developGareth Rees2014-08-21-5/+4
|\ \
| * | Add charset to view-as-html stylesheet linksGareth Rees2014-08-18-5/+4
| |/
* / Add honeypot spam protection to body update formGareth Rees2014-08-21-0/+17
|/ | | | | Intercepts the request and redirects to the homepage if the comment field is filled in on the public body update form.
* Since e5a73815 excerpt requires a hash for optionsGareth Rees2014-08-12-2/+2
| | | | | | HighlightHelper#excerpt backports the Rails 4 excerpt which requires a Hash for the options parameter rather than globbing the remaining arguments.
* Use since_event_id to restrict query, not just data displayed.Louise Crow2014-08-11-16/+26
| | | | | Allow the same params (since_event_id, since_date) for both formats. There doesn't seem to be a particular reason not to treat them the same.
* Merge branch 'hotfix/0.18.0.11' into rails-3-developLouise Crow2014-08-05-1/+7
|\
| * Try a smaller min-height for smaller devices.0.18.0.11hotfix/0.18.0.11Louise Crow2014-08-05-0/+1
| |
| * Set height for IE7, don't use min-height for small devices.Louise Crow2014-08-05-1/+6
| | | | | | | | | | | | IE7 doesn't implement min-height, so force the iframe height. We don't want to set min-height for mobile as it's just a workaround for desktop browsers setting a too-small height.
* | Merge branch 'issues/1709-eager-load-for-api-speed' into rails-3-developLouise Crow2014-08-04-24/+11
|\ \
| * | Try some eager loading to speed up body_request_eventsLouise Crow2014-08-04-24/+11
| |/
* | Merge branch 'hotfix/0.18.0.10' into rails-3-developLouise Crow2014-07-30-1/+1
|\|
| * Add viewport to head when using responsive styles.0.18.0.10hotfix/0.8.0.10Louise Crow2014-07-29-1/+1
| |
* | Merge branch 'hotfix/0.18.0.9' into rails-3-developLouise Crow2014-07-29-1/+12
|\|
| * Don't use stylesheet_link_tags0.18.0.9hotfix/0.18.0.9Louise Crow2014-07-29-1/+12
| | | | | | | | There attachments will be cached, so we don't want timestamped references to stylesheets.
* | Merge branch 'hotfix/0.18.0.8' into rails-3-developLouise Crow2014-07-29-1/+3
|\|
| * Add min-height for iframe0.18.0.8hotfix/0.18.0.8Louise Crow2014-07-29-1/+3
| |
| * Use new status icon names (with old icons)0.18.0.4hotfix/0.18.0.4Louise Crow2014-06-09-22/+106
| | | | | | | | | | Defining the basic css for status icons here so that themes can just set colours and add their own icons.
* | whitespacelizconlan2014-07-28-31/+24
| | | | | | | | includes various code layout fixes
* | Sending an invalid state value to add_correspondence now aborts the entire ↵lizconlan2014-07-28-3/+12
| | | | | | | | operation
* | Refactor state update API, better error handlinglizconlan2014-07-28-51/+47
| | | | | | | | Filters; more 403s, fewer 500s; added logging; less duplication
* | Extend add_correspondence API method to optionally accept a state paramlizconlan2014-07-28-7/+22
| |
* | New API method for updating request statelizconlan2014-07-28-0/+34
| |
* | Don't display locale options when there's only one.Louise Crow2014-06-30-1/+1
| | | | | | | | Fixes bug introduced in 039fb5cc0f2965346ef23a4ba1b9d20f6cf73805
* | Merge branch 'issues/1415-bulk-update-public-bodies' into rails-3-developGareth Rees2014-06-25-51/+25
|\ \
| * | Move PublicBody domain logic from controllerGareth Rees2014-06-06-2/+5
| | | | | | | | | | | | | | | | | | Moves the magic 'site_administration' tag logic to the PublicBody model. Easier to make the string passed to `PublicBody#has_tag?` configurable if we want to allow this to be set per install.
| * | Extract public body CSV export to its own classGareth Rees2014-06-06-50/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - SRP: Do one thing. PublicBodyCSV converts a collection of bodies in to a CSV formatted String - Adds some parenthesis around parameters in PublicBodyController#list_all_csv - Let the controller handle what records to pull out for the CSV export Arguably this doesn't really need to be anything to do with PublicBody, but it allows us to set nice defaults.
| * | Remove FasterCSV dependencyGareth Rees2014-06-04-1/+0
| | | | | | | | | | | | The last remaining usage was removed in c1ee22fe
* | | Handle unhelpful stemmingGareth Rees2014-06-25-2/+10
| | | | | | | | | | | | | | | | | | | | | Stemming returns 'bore' as the word to highlight which can't be matched in the original phrase. Also removes duplicates from the results
* | | Add spec for highlight_and_excerptGareth Rees2014-06-25-0/+1
| | |
* | | Use regex based highlightingGareth Rees2014-06-25-15/+20
| | |
* | | Add helper to highlight and excerpt by regexGareth Rees2014-06-25-19/+95
| | | | | | | | | | | | | | | | | | | | | Backport of https://github.com/rails/rails/pull/11793/ Contains integration tests to check that it works as expected with ActsAsXapian.
* | | Merge branch 'rails-3-develop' of ↵Louise Crow2014-06-16-130/+159
|\ \ \ | | | | | | | | | | | | ssh://git.mysociety.org/data/git/public/alaveteli into rails-3-develop
| * \ \ Merge branch 'replace-xxx-todo' into rails-3-developGareth Rees2014-06-16-61/+61
| |\ \ \
| | * | | Rename XXX comments with TODO:Gareth Rees2014-06-10-61/+61
| | | | | | | | | | | | | | | | | | | | Picks these up in `rake notes` and adds semantic meaning
| * | | | Merge branch 'issues/788-notification-email-cache-buster' into rails-3-developGareth Rees2014-06-16-69/+98
| |\ \ \ \
| | * | | | Remove DateTimeHelper#year_from_dateGareth Rees2014-06-05-16/+2
| | | | | | | | | | | | | | | | | | | | | | | | DateTime, Date and Time all have #year methods
| | * | | | Minor tidying of DateTimeHelper and specsGareth Rees2014-06-05-4/+4
| | | | | |
| | * | | | Add specs for DateTimeHelper#simple_timeGareth Rees2014-06-05-1/+11
| | | | | |
| | * | | | Add specs for DateTimeHelper#year_from_dateGareth Rees2014-06-05-1/+11
| | | | | |
| | * | | | Move date helpers to DateTimeHelperGareth Rees2014-06-05-62/+66
| | | | | |
| | * | | | Remove duplication from new correspondence urlsGareth Rees2014-06-05-12/+27
| | | | | |