From e0707253a773146df8738b3fde56acd811bdfd81 Mon Sep 17 00:00:00 2001 From: Paulo Reis Date: Mon, 6 Aug 2018 11:03:15 +0100 Subject: [PATCH] Remove debug lines and unneeded HTML. --- .../project/editor/history/entriesListV2.pug | 17 ++++++++--------- .../controllers/HistoryListController.coffee | 2 +- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/services/web/app/views/project/editor/history/entriesListV2.pug b/services/web/app/views/project/editor/history/entriesListV2.pug index 55d86c434f..337b5e33ce 100644 --- a/services/web/app/views/project/editor/history/entriesListV2.pug +++ b/services/web/app/views/project/editor/history/entriesListV2.pug @@ -67,15 +67,14 @@ aside.change-list( ) div.description(ng-click="select()") - div - history-label( - ng-repeat="label in update.labels" - label-text="label.comment" - label-owner-name="getDisplayNameById(label.user_id)" - label-creation-date-time="label.created_at" - is-owned-by-current-user="label.user_id === $ctrl.currentUser.id" - on-label-delete="deleteLabel(label)" - ) + history-label( + ng-repeat="label in update.labels" + label-text="label.comment" + label-owner-name="getDisplayNameById(label.user_id)" + label-creation-date-time="label.created_at" + is-owned-by-current-user="label.user_id === $ctrl.currentUser.id" + on-label-delete="deleteLabel(label)" + ) div.time {{ update.meta.end_ts | formatDate:'h:mm a' }} div.action.action-edited(ng-if="history.isV2 && update.pathnames.length > 0") | #{translate("file_action_edited")} diff --git a/services/web/public/coffee/ide/history/controllers/HistoryListController.coffee b/services/web/public/coffee/ide/history/controllers/HistoryListController.coffee index 8257eebd8c..90c8142c6c 100644 --- a/services/web/public/coffee/ide/history/controllers/HistoryListController.coffee +++ b/services/web/public/coffee/ide/history/controllers/HistoryListController.coffee @@ -7,7 +7,7 @@ define [ $scope.hoveringOverListSelectors = false projectUsers = $scope.project.members.concat $scope.project.owner - console.log projectUsers + _getUserById = (id) -> _.find projectUsers, (user) -> curUserId = user?._id or user?.id