aboutsummaryrefslogtreecommitdiffstats
path: root/app
Commit message (Collapse)AuthorAgeLines
...
* | | | Redirect to #edit after updatingGareth Rees2014-11-17-4/+7
| | | | | | | | | | | | | | | | | | | | On an unsuccessful update AdminPublicBodyHeadingsController and AdminPublicBodyCategoriesController #update should render the #edit action.
* | | | Redirect to #edit after updatingGareth Rees2014-11-17-2/+3
|/ / / | | | | | | | | | | | | | | | | | | 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
* | | Fix missing translation introduced in 962357cGareth Rees2014-11-12-3/+3
| | | | | | | | | | | | | | | 962357c tidied the translation but left the translation call (`_()`) around the variable rather than the string literal.
* | | Revert text changes in bf31b10Gareth Rees2014-11-12-2/+2
| | | | | | | | | | | | | | | | | | 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
* | | Revert text changes in 8a21f27Gareth Rees2014-11-12-2/+2
|/ / | | | | | | | | | | | | 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
* | Merge branch '1433-admin-bottom-margin' into rails-3-developGareth Rees2014-11-11-1/+1
|\ \
| * | Add margin to bottom of admin viewsGareth Rees2014-11-05-1/+1
| |/ | | | | Prevents the pagination being squashed up against the window edge
* | Merge branch '1663-split-select-authority-page' into rails-3-developGareth Rees2014-11-10-101/+71
|\ \
| * | Move “Can’t find an authority” to sidebarGareth Rees2014-10-30-1/+42
| | | | | | | | | | | | | | | Move the “Can’t find an authority” actions on the /select_authority page to the right of the search results
| * | Improve /select_authority search boxGareth Rees2014-10-30-1/+8
| | | | | | | | | | | | | | | | | | - Make it wider - Add a placeholder - Translate placeholder and title text
| * | Tidy up request/select_authority.html.erbGareth Rees2014-10-30-23/+26
| | | | | | | | | | | | | | | | | | | | | | | | - 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
| * | Remove authority preview from /select_authorityGareth Rees2014-10-30-88/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | Merge branch 'issues/1437-apple-mail-attachment-parsing' into rails-3-developGareth Rees2014-11-10-2/+4
|\ \ \
| * | | Add fix for Apple Mail with attachments Gareth Rees2014-11-04-2/+4
| | |/ | |/|
* / | Redirect /help to /help/aboutGareth Rees2014-11-05-0/+4
|/ / | | | | | | Shouldn't really 404 on an important/accessible URL
* | Merge branch '875-remove-charities' into rails-3-developGareth Rees2014-10-30-10/+0
|\ \
| * | Remove WDTK-specific charity linksGareth Rees2014-10-29-10/+0
| |/ | | | | These will be moved to whatdotheyknow-theme
* | Merge branch 'issues/1457-close-change-request-without-email' into ↵Louise Crow2014-10-30-11/+12
|\ \ | |/ |/| | | rails-3-develop
| * Remove redirect to trailing slash URL.Louise Crow2014-10-30-7/+0
| | | | | | | | | | Introduced in 4f501309ade230f65f4ba45e1d0161e89587d755 but no longer needed as we don't proxy the admin interface.
| * Allow closure of a change request without sending an email.Louise Crow2014-10-30-4/+12
| |
* | Merge branch 'code_tidying' into rails-3-developGareth Rees2014-10-29-564/+592
|\ \
| * | Remove extra newlinesGareth Rees2014-10-29-3/+0
| | |
| * | Group PublicBody callbacks and macros at topGareth Rees2014-10-29-18/+21
| | |
| * | Extract descriptions in to TrackThing::TRACK_TYPESGareth Rees2014-10-29-20/+9
| | | | | | | | | | | | | | | Makes TrackThing.track_type_description easier to understand and easier to add new track types along with a description.
| * | Use where syntax for TrackThing.find_existingGareth Rees2014-10-29-2/+5
| | | | | | | | | | | | | | | | | | Faster (0.2ms vs 9.3ms) Shorter line length Non-deprecated syntax
| * | Refactor TrackType types and mediums to constantsGareth Rees2014-10-29-12/+11
| | |
| * | Dynamically call params hash for TrackThing#paramsGareth Rees2014-10-29-20/+11
| | | | | | | | | | | | | | | | | | | | | 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?
| * | Extract hashes in TrackThing#params to methodsGareth Rees2014-10-29-113/+134
| | | | | | | | | | | | | | | Use private methods to make TrackThing#params easier to read and ready for dynamic method calling based on the track_type
| * | Clean TrackThingGareth Rees2014-10-29-51/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | Use inline if Remove explicit return Use string interpolation Use unless instead of if ! Remove self. Use . instead of :: for class method calls
| * | Use self. for TrackThing class methodsGareth Rees2014-10-29-8/+8
| | |
| * | Group TrackThing class methods at top of fileGareth Rees2014-10-29-35/+37
| | |
| * | Group TrackThing macro methodsGareth Rees2014-10-29-6/+3
| | |
| * | Extract UserInfoRequestSentAlert alert typesGareth Rees2014-10-29-10/+14
| | | | | | | | | | | | | | | | | | | | | | | | 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
| * | Clean UserGareth Rees2014-10-29-80/+80
| | | | | | | | | | | | | | | | | | | | | | | | | | | Remove self. Use unless instead of if ! Use . instead of :: for class methods Remove explicit return Use each instead of for Use inline if
| * | Group User class methods at top of classGareth Rees2014-10-29-105/+104
| | | | | | | | | | | | https://github.com/bbatsov/ruby-style-guide#consistent-classes
| * | Group User macro methods at top of fileGareth Rees2014-10-29-12/+8
| | | | | | | | | | | | https://github.com/bbatsov/rails-style-guide#macro-style-methods
| * | Move User callbacks to top of fileGareth Rees2014-10-29-2/+3
| | | | | | | | | | | | | | | Really difficult to figure out what’s going on when a callback is buried halfway between a load of methods
| * | Extract RawEmail inline calls to private methodsGareth Rees2014-10-29-3/+8
| | | | | | | | | | | | One less thing for #directory and #filepath to do
| * | Tidy RawEmailGareth Rees2014-10-29-14/+11
| | | | | | | | | | | | | | | | | | | | | Remove self. Use inline block Use inline unless Use unless instead of if !
| * | Tidy PurgeRequestGareth Rees2014-10-29-11/+8
| | | | | | | | | | | | | | | | | | | | | Remove explicit return Remove unneeded parentheses Remove self. Remove extra newlines
| * | Tidy ProfilePhotoGareth Rees2014-10-29-28/+26
| | | | | | | | | | | | | | | | | | Remove self. Use inline if Line length
| * | Extract after_initialize methods in PostRedirectGareth Rees2014-10-29-11/+10
| | | | | | | | | | | | Use separate methods to explicitly state what’s happening
| * | Tidy PostRedirectGareth Rees2014-10-29-17/+16
| | | | | | | | | | | | | | | | | | | | | | | | Line length Remove self. Use inline if Remove explicit return use unless instead of if !
| * | Move PostRedirect class methods to top of fileGareth Rees2014-10-29-20/+22
| | |
| * | Tidy HolidayGareth Rees2014-10-29-12/+12
| | | | | | | | | | | | | | | | | | Use self. for class methods Remove self. Line length
| * | Tidy ContactValidatorGareth Rees2014-10-29-1/+3
| | | | | | | | | | | | | | | Line Length Remove self.
| * | Move Comment class method to top of fileGareth Rees2014-10-29-15/+15
| | |
| * | Improve Comment.find_existingGareth Rees2014-10-29-4/+7
| | | | | | | | | | | | | | | Use `.where` Extract complex sql to named variable for readability and line length
| * | Use more meaningful validations in CommentGareth Rees2014-10-29-3/+9
| | | | | | | | | | | | Use validation method names that describe what the validation does
| * | Tidy CommentGareth Rees2014-10-29-17/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 !