| Commit message (Collapse) | Author | Age | Lines |
|
|
|
|
|
| |
http://rubygems.org/gems/fancybox-rails
Provides better asset pipeline integration.
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
If a request is made and path is something like /%d3 we rescue this with
a custom 404 template.
This gets unescaped as {"path"=>"\323"}.
In the case of a RouteNotFound, ApplicationController#render_exception
renders the general/exception_caught template in to the default layout,
which renders the general/_locale_switcher partial.
This partial calls url_for – sending the full params hash as the
argument – so that a user may return to the existing page in their
chosen locale.
The problem is that url_for tries to construct the url with the hash
{:action=>"not_found", :controller=>"general",
:path=>"\323"}.
ApplicationController#sanitize_params re-encodes the path parameter so
that it can be passed through to url_for without trouble.
|
| | |
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | | |
Intercepts the request and redirects to the homepage if the comment
field is filled in on the contact form.
|
| | |
| | |
| | |
| | |
| | | |
- Actually assert something when getting the pages
- Use named route
|
| | | |
|
| | | |
|
|\ \ \
| |_|/
|/| | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Current positioning forces it to overlap the sidebar, which:
- Looks messy due to the opacity
- Covers potentially useful information
- Puts the close icon further away if the box was opened in error
This commit positions it to the left of the link-to-this anchor icon,
which seems to conveniently fit in to the whitespace left by the signing
off of the correspondence.
|
|/ /
| |
| |
| |
| |
| |
| |
| | |
Fixes the link-to-this popup box rendering at the bottom left of the
page.
Introduced by f91d66d42f517f778cac130466b7cffc7fd8b085 as we rely on
jQuery UI's position method http://api.jqueryui.com/position
|
|\ \
| |/
|/| |
|
|/
|
|
|
|
|
|
|
|
|
|
| |
Factories are loaded automatically from:
- test/factories.rb
- spec/factories.rb
- test/factories/*.rb
- spec/factories/*.rb
Keeping factories per-model helps navigation, especially when they get
more complex with traits and inheritance.
|
|\ |
|
| |
| |
| |
| | |
Get the canonical human-readable status of a comment
|
| | |
|
| | |
|
|/
|
|
| |
The UI provides a list of comment_ids and a newstate="visible" or "hide"
|
|\ |
|
| |
| |
| |
| | |
Closes #1313 and #365.
|
| |
| |
| |
| | |
The InfoRequest is always the one associated with the event.
|
| |
| |
| |
| | |
Text will be escaped by default in Rails 3
|
|\ \
| | |
| | |
| | | |
rails-3-develop
|
|/ / |
|
| | |
|
| | |
|
|\ \
| | |
| | |
| | | |
'opennewzealand_github/feature/handle-undefined-conversion' into rails-3-develop
|
| | | |
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | | |
From: http://ruby-doc.org/core-2.0/String.html#method-i-encode
Ducktypes for having encode rather than relying on RUBY_VERSION
|
|\ \ \
| | | |
| | | |
| | | | |
ssh://git.mysociety.org/data/git/public/alaveteli into rails-3-develop
|
| |\ \ \ |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Extract checking whether a user is banned from making Comments on an
InfoRequest to a filter in CommentController.
Removes responsibility from the #new method.
Adds a missing spec.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Extract checking whether comments are allowed on an InfoRequest to a
filter in CommentController.
Removes responsibility from the #new method.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Use a before_filter to make @track_thing available to all filters
called on the same action and remove responsibility from the #new method
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Use a before_filter to make @info_request available to all filters
called on the same action
|
| |/ / /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Fixes https://github.com/mysociety/alaveteli/issues/662
If /annotate/request/:url_title is accessed when comments are disabled
an exception is incorrectly thrown.
Conditionals should be used for control flow, so now the action
redirects to the info_request path and displays a notice.
|
|\ \ \ \
| |/ / /
|/| | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
We only really want to redirect people to live sites, so pre-launch
sites don't belong in WorldFOIWebsites. Handle the case where the
current locale isn't there. Closes #1345.
|
|\ \ \ \ |
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Calling simple_date threw an exception as it uses a helper internally.
Only LinkToHelper is included in to the controller, so the underlying
helper was not available.
|
|/ / / / |
|
|\ \ \ \ |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
For a better workflow
http://mysociety.github.io/installation-standards.html#silver
# Host
# Note that --recursive must be specified to include commonlib
# submodule
$ git clone --recursive git@github.com:mysociety/alaveteli.git
$ cd alaveteli && vagrant up
$ vagrant ssh
# Guest
$ cd /home/vagrant/alaveteli && bundle exec rake spec
|