Skip to content
Snippets Groups Projects
Commit 4743bf13 authored by Arnaud Levy's avatar Arnaud Levy
Browse files

nice monitoring

parent 72adb4e5
No related branches found
No related tags found
No related merge requests found
......@@ -10,6 +10,7 @@ class Server::DashboardController < Server::ApplicationController
path: server_websites_path
}
]
@websites = Communication::Website.updatable_theme.ordered
breadcrumb
end
end
......@@ -90,6 +90,11 @@ class Communication::Website < ApplicationRecord
", term: "%#{sanitize_sql_like(term)}%")
}
scope :for_update, -> (autoupdate) { where(autoupdate_theme: autoupdate) }
scope :updatable_theme, -> {
where.not(repository: [nil, '']).
where.not(access_token: [nil, '']).
where.not(url: [nil, ''])
}
def to_s
"#{name}"
......
......@@ -9,3 +9,7 @@
</div>
<% end %>
</div>
<%= osuny_panel 'Monitoring' do %>
<%= render 'server/websites/list', websites: @websites %>
<% end %>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment