app/views/decidim/admin/moderations/reports/index.html.erb in decidim-admin-0.27.0 vs app/views/decidim/admin/moderations/reports/index.html.erb in decidim-admin-0.27.1

- old
+ new

@@ -10,10 +10,14 @@ <%= icon "info" %> <span class="callout-text"><%= t(".callout_html", icon: icon("flag")) %></span> </div> <dl> <dt><%= t("models.moderation.fields.reported_content_url", scope: "decidim.moderations") %></dt> - <dd><%= link_to moderation.reportable.reported_content_url, moderation.reportable.reported_content_url, target: "_blank" %></dd> + <% if (reportable_url = moderation.reportable.reported_content_url) %> + <dd><%= link_to moderation.reportable.reported_content_url, reportable_url, target: "_blank" %></dd> + <% else %> + <dd><%= t("models.moderation.fields.deleted_resource", scope: "decidim.moderations") %></dd> + <% end %> <dt><%= t("models.moderation.fields.reportable_id", scope: "decidim.moderations") %></dt> <dd><%= moderation.reportable.id %></dd> <% if translatable_resource?(moderation.reportable) %>