diff options
author | Louise Crow <louise.crow@gmail.com> | 2015-02-27 15:56:24 +0000 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2015-03-02 16:26:53 +0000 |
commit | 7ef0219045526cdef1e16f0f133b35562a1bea79 (patch) | |
tree | a807f32e17250d90d43afdcf81f9f045bc7fedca | |
parent | 5d4e347339fafe95ce04b475f8bd3b1605f6d87b (diff) |
Don't display stepwise_make_request unless there's some content for it.
-rw-r--r-- | app/views/public_body/show.html.erb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/views/public_body/show.html.erb b/app/views/public_body/show.html.erb index 552fae717..82d678e56 100644 --- a/app/views/public_body/show.html.erb +++ b/app/views/public_body/show.html.erb @@ -20,6 +20,7 @@ <% end %> </p> + <% if @public_body.has_notes? || @public_body.eir_only? || @public_body.special_not_requestable_reason? %> <div id="stepwise_make_request"> <% if @public_body.has_notes? %> <p class="authority__header__notes"> @@ -33,12 +34,13 @@ <%= _('You can only request information about the environment from this authority.')%> </p> <% end %> - <% elsif @public_body.not_requestable_reason != 'bad_contact' %> + <% elsif @public_body.special_not_requestable_reason? %> <p class="authority__header__notes"> <%= public_body_not_requestable_reasons(@public_body).first %> </p> <% end %> </div> + <% end %> <% if @public_body.info_requests.size > 0 %> <div class="authority__header__stats"> |