Add "previous posts" support to unified profiles in CC

The Community Console used to embed profiles from TW via an iframe, so
the logic to add the "previous posts" link was only added to TW.

However, the CC now renders the profiles without an iframe, with the
exact same layout as TW. This change adds support to add the "previous
posts" link in the CC, which reuses existing code (which has been
abstracted).

Fixed: twpowertools:78
Change-Id: I511af1e8aab1292f34beb712f29d52df9409e352
diff --git a/src/static/css/common/console.css b/src/static/css/common/console.css
index 2eba28f..e8a6cfc 100644
--- a/src/static/css/common/console.css
+++ b/src/static/css/common/console.css
@@ -42,6 +42,7 @@
   padding: 4px 8px!important;
 }
 
+/* TODO(b/twpowertools/80): Remove this code. */
 .TWPT-previous-posts {
   display: flex;
   flex-direction: row;
@@ -53,6 +54,20 @@
   margin-right: 8px;
 }
 
+/* Unified profiles "previous posts" link badge */
+.TWPT-user-link .TWPT-badge {
+  display: inline-flex;
+  margin: 4px;
+}
+
+.TWPT-user-link {
+  text-decoration: none!important;
+}
+
+.TWPT-user-link:hover span {
+  text-decoration: underline!important;
+}
+
 .TWPT-dialog {
   display: block!important;
   width: 600px;