aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2013-09-19 17:20:33 +0100
committerLouise Crow <louise.crow@gmail.com>2013-12-04 09:32:39 +0000
commit3dc2121885f0dd90c591babf35d3754a19effec8 (patch)
tree15a18cc764c05bbee2d54b67aaaba45fc128cc10
parent7e6fdfc403c4c35052d5432a844bf9855e217db7 (diff)
Add a link to the select_authorities page.
Contingent on batch requests being allowed, and the session user being allowed to make them.
-rw-r--r--app/views/request/select_authority.html.erb7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/views/request/select_authority.html.erb b/app/views/request/select_authority.html.erb
index 4f117ee75..83abdb184 100644
--- a/app/views/request/select_authority.html.erb
+++ b/app/views/request/select_authority.html.erb
@@ -40,6 +40,13 @@
<%= hidden_field_tag 'bodies', 1 %>
<%= submit_tag _('Search') %>
</div>
+ <% if AlaveteliConfiguration.allow_batch_requests && @user && @user.can_make_batch_requests? %>
+ <div id="batch_request_link">
+ <p>
+ <%= _('Or make a <a href="{{url}}">batch request</a> to <strong>multiple authorities</strong> at once.', :url => select_authorities_path) %>
+ </p>
+ </div>
+ <% end %>
<% end %>
<div id="typeahead_response">