aboutsummaryrefslogtreecommitdiffstats
path: root/app/helpers/public_body_helper.rb
Commit message (Collapse)AuthorAgeLines
* Don't show two 'Make a request' buttons if there's no contact info.Louise Crow2015-03-02-1/+1
|
* Refactor showing the Make Request buttonGareth Rees2015-02-20-0/+35
The code here was hard to follow. Now we have a cleaner path to decide whether to show the Make Request button or not. - Always show any notes associated with the body - If a request can be made to the body - Show any tag-specific notes that may affect the request - Show the Make Request button - If a request cannot be made to the body - Show the most relevant reason why a request cannot be made Added PublicBodyHelper#public_body_not_requestable_reasons to extract the logic of finding the reason a user can’t request out of the template