diff --git a/app/controllers/organisations_controller.rb b/app/controllers/organisations_controller.rb
index 9401fae3a..4fee2b2a9 100644
--- a/app/controllers/organisations_controller.rb
+++ b/app/controllers/organisations_controller.rb
@@ -42,6 +42,12 @@ class OrganisationsController < ApplicationController
end
end
+ def logs
+ unless current_user.support?
+ redirect_to "/logs"
+ end
+ end
+
private
def org_params
diff --git a/app/views/layouts/organisations.html.erb b/app/views/layouts/organisations.html.erb
index e258aa2aa..d591b5813 100644
--- a/app/views/layouts/organisations.html.erb
+++ b/app/views/layouts/organisations.html.erb
@@ -1,6 +1,6 @@
<% content_for :content do %>
- Your organisation
+ <%= request.path == "/organisations" ? "Organisations" : "Your organisation" %>
<% items = tab_items(current_user) %>
diff --git a/app/views/organisations/_organisation_list.html.erb b/app/views/organisations/_organisation_list.html.erb
index 6fcb19c5c..72ed027f1 100644
--- a/app/views/organisations/_organisation_list.html.erb
+++ b/app/views/organisations/_organisation_list.html.erb
@@ -16,7 +16,7 @@
<% organisations.map do |organisation| %>
<%= organisation.id %>
diff --git a/app/views/organisations/logs.erb b/app/views/organisations/logs.erb
new file mode 100644
index 000000000..97c6174a9
--- /dev/null
+++ b/app/views/organisations/logs.erb
@@ -0,0 +1 @@
+wubwub
\ No newline at end of file
diff --git a/config/routes.rb b/config/routes.rb
index f8269ed12..33c9f0a9a 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -67,6 +67,7 @@ Rails.application.routes.draw do
get "details", to: "organisations#details"
get "users", to: "organisations#users"
get "users/invite", to: "users/account#new"
+ get "logs", to: "organisations#logs"
end
end
|