mysociety/alaveteli

View on GitHub
app/views/request/_request_subtitle.html.erb

Summary

Maintainability
Test Coverage
<% if info_request.info_request_batch %>
  <%= render partial: 'request/request_subtitle/batch',
             locals: { info_request: info_request,
                       user: user } %>
<% else %>
  <%= render partial: 'request/request_subtitle/single',
             locals: { info_request: info_request,
                       user: user } %>
<% end %>

<% if info_request.public_body.eir_only? %>
  <span class="request-header__foi_no">
    <br>
    <%= _('You only have a right in law to access information about the ' \
          'environment from this authority') %>
    </span>
<% elsif info_request.public_body.not_subject_to_law? %>
  <span class="request-header__foi_no">
    <br>
    <%= _('This authority is not subject to FOI law, so is not ' \
          'legally obliged to respond') %>
    (<%= details_help_link(info_request.public_body) %>).
    </span>
<% end %>

<%=
  render partial: "request/request_subtitle/allow_new_responses_from/" \
                  "#{ info_request.allow_new_responses_from }"
%>