Просмотр исходного кода

Fix a bug with the comment buttons

Maxime Quandalle 9 лет назад
Родитель
Сommit
69b908422f
2 измененных файлов с 4 добавлено и 3 удалено
  1. 3 3
      client/components/activities/activities.jade
  2. 1 0
      i18n/en.i18n.json

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

@@ -103,9 +103,9 @@ template(name="cardActivities")
             .activity-comment
               +viewer
                 = 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-delete-comment {{_ "delete"}}

+ 1 - 0
i18n/en.i18n.json

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