Skip to content
Snippets Groups Projects
Unverified Commit 39931a54 authored by Arnaud Levy's avatar Arnaud Levy Committed by GitHub
Browse files

Single website (#2360)

parent ebc9feef
No related branches found
No related tags found
No related merge requests found
......@@ -15,6 +15,11 @@ class Server::WebsitesController < Server::ApplicationController
redirect_back(fallback_location: server_websites_path, notice: t('server_admin.websites.clean_and_rebuild_all_websites_notice'))
end
def clean_and_rebuild
Communication::Website::CleanAndRebuildJob.perform_later(@website.id)
redirect_back(fallback_location: server_website_path(@website), notice: t('server_admin.websites.clean_and_rebuild_website_notice'))
end
def sync_theme_version
@website.get_current_theme_version!
end
......
......@@ -91,6 +91,10 @@
analyse_server_website_path(@website),
method: :post,
class: button_classes %>
<%= link_to 'Reconstruire (clean and rebuild)',
clean_and_rebuild_server_website_path(@website),
method: :post,
class: button_classes %>
<%= link_to 'Changer d\'université',
edit_server_website_path(@website),
class: button_classes %>
......
......@@ -51,6 +51,7 @@ en:
sync: Sync
update: Update theme
clean_and_rebuild_all_websites_notice: All themes will be updated. This can take a few minutes.
clean_and_rebuild_website_notice: The website will be rebuilt. This can take a few minutes.
connections_count: "%{count} connexions"
details: detail
events_count: "%{count} events"
......
......@@ -51,6 +51,7 @@ fr:
sync: Synchroniser
update: Mettre à jour le thème
clean_and_rebuild_all_websites_notice: Tous les thèmes vont être mis à jour. Cela peut prendre quelques minutes.
clean_and_rebuild_website_notice: Le site va être reconstruit. Cela peut prendre quelques minutes.
connections_count: "%{count} connexions"
details: détail
events_count: "%{count} événements"
......
......@@ -7,10 +7,11 @@ namespace :server do
post :clean_and_rebuild_all_websites
end
member do
post :sync_theme_version
post :analyse
post :update_theme
post :clean_and_rebuild
post :sync_theme_version
post :unlock_for_background_jobs
post :update_theme
end
end
resources :blocks, only: [:index, :show] do
......
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