2
0
Эх сурвалжийг харах

Fix a bug with the comment buttons

Maxime Quandalle 9 жил өмнө
parent
commit
69b908422f

+ 3 - 3
client/components/activities/activities.jade

@@ -103,9 +103,9 @@ template(name="cardActivities")
             .activity-comment
             .activity-comment
               +viewer
               +viewer
                 = comment.text
                 = comment.text
-            if ($eq currentUser comment.userId)
-              span.activity-meta
-                | {{ moment createdAt }} -
+            span.activity-meta {{ moment createdAt }}
+              if ($eq currentUser._id comment.userId)
+                = ' - '
                 a.js-open-inlined-form {{_ "edit"}}
                 a.js-open-inlined-form {{_ "edit"}}
                 = ' - '
                 = ' - '
                 a.js-delete-comment {{_ "delete"}}
                 a.js-delete-comment {{_ "delete"}}

+ 1 - 0
i18n/en.i18n.json

@@ -2,6 +2,7 @@
     "account-details": "Account Details",
     "account-details": "Account Details",
     "actions": "Actions",
     "actions": "Actions",
     "activity": "Activity",
     "activity": "Activity",
+    "activities": "Activities",
     "activity-archived": "archived %s",
     "activity-archived": "archived %s",
     "activity-created": "created %s",
     "activity-created": "created %s",
     "activity-added": "added %s to %s",
     "activity-added": "added %s to %s",