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;
diff --git a/src/static/css/common/forum.css b/src/static/css/common/forum.css
index 50316d7..6a2b6d9 100644
--- a/src/static/css/common/forum.css
+++ b/src/static/css/common/forum.css
@@ -22,15 +22,3 @@
   height: var(--icon-size, 16px);
   filter: invert(1);
 }
-
-.TWPT-user-profile__user-links {
-  margin-top: 8px;
-}
-
-.TWPT-user-link > * {
-  vertical-align: middle;
-}
-
-.TWPT-user-link .TWPT-badge {
-  margin-left: 0;
-}
diff --git a/src/static/css/unifiedprofile.css b/src/static/css/unifiedprofile.css
new file mode 100644
index 0000000..fda14c5
--- /dev/null
+++ b/src/static/css/unifiedprofile.css
@@ -0,0 +1,11 @@
+.TWPT-user-profile__user-links {
+  margin-top: 8px;
+}
+
+.TWPT-user-link > * {
+  vertical-align: middle;
+}
+
+.TWPT-user-link .TWPT-badge {
+  margin-left: 0;
+}