diff --git a/app/views/admin/communication/websites/show.html.erb b/app/views/admin/communication/websites/show.html.erb index 13981d3e26..ed5b6c302a 100644 --- a/app/views/admin/communication/websites/show.html.erb +++ b/app/views/admin/communication/websites/show.html.erb @@ -57,7 +57,7 @@ <%= render 'admin/application/l10n/widget', about: @website, l10n: @l10n %> -<%= image_tag @website.deployment_status_badge, alt: '' if @website.deployment_status_badge.present? %> +<%= render 'admin/communication/websites/show/badge' %> <% content_for :server_admin_only do %> <%= static_link static_admin_communication_website_path(@website, website_id: nil) %> diff --git a/app/views/admin/communication/websites/show/_badge.html.erb b/app/views/admin/communication/websites/show/_badge.html.erb new file mode 100644 index 0000000000..b5f01b0681 --- /dev/null +++ b/app/views/admin/communication/websites/show/_badge.html.erb @@ -0,0 +1,5 @@ +<% if @website.deployment_status_badge.present? && @website.git_repository.present? %> + <%= link_to @website.repository_url, target: :_blank do %> + <%= image_tag @website.deployment_status_badge, alt: '' %> + <% end %> +<% end %>