| Commit message (Collapse) | Author | Age | Lines |
| |
|
| |
|
|
|
|
|
| |
This is the default value from lib/configuration.rb if they aren't set
and null values cause errors when .empty? is called on them.
|
| |
|
|
|
|
|
|
| |
Remove rake namespace - clashes with rake variable used in precompiling
assets. Make sure the symlinking and theme installation are done before
precompiling assets.
|
|
|
|
| |
It got lost in a previous merge.
|
|\ |
|
| | |
|
| | |
|
|/ |
|
|\ |
|
| | |
|
| | |
|
|/
|
|
| |
This will be cached, so we don't want to use versioned asset references.
|
|
|
|
|
|
| |
Rubygems 2.2.0 appears to have dropped support for ruby 1.8.7 - the
immediate problem for us is that there are errors in building the
charlock_holmes gem.
|
|\ |
|
| | |
|
| |\
| | |
| | |
| | | |
ssh://git.mysociety.org/data/git/public/alaveteli into release/0.16
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This is required by our switch to timestamped-based deploys. There
are certain files and directories (e.g. cache, the Xapian databases,
generated graphs) that should be shared between deployments,
rather than recreating them when creating the next deployment in
a new directory.
This script should be run as a one-off before switching an
instance to using timestamped deploys, to ensure that the existing
data is stored in the shared subdirectory of the vhost directory,
so that any future deployment can simply create symlinks into the
shared directory.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This is to support sharing various files between multiple deployments
of Alaveteli. If you have set SHARED_FILES_PATH, SHARED_FILES and
SHARED_DIRECTORIES then the rails-deploy-before-down script will ensure
that a symlink is created from each of the files or directories
mentioned in SHARED_FILES and SHARED_DIRECTORIES to a corresponding
path within SHARED_FILES_PATH.
|
| | | |
|
| | | |
|
| |/ |
|
| | |
|
| |\
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Conflicts:
Gemfile.lock
app/views/layouts/default.html.erb
config/application.rb
public/admin/stylesheets/admin.css
|
| | |
| | |
| | |
| | | |
We've removed it from whatdotheyknow-theme
|
| | |
| | |
| | |
| | | |
banner is inside entirebody.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Move HTML to view from controller, use same elements for other country
popup and everypage - partly so they don't display on top of each other
anymore. Don't position them over existing content, position them at the
top of the page. Use consistent styling, and keep the javascript
unobtrusive.
|
| | | |
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | | |
Should resolve #1233
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This is a fix for issue #1232. Richard Taylor pointed
out that some PDF attachments had the non-standard content-type
document/pdf, and that these weren't being treated as PDFs.
(Ganesh Sittampalam discovered that all of these PDFs were
generated by a Lexmark X945e, according to the PDF metadata.)
This commit adds an extra case to normalise_content_type to map
document/pdf to application/pdf.
In fact, since the upgrade of the Mail gem in ccebe3c3d6d4dc5f81
the behaviour when handling the non-standard content-type
document/pdf was much better, but this commit also means that
you get the right icon for the attachment, and can be
cherry-picked onto older versions to fix #1232.
|
| | |\
| |_|/
|/| |
| | |
| | | |
Conflicts:
Gemfile
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
This was the previous behaviour. Setting it explicitly avoids a
deprecation warning.
|
| | | |
|
| | |
| | |
| | |
| | | |
Update our session-stripping code.
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
We're trying to switch to an upstream version of globalize, which now
has Henare's change to allowed blank values without them being
converted to nil - however, there is another intermediate change that
was introduced which means that the name is only written back to the
original table if the locale matches the default locale. This is
described in more depth here:
globalize/globalize#183
This change broke the make_single_language_example helper, but this
commit fixes that by also setting the default locale before creating
the example public bodies.
|
| | | |
|
| | |\ |
|
| | | | |
|
| | |\| |
|
| | |\ \
| |_|/ /
|/| | |
| | | |
| | | | |
Conflicts:
lib/tasks/stats.rake
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
On WDTK, /body/all-authorities was using lots of memory - this
commit reduces that by (a) fetching the public bodies in batches,
rather than keeping them all in memory at one time and
(b) writing the CSV to a file and then returning it with
X-Sendfile (or equivalent), rather than returning the whole file
from memory with send_data.
There's a FIXME to do with the layout of download directories; if
that's changed, the example nginx config, etc. will need to be
updated too.
This commit also adds a basic test for reasonable CSV being
returned and switches from FasterCSV to CSV in order to fix this
NotImplementedError under Ruby 1.9:
Please switch to Ruby 1.9's standard CSV library.
It's FasterCSV plus support for Ruby 1.9's m17n encoding engine.
(The CSV version seems to still work fine under 1.8.7.)
|
| | | | |
|
| | | |
| | | |
| | | |
| | | | |
Update our session-stripping code.
|
| | |\ \
| | | | |
| | | | |
| | | | | |
into wdtk
|