UX: "Show post" should be a link so admins can open the post in a new tab. (#27)

UX: “Show post” should be a link so admins can open the post in a new tab. (#27)

diff --git a/assets/javascripts/discourse-user-notes/connectors/user-card-post-names/show-user-notes-on-card.js.es6 b/assets/javascripts/discourse-user-notes/connectors/user-card-post-names/show-user-notes-on-card.js.es6
index 1599e7b..2894f92 100644
--- a/assets/javascripts/discourse-user-notes/connectors/user-card-post-names/show-user-notes-on-card.js.es6
+++ b/assets/javascripts/discourse-user-notes/connectors/user-card-post-names/show-user-notes-on-card.js.es6
@@ -18,7 +18,6 @@ export default {
       userNotesCount: count,
       emojiEnabled: component.siteSettings.enable_emoji,
       emojiUrl: emojiUrlFor("pencil"),
-      user,
       userNotesTitle: I18n.t("user_notes.show", { count }),
     });
   },
diff --git a/assets/javascripts/discourse/templates/modal/user-notes.hbs b/assets/javascripts/discourse/templates/modal/user-notes.hbs
index 347f06a..b4ff9f0 100644
--- a/assets/javascripts/discourse/templates/modal/user-notes.hbs
+++ b/assets/javascripts/discourse/templates/modal/user-notes.hbs
@@ -35,13 +35,9 @@
         </div>
 
         {{#if n.post_id}}
-          {{d-button 
-            class="btn btn-small" 
-            href=n.post_url
-            action=(route-action "closeModal") 
-            title="user_notes.show_post"
-            translatedLabel=(i18n "user_notes.show_post")
-          }}
+          <a href={{n.post_url}} class="btn btn-small">
+            {{i18n "user_notes.show_post"}}
+          </a>
         {{/if}}
       </div>
 

GitHub sha: a50c72e7

This commit appears in #27 which was approved by eviltrout. It was merged by romanrizzi.