| Commit message (Collapse) | Author | Age | Lines |
... | |
| | | |
| | | |
| | | |
| | | |
| | | | |
On an unsuccessful update AdminPublicBodyHeadingsController and
AdminPublicBodyCategoriesController #update should render the #edit
action.
|
|/ / /
| | |
| | |
| | |
| | |
| | |
| | | |
On a successful update AdminPublicBodyHeadingsController and
AdminPublicBodyCategoriesController #update should redirect to the #edit
action rather than simply rendering the ‘edit’ template.
Fixes https://github.com/mysociety/alaveteli/issues/1977
|
| | |
| | |
| | |
| | |
| | | |
962357c tidied the translation but left the translation call (`_()`)
around the variable rather than the string literal.
|
| | |
| | |
| | |
| | |
| | |
| | | |
Further work on redesigning the request process [1] will reword these
lines, so don't make the translators do work for no gain.
[1] https://github.com/mysociety/alaveteli/issues/1526
|
|/ /
| |
| |
| |
| |
| |
| | |
Further work on redesigning the request process [1] will reword these
lines, so don't make the translators do work for no gain.
[1] https://github.com/mysociety/alaveteli/issues/1526
|
|\ \ |
|
| |/
| |
| | |
Prevents the pagination being squashed up against the window edge
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | | |
Move the “Can’t find an authority” actions on the
/select_authority page to the right of the search
results
|
| | |
| | |
| | |
| | |
| | |
| | | |
- Make it wider
- Add a placeholder
- Translate placeholder and title text
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
- Align indentation
- Use named path for form url
- Use %Q() to avoid string escaping
- Use :anchor option to link to help page section
- Use symbols for form tag names
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Clicking a search result now takes the user directly to the authority
show page.
Removes the step numbers from the headers as the show page interrupts
the flow and seems pointless to add workarounds in public_body/show just
for this.
|
|\ \ \ |
|
| | |/
| |/| |
|
|/ /
| |
| |
| | |
Shouldn't really 404 on an important/accessible URL
|
|\ \ |
|
| |/
| |
| | |
These will be moved to whatdotheyknow-theme
|
|\ \
| |/
|/|
| | |
rails-3-develop
|
| |
| |
| |
| |
| | |
Introduced in 4f501309ade230f65f4ba45e1d0161e89587d755 but no longer
needed as we don't proxy the admin interface.
|
| | |
|
|\ \ |
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
Makes TrackThing.track_type_description easier to understand and easier
to add new track types along with a description.
|
| | |
| | |
| | |
| | |
| | |
| | | |
Faster (0.2ms vs 9.3ms)
Shorter line length
Non-deprecated syntax
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Easier to add params now; just add TRACK_TYPE_params method which
returns the hash you want.
Uses more idiomatic ||= instead of if @params.nil?
|
| | |
| | |
| | |
| | |
| | | |
Use private methods to make TrackThing#params easier to read and ready
for dynamic method calling based on the track_type
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Use inline if
Remove explicit return
Use string interpolation
Use unless instead of if !
Remove self.
Use . instead of :: for class method calls
|
| | | |
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Extract UserInfoRequestSentAlert alert types to ALERT_TYPES constant.
Useful for tests and forms (access with
UserInfoRequestSentAlert::ALERT_TYPES) and gives more meaning to what
the array contains
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Remove self.
Use unless instead of if !
Use . instead of :: for class methods
Remove explicit return
Use each instead of for
Use inline if
|
| | |
| | |
| | |
| | | |
https://github.com/bbatsov/ruby-style-guide#consistent-classes
|
| | |
| | |
| | |
| | | |
https://github.com/bbatsov/rails-style-guide#macro-style-methods
|
| | |
| | |
| | |
| | |
| | | |
Really difficult to figure out what’s going on when a callback is
buried halfway between a load of methods
|
| | |
| | |
| | |
| | | |
One less thing for #directory and #filepath to do
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Remove self.
Use inline block
Use inline unless
Use unless instead of if !
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Remove explicit return
Remove unneeded parentheses
Remove self.
Remove extra newlines
|
| | |
| | |
| | |
| | |
| | |
| | | |
Remove self.
Use inline if
Line length
|
| | |
| | |
| | |
| | | |
Use separate methods to explicitly state what’s happening
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Line length
Remove self.
Use inline if
Remove explicit return
use unless instead of if !
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | | |
Use self. for class methods
Remove self.
Line length
|
| | |
| | |
| | |
| | |
| | | |
Line Length
Remove self.
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
Use `.where`
Extract complex sql to named variable for readability and line length
|
| | |
| | |
| | |
| | | |
Use validation method names that describe what the validation does
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Remove self.
Use each rather than for
Use {} block rather than do/end
Use self. rather than ClassName. for class method
Indent private as much as method definitions
Remove explicit return
Line Length
Use inline if
Move callback before method definitions
Use unless instead of if !
|