Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

remove the link around the table

Marcello Rocha567a6ccd40b7
diff --git a/modules/storages/app/views/storages/storages_mailer/_health_status_notification.html.erb b/modules/storages/app/views/storages/storages_mailer/_health_status_notification.html.erb
index f91d94bb9f1..5f8366dfed6 100644
--- a/modules/storages/app/views/storages/storages_mailer/_health_status_notification.html.erb
+++ b/modules/storages/app/views/storages/storages_mailer/_health_status_notification.html.erb
@@ -27,78 +27,76 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
-<a style="text-decoration: none;display: block;" href="<%= url %>" target="_blank">
- <%= render layout: 'mailer/border_table' do %>
- <tr>
- <td>
- <table <%= placeholder_table_styles(width: '100%', style: 'width:100%;font-size:14px;') %>>
- <tr>
- <%= placeholder_cell('12px', vertical: true) %>
- <td>
- <table <%= placeholder_table_styles %>>
- <tr>
- <td>
- <% if state == :unhealthy %>
- <%= render Mailer::LabelComponent.new(scheme: :danger, text: 'Error') %>
- <% else %>
- <%= render Mailer::LabelComponent.new(scheme: :success, text: 'Healthy') %>
- <% end %>
- </td>
-
- <%= placeholder_cell('8px', vertical: true) %>
-
- <td style="color: #878787; font-size: 12px; font-weight: 700;">
- <%= I18n.t("storages.provider_types.#{storage.short_provider_type}.name") %> - <%= storage.host %>
- </td>
- </tr>
- </table>
- </td>
- <%= placeholder_cell('12px', vertical: true) %>
- </tr>
-
- <tr>
- <%= placeholder_cell('8px', vertical: false) %>
- </tr>
-
- <tr>
- <%= placeholder_cell('12px', vertical: true) %>
- <td style="font-weight: 700; line-height: 20px; color: black;"><%= storage.name %></td>
+<%= render layout: 'mailer/border_table' do %>
+ <tr>
+ <td>
+ <table <%= placeholder_table_styles(width: '100%', style: 'width:100%;font-size:14px;') %>>
+ <tr>
+ <%= placeholder_cell('12px', vertical: true) %>
+ <td>
+ <table <%= placeholder_table_styles %>>
+ <tr>
+ <td>
+ <% if state == :unhealthy %>
+ <%= render Mailer::LabelComponent.new(scheme: :danger, text: 'Error') %>
+ <% else %>
+ <%= render Mailer::LabelComponent.new(scheme: :success, text: 'Healthy') %>
+ <% end %>
+ </td>
+
+ <%= placeholder_cell('8px', vertical: true) %>
+
+ <td style="color: #878787; font-size: 12px; font-weight: 700;">
+ <%= I18n.t("storages.provider_types.#{storage.short_provider_type}.name") %> - <%= storage.uri %>
+ </td>
+ </tr>
+ </table>
+ </td>
+ <%= placeholder_cell('12px', vertical: true) %>
+ </tr>
+
+ <tr>
+ <%= placeholder_cell('8px', vertical: false) %>
+ </tr>
+
+ <tr>
+ <%= placeholder_cell('12px', vertical: true) %>
+ <td style="font-weight: 700; line-height: 20px; color: black;"><%= storage.name %></td>
+ <%= placeholder_cell('12px', vertical: true) %>
+ </tr>
+
+ <tr>
+ <%= placeholder_cell('8px', vertical: false) %>
+ </tr>
+
+ <tr id="reason">
+ <%= placeholder_cell('12px', vertical: true) %>
+ <td style="color: #878787; font-size: 12px; font-weight: 400; line-height: 16px;">
+ <% if state == :unhealthy %>
+ <%= reason %> <%= I18n.t('mail.storages.health.unhealthy.since') %> <%= format_time(storage.health_changed_at) %>
+ <% else %>
+ <%= reason %> <%= I18n.t('mail.storages.health.healthy.solved_at') %> <%= format_time(storage.health_changed_at) %>
+ <% end %>
+ </td>
+ <%= placeholder_cell('12px', vertical: true) %>
+ </tr>
+
+ <% if storage.provider_type == ::Storages::Storage::PROVIDER_TYPE_NEXTCLOUD && state == :unhealthy %>
+ <tr id="troubleshooting">
<%= placeholder_cell('12px', vertical: true) %>
- </tr>
- <tr>
- <%= placeholder_cell('8px', vertical: false) %>
- </tr>
-
- <tr id="reason">
- <%= placeholder_cell('12px', vertical: true) %>
<td style="color: #878787; font-size: 12px; font-weight: 400; line-height: 16px;">
- <% if state == :unhealthy %>
- <%= reason %> <%= I18n.t('mail.storages.health.unhealthy.since') %> <%= format_time(storage.health_changed_at) %>
- <% else %>
- <%= reason %> <%= I18n.t('mail.storages.health.healthy.solved_at') %> <%= format_time(storage.health_changed_at) %>
- <% end %>
+ <%= I18n.t('mail.storages.health.unhealthy.troubleshooting.text') %>
+ <a href="<%= ::OpenProject::Static::Links[:storage_docs][:troubleshooting][:href] %>"><%= I18n.t('mail.storages.health.unhealthy.troubleshooting.link_text') %></a>.
</td>
+
<%= placeholder_cell('12px', vertical: true) %>
</tr>
-
- <% if storage.provider_type == ::Storages::Storage::PROVIDER_TYPE_NEXTCLOUD && state == :unhealthy %>
- <tr id="troubleshooting">
- <%= placeholder_cell('12px', vertical: true) %>
-
- <td style="color: #878787; font-size: 12px; font-weight: 400; line-height: 16px;">
- <%= I18n.t('mail.storages.health.unhealthy.troubleshooting.text') %>
- <a href="<%= ::OpenProject::Static::Links[:storage_docs][:troubleshooting][:href] %>"><%= I18n.t('mail.storages.health.unhealthy.troubleshooting.link_text') %></a>.
- </td>
-
- <%= placeholder_cell('12px', vertical: true) %>
- </tr>
- <% end %>
- </table>
- </td>
- </tr>
- <% end %>
-</a>
+ <% end %>
+ </table>
+ </td>
+ </tr>
+<% end %>
<table <%= placeholder_table_styles(width: '100%', style: "width:100%;") %>>
<tr>
diff --git a/modules/storages/app/workers/storages/health_status_mailer_job.rb b/modules/storages/app/workers/storages/health_status_mailer_job.rb
index d765e874610..01b3ba5df0a 100644
--- a/modules/storages/app/workers/storages/health_status_mailer_job.rb
+++ b/modules/storages/app/workers/storages/health_status_mailer_job.rb
@@ -50,7 +50,7 @@ module Storages
return if storage.health_healthy?
admin_users.each do |admin|
- ::Storages::StoragesMailer.notify_unhealthy(admin, storage).deliver_later
+ StoragesMailer.notify_unhealthy(admin, storage).deliver_later
end
HealthStatusMailerJob.schedule(storage:)