Revert "UX: Move previous alert link from top to bottom of topic body"

Revert "UX: Move previous alert link from top to bottom of topic body"

This reverts commit 0f6821958724120e6e9273022b358e7a900ac8b1.

From 425d4a18723fd30677d3e40338b64076936239a4 Mon Sep 17 00:00:00 2001
From: Sam <sam.saffron@gmail.com>
Date: Mon, 5 Nov 2018 14:36:39 +1100
Subject: [PATCH] Revert "UX: Move previous alert link from top to bottom of
 topic body"

This reverts commit 0f6821958724120e6e9273022b358e7a900ac8b1.

diff --git a/app/jobs/concerns/alert_post_mixin.rb b/app/jobs/concerns/alert_post_mixin.rb
index 0f80d9a..970b2fc 100644
--- a/app/jobs/concerns/alert_post_mixin.rb
+++ b/app/jobs/concerns/alert_post_mixin.rb
@@ -112,7 +112,7 @@ module AlertPostMixin
     created_at = Topic.where(id: topic_id).pluck(:created_at).first
     return "" unless created_at
 
-    "[Previous alert](#{Discourse.base_url}/t/#{topic_id}) #{local_date(created_at.to_s)}\n\n"
+    "([Previous alert topic created.](#{Discourse.base_url}/t/#{topic_id}) #{local_date(created_at.to_s)})\n\n"
   end
 
   def first_post_body(receiver:,
@@ -122,8 +122,8 @@ module AlertPostMixin
 
     output = ""
     output += "#{topic_body}\n\n"
-    output += "#{render_alerts(alert_history)}\n\n"
-    output += "#{prev_topic_link(prev_topic_id)}\n" if prev_topic_id
+    output += "#{prev_topic_link(prev_topic_id)}\n\n" if prev_topic_id
+    output += "#{render_alerts(alert_history)}\n"
   end
 
   def revise_topic(topic:, title:, raw:, datacenters:, firing: nil, high_priority: false)

GitHub