Commit message (Collapse) | Author | Age | Lines | |
---|---|---|---|---|
* | No need to set permissions on file now. | Louise Crow | 2013-09-16 | -1/+0 |
| | | | | | Either rails or the webserver will be sending it, we're not redirecting anymore. | |||
* | Add message index to attachment files | Louise Crow | 2013-09-16 | -1/+3 |
| | | | | | So that files attached to different messages with the same name and url_part don't get overwritten. | |||
* | Add public criteria for message event access methods | Louise Crow | 2013-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. | |||
* | Shorter way of getting text template. | Louise Crow | 2013-09-16 | -1/+1 |
| | ||||
* | Add prominence fields and cache expiry to outgoing admin | Louise Crow | 2013-09-16 | -4/+15 |
| | ||||
* | Move some download methods to InfoRequest. | Louise Crow | 2013-09-16 | -25/+7 |
| | | | | | | Use send_file to send zips. Also adds 'all_can_view_all_correspondence?' - is this request completely cachable, or do we need to cache different versions for different levels of privilege? | |||
* | Restore the download for hidden requests | Louise Crow | 2013-09-16 | -4/+4 |
| | | | | | | 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. | |||
* | Make sure that info_request gets assigned to the view | Louise Crow | 2013-09-16 | -2/+2 |
| | | | | | | This should be handled by assign_variables_for_show_template. Otherwise, the make_request_summary_file method shouldn't depend on instance variables | |||
* | Move zip file creation to its own method. | Louise Crow | 2013-09-16 | -16/+15 |
| | ||||
* | Remove hidden incoming messages from correspondence.txt | Louise Crow | 2013-09-16 | -1/+2 |
| | | | | | | | 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. | |||
* | Extract calculation of last update hash | Louise Crow | 2013-09-16 | -2/+1 |
| | ||||
* | Extract out code for making a request summary file | Louise Crow | 2013-09-16 | -26/+36 |
| | | | | | | | | | | | | 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 assigns | Louise Crow | 2013-09-16 | -9/+15 |
| | | | | | | 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. | |||
* | Reorder assigns | Louise Crow | 2013-09-16 | -12/+12 |
| | | | | | Split into those that come from request params and those that come from the model | |||
* | Add new code and specs for hiding attachments. | Louise Crow | 2013-09-16 | -1/+14 |
| | ||||
* | Add the meat of the update action. | Louise Crow | 2013-09-16 | -0/+19 |
| | ||||
* | Add a simple edit action and template | Louise Crow | 2013-09-16 | -0/+4 |
| | ||||
* | Add incoming message update action and route. | Louise Crow | 2013-09-16 | -0/+3 |
| | | | | | We'll use this for saving the changes to the prominence of an incoming message in a relatively RESTful url structure. | |||
* | Slightly nicer action names. | Louise Crow | 2013-09-16 | -2/+2 |
| | ||||
* | Move incoming message admin to its own controller. | Louise Crow | 2013-09-16 | -52/+54 |
| | | | | | Make specs that depend on multiple controllers and models interacting integration specs. | |||
* | Move outgoing message admin actions to their own controller. | Louise Crow | 2013-09-16 | -33/+36 |
| | | | | Eventually this should use standard RESTful routing. | |||
* | Remove unused line of code | Louise Crow | 2013-07-30 | -1/+0 |
| | ||||
* | Handle the case of a name that hits the character limits and has been ↵ | Louise Crow | 2013-07-29 | -2/+2 |
| | | | | suffixed with a number. | |||
* | Merge branch 'feature/similar-fixes' into rails-3-develop | Louise Crow | 2013-07-23 | -6/+0 |
|\ | ||||
| * | Change concatenated header and title strings to full, properly escaped ↵ | Louise Crow | 2013-07-22 | -6/+0 |
| | | | | | | | | strings that are available for translation. Fixes #1003. | |||
* | | Merge remote-tracking branch ↵ | Louise Crow | 2013-07-23 | -0/+10 |
|\ \ | |/ |/| | | | | | | | | | 'openaustralia_github/tests_set_described_state' into rails-3-develop Conflicts: spec/models/info_request_spec.rb | |||
| * | Now record a state_update event *whenever* a user classifies a request | Matthew Landauer | 2013-04-20 | -0/+10 |
| | | ||||
* | | Respond to a (currently unsupported) json request for a public body list ↵ | Louise Crow | 2013-06-20 | -1/+3 |
| | | | | | | | | with a 406, not a 500 caused by a missing template. | |||
* | | Add pagination to the list of requests on the admin page for a public body | Louise Crow | 2013-06-20 | -0/+3 |
| | | ||||
* | | Merge remote-tracking branch 'openaustralia_github/app_version_api_feature' ↵ | Louise Crow | 2013-06-18 | -1/+14 |
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | into rails-3-develop Conflicts: app/controllers/application_controller.rb app/controllers/general_controller.rb config/routes.rb | |||
| * | | Add publicly accesible json api to query alaveteli and ruby version. ↵ | Matthew Landauer | 2013-02-24 | -1/+9 |
| | | | | | | | | | | | | Implements #834 | |||
| * | | Extract method | Matthew Landauer | 2013-02-24 | -1/+6 |
| | | | ||||
* | | | Merge branch 'hotfix/0.11.0.13' into rails-3-develop | Louise Crow | 2013-06-17 | -1/+4 |
|\ \ \ | | | | | | | | | | | | | | | | | Conflicts: spec/mailers/outgoing_mailer_spec.rb | |||
| * | | | Explicitly set I18n.locale in set_gettext_locale in order to get Rails to ↵0.11.0.13hotfix/0.11.0.13 | Louise Crow | 2013-06-17 | -1/+4 |
| | | | | | | | | | | | | | | | | expire the template cache and trigger a lookup. | |||
* | | | | Merge commit '0.11.0.8' into rails-3-develop | Louise Crow | 2013-06-11 | -4/+1 |
|\| | | | ||||
| * | | | Cache a user's profile photo rather than repulling it each time.hotfix/0.11.0.8 | Louise Crow | 2013-06-11 | -0/+1 |
| | | | | ||||
| * | | | Only render the popup banner in the layout where it's actually used. | Louise Crow | 2013-06-11 | -4/+0 |
| | | | | ||||
| * | | | We're assuming feed urls without format suffixes should serve up atom/xml, ↵0.11.0.4hotfix/0.11.0.4 | Louise Crow | 2013-06-05 | -0/+3 |
| | | | | | | | | | | | | | | | | so ignore any format from content negotiation in favour of that default. | |||
* | | | | Allow the donation url to be configured. Closes #909. | Louise Crow | 2013-06-07 | -2/+12 |
| | | | | ||||
* | | | | We're assuming feed urls without format suffixes should serve up atom/xml, ↵ | Louise Crow | 2013-06-05 | -0/+3 |
| | | | | | | | | | | | | | | | | so ignore any format from content negotiation in favour of that default. | |||
* | | | | Remove support for theme stylesheet inclusion via template deprecated in ↵ | Louise Crow | 2013-06-05 | -6/+0 |
| | | | | | | | | | | | | | | | | version 0.5. Closes #972. | |||
* | | | | Merge branch 'release/0.11' into rails-3-develop | Louise Crow | 2013-06-04 | -13/+23 |
|\| | | | ||||
| * | | | Handle json requests for hidden info requests. | Louise Crow | 2013-06-03 | -12/+19 |
| | | | | ||||
| * | | | For non-HTML requests, just return the response code for now. | Louise Crow | 2013-06-03 | -1/+4 |
| | | | | ||||
* | | | | Merge remote-tracking branch ↵ | Louise Crow | 2013-06-04 | -19/+31 |
|\ \ \ \ | | | | | | | | | | | | | | | | 'openaustralia_github/more_info_on_report_request' into rails-3-develop | |||
| * | | | | User needs to choose a reason | Matthew Landauer | 2013-03-22 | -4/+12 |
| | | | | | ||||
| * | | | | Rename parameter used in routes and controller | Matthew Landauer | 2013-03-22 | -2/+2 |
| | | | | | ||||
| * | | | | Rename controller actions | Matthew Landauer | 2013-03-22 | -2/+2 |
| | | | | | ||||
| * | | | | Move reporting actions to their own controller | Matthew Landauer | 2013-03-22 | -22/+23 |
| | | | | | ||||
| * | | | | Extract method | Matthew Landauer | 2013-03-22 | -3/+1 |
| | | | | |