aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/controllers/admin_public_body_controller.rb6
-rw-r--r--app/models/public_body.rb2
-rw-r--r--app/views/request/new.rhtml4
3 files changed, 6 insertions, 6 deletions
diff --git a/app/controllers/admin_public_body_controller.rb b/app/controllers/admin_public_body_controller.rb
index c6904da95..bf7c07905 100644
--- a/app/controllers/admin_public_body_controller.rb
+++ b/app/controllers/admin_public_body_controller.rb
@@ -56,7 +56,7 @@ class AdminPublicBodyController < AdminController
flash[:notice] = "Added tag to table of bodies."
end
- redirect_to admin_url('body/list') + "?query=" + @query + (@page.nil? ? "" : "&page=" + @page) # XXX construct this URL properly
+ redirect_to admin_body_list_url(:query => @query, :page => @page)
end
def missing_scheme
@@ -127,14 +127,14 @@ class AdminPublicBodyController < AdminController
if public_body.info_requests.size > 0
flash[:notice] = "There are requests associated with the authority, so can't destroy it"
- redirect_to admin_url('body/show/' + public_body.id.to_s)
+ redirect_to admin_body_show_url(public_body)
return
end
public_body.tag_string = ""
public_body.destroy
flash[:notice] = "PublicBody was successfully destroyed."
- redirect_to admin_url('body/list')
+ redirect_to admin_body_list_url
end
end
diff --git a/app/models/public_body.rb b/app/models/public_body.rb
index 453e3a6cf..9ac668b10 100644
--- a/app/models/public_body.rb
+++ b/app/models/public_body.rb
@@ -275,7 +275,7 @@ class PublicBody < ActiveRecord::Base
ret = ret + types[-1]
return ret
else
- return "A public authority"
+ return _("A public authority")
end
end
diff --git a/app/views/request/new.rhtml b/app/views/request/new.rhtml
index 2e554a20b..23212fc0b 100644
--- a/app/views/request/new.rhtml
+++ b/app/views/request/new.rhtml
@@ -47,12 +47,12 @@
<% end %>
</div>
- <div id="request_header_text">
<% if @info_request.public_body.has_notes? %>
+ <div id="request_header_text">
<h3><%= _('Special note for this authority!') %></h3>
<p><%= @info_request.public_body.notes_as_html %></p>
+ </div>
<% end %>
- </div>
<% if @info_request.public_body.eir_only? %>
<h3><%= _('Please ask for environmental information only') %></h3>