aboutsummaryrefslogtreecommitdiffstats
path: root/app/views
Commit message (Collapse)AuthorAgeLines
* Add (and use) minified versions of the Flot JavascriptMark Longair2013-10-15-1/+1
|
* Make bars in public body statistics charts clickableMark Longair2013-10-15-2/+2
| | | | | | | | | Now if you click on the bar representing statistics for a particular public body, it will take you to that public body's page. In addition, the bars are highlighted when you hover over them.
* Rotate labels on the x-axis by 90 degreesMark Longair2013-10-15-1/+1
| | | | | | This commit adds the tickrotor extension to Flot, which allows rotated labels for public bodies. This extension is licensed under either MPL 1.1, GPL 2.0 or LGPL 2.1.
* Update flot to a development versionMark Longair2013-10-15-1/+1
| | | | | | This updates flot to version 0c2f6e3, which should be shortly before the release of 0.8.2. This is required for the tickrotor extension (allowing rotated public body names on the x-axis).
* Add some translator's notes on the use of 'follow up'.Louise Crow2013-10-04-2/+10
|
* Merge remote-tracking branch 'origin/radio-button-fix' into rails-3-developLouise Crow2013-10-04-1/+1
|\
| * Fix a radio button label when updating a request statusMark Longair2013-10-01-1/+1
| | | | | | | | | | | | | | | | | | | | | | Clicking on the "This request requires administrator attention" label would actually select the "I've received an error message" option due to the label referring to the wrong input element. This change corrects the label. Thanks to Jedidiah Broadbent for spotting this bug. Fixes #1113
* | Remove important termsLouise Crow2013-10-04-3/+0
| | | | | | | | | | | | These are only being rendered into a comment, and have been for a long time. They now appear to be causing problems with non-ascii characters in ruby 1.9, so drop them completely.
* | Fix typorelease/0.14Louise Crow2013-09-24-1/+1
| |
* | Make favicon its own partialLouise Crow2013-09-18-1/+2
| | | | | | | | | | This is something you should be able to override without having to take on the maintenance of your own layout.
* | Merge branch 'feature/hide-individual-responses' into rails-3-developLouise Crow2013-09-17-225/+273
|\ \ | |/ |/| | | | | | | | | | | | | | | | | Conflicts: Gemfile app/views/admin_request/edit_outgoing.html.erb config/packages doc/CHANGES.md doc/INSTALL.md spec/models/info_request_spec.rb spec/models/public_body_spec.rb
| * Point admin link to incoming message admin interface.Louise Crow2013-09-16-1/+2
| | | | | | | | | | | | Add the 'Actions' to the incoming message admin - now that this has both this and the prominence form, it seems like the logical place to link to from the main request page.
| * Add public criteria for message event access methodsLouise Crow2013-09-16-1/+1
| | | | | | | | | | | | | | get_last_response_event and get_last_outgoing_event are used in various places to determine which events to link to, use in queries etc. Restrict them to refer to the last publicly visible event of the relevant type, and rename them to make that clear.
| * Hide hidden outgoing messages in download.Louise Crow2013-09-16-4/+8
| |
| * Add prominence fields and cache expiry to outgoing adminLouise Crow2013-09-16-3/+21
| |
| * Add hidden messages for outgoing message.Louise Crow2013-09-16-29/+35
| | | | | | | | | | | | Conflicts: app/views/request/_incoming_correspondence.html.erb
| * Create MessageProminence module.Louise Crow2013-09-16-1/+1
| | | | | | | | | | | | At least some of the logic for incoming and outgoing message prominence is going to be identical, so move it to a module they can both include and use.
| * Restore the download for hidden requestsLouise Crow2013-09-16-2/+0
| | | | | | | | | | | | This was disabled for hidden requests as the download was by redirect, allowing people who have not been authenticated to conceivably access the download. We'll be moving to send_file instead, so can restore it.
| * Move display text generation to outgoing message.Louise Crow2013-09-16-3/+1
| |
| * Remove hidden incoming messages from correspondence.txtLouise Crow2013-09-16-45/+44
| | | | | | | | | | | | | | Adds a spec for what we want to see - no message text in correspondence.txt, and no attachments. Refactors the simple_correspondence templates to make it clearer that these are doing the same job as the html.erb ones, for text.
| * Split up translated messages.Louise Crow2013-09-16-2/+5
| | | | | | | | | | | | | | | | | | Each part is a separate sentence, and we're going to reuse some of them in the text view. Conflicts: spec/integration/view_request_spec.rb
| * Move a couple of complex conditionals to helper methods.Louise Crow2013-09-16-2/+2
| | | | | | | | We're about to reuse them for the text view.
| * Remove unused param.Louise Crow2013-09-16-1/+1
| | | | | | | | | | | | Conflicts: app/views/request/_incoming_correspondence.html.erb
| * Extract out code for making a request summary fileLouise Crow2013-09-16-19/+26
| | | | | | | | | | | | | | | | | | | | | | | | Render the show template within the current thread rather than making another request - we're going to need to use the current session in order to know what do include in the zip file, now that we have more fine-grained visibility of messages. Also, this will mean we can use this functionality in single threaded contexts, and test it more easily. Don't display profile photos as this would require another process, and hide other icons so we don't need to include them. Use render_to_string as a more standard way of rendering templates to a string for further manipulation.
| * Extract the various info_request assignsLouise Crow2013-09-16-1/+1
| | | | | | | | | | | | So we can reuse them when rendering the show template to a file. Lots of the sidebar prep isn't going to be needed for that view, so make that optional in the template.
| * Add new code and specs for hiding attachments.Louise Crow2013-09-16-10/+15
| |
| * Handle the case of an empty string in the prominence_reason.Louise Crow2013-09-16-3/+3
| | | | | | | | | | | | | | | | | | This will happen if the prominence has been changed in the admin interface but no reason has been filled in. Conflicts: app/views/request/_incoming_correspondence.html.erb
| * Link to the new incoming message edit form.Louise Crow2013-09-16-1/+6
| | | | | | | | From the request admin page.
| * I don't think there's any need to refind incoming messages.Louise Crow2013-09-16-1/+1
| | | | | | | | The order is the same as the default association.
| * Use new partial for incoming message admin boilerplate.Louise Crow2013-09-16-5/+1
| |
| * Add a simple edit action and templateLouise Crow2013-09-16-0/+28
| |
| * Shorter route names and pathsLouise Crow2013-09-16-6/+6
| |
| * Move outgoing message admin actions to their own controller.Louise Crow2013-09-16-0/+0
| | | | | | | | Eventually this should use standard RESTful routing.
| * Remove unused hidden correspondence template.Louise Crow2013-09-16-33/+0
| |
| * Add prominence reason.Louise Crow2013-09-16-4/+15
| | | | | | | | | | | | | | | | | | | | Conflicts: app/views/request/_incoming_correspondence.html.erb Conflicts: spec/integration/view_request_spec.rb
| * Add messages for hidden and requester_only states.Louise Crow2013-09-16-15/+35
| | | | | | | | Different messages for normal user, requester and admin user.
| * Refactor correspondence template into partials.Louise Crow2013-09-16-81/+63
| |
| * Remove prominence.Louise Crow2013-09-16-1/+1
| | | | | | | | | | | | | | Add a migration to remove the unused column 'prominence' from info_request_events, remove validation of prominence, remove unused InfoRequestEvent.user_can_view? method. Remove references to InfoRequestEvent.prominence.
* | Merge branch 'body-statistics' into rails-3-developLouise Crow2013-09-04-0/+75
|\ \
| * | Add some caveats to the experimental statistics pageMark Longair2013-08-20-0/+38
| | | | | | | | | | | | | | | | | | | | | The statistics we're publishing are potentially subject to misinterpretation, so add some warnings about their experimental nature. Also, add a note crediting Mark Goodge for his useful work on statistics for WhatDoTheyKnow.
| * | Refactor calculation of statisticsMark Longair2013-08-20-14/+18
| | | | | | | | | | | | | | | | | | Move the calculation of statistics on public bodies into the PublicBody model, so that there's less logic in the controller.
| * | Add excanvas for support of graph-drawing on IE8 and beforeMark Longair2013-08-20-0/+1
| | | | | | | | | | | | This is as suggested in the Flot documentation.
| * | Add a page with experimental statistics on public bodiesMark Longair2013-08-20-0/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The statistics on the status of the requests to a particular public body are too slow to calculate on-the-fly, so this commit adds: * Extra columns on public_bodies to store counts of the successful, not held, and overdue request counts for each public body. * A rake task which should be run periodically to update the overdue request count column. If Javascript is not available, the summary statistics are shown as tables. If Javascript is available, graphs are drawn with Flot.
* | | Merge remote-tracking branch 'origin/admin-js-static' into rails-3-developLouise Crow2013-08-28-90/+0
|\ \ \
| * | | Serve admin.js as a static fileMark Longair2013-08-21-90/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | admin.js was being generated from a view so that the config variable ADMIN_PUBLIC_URL could be used to direct AJAX requests in the admin interface correctly. ADMIN_PUBLIC_URL was necessary for WhatDoTheyKnow when the admin interface was proxied over SSL, while the rest of the site was non-SSL. Now that the whole site is served over SSL, however, the proxy for the admin interface is not longer used and ADMIN_PUBLIC_URL / ADMIN_BASE_URL have been removed. As a result, admin.js is now being generated from a Rails view unnecessarily, and at some performance cost. This commit moves admin.coffee and admin.js to the public directory, so they will be served more efficiently. In addition, this commit removes admin.coffee / admin.js from public/javascripts/ where there was a second (and different) version that now appears to be unused.
* | | | Merge branch 'feature/restore-unobtrusive-js' into rails-3-developLouise Crow2013-08-22-3/+2
|\ \ \ \ | |/ / / |/| | |
| * | | Add confirmation to outgoing messsage destroy.Louise Crow2013-08-22-2/+1
| | | | | | | | | | | | | | | | Closes #1053.
| * | | Include unobtrusive js in the admin layoutLouise Crow2013-08-22-1/+1
| |/ / | | | | | | | | | We use the :confirm option of the submit_tag helper. Fixes #1042.
* / / Handle case of nil user_idLouise Crow2013-08-20-1/+1
|/ / | | | | | | When status was updated by a script.
* / Use raw on select_tag option string so it doesn't get escaped. Fixes #1027.Louise Crow2013-07-31-2/+2
|/