diff options
author | Christopher Baines <mail@cbaines.net> | 2018-07-05 13:35:53 +0100 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2018-07-05 13:35:53 +0100 |
commit | 6b1fffca32c61851f396d0ead44013b5c789c3ad (patch) | |
tree | c1e15a5add093c20d280aef042206683fa4c5f8e | |
parent | 333cb1a3fd859ab3a80ea71a87e712983e9da921 (diff) | |
download | govuk-mini-environment-admin-6b1fffca32c61851f396d0ead44013b5c789c3ad.tar govuk-mini-environment-admin-6b1fffca32c61851f396d0ead44013b5c789c3ad.tar.gz |
Show the most recent mini environments at the top
-rw-r--r-- | app/views/mini_environments/index.html.erb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/mini_environments/index.html.erb b/app/views/mini_environments/index.html.erb index a5c0a5e..3d57c5b 100644 --- a/app/views/mini_environments/index.html.erb +++ b/app/views/mini_environments/index.html.erb @@ -31,7 +31,7 @@ License along with the GOV.UK Mini Environment Admin. If not, see <h1>Mini environments</h1> <br> -<% MiniEnvironment.all.each do |mini_environment| %> +<% MiniEnvironment.order(id: :desc).each do |mini_environment| %> <% status = mini_environment.status %> <a href="<%= mini_environment_path mini_environment %>"> |