Remove debug lines and unneeded HTML.

This commit is contained in:
Paulo Reis 2018-08-06 11:03:15 +01:00
parent bd6dcc007b
commit e0707253a7
2 changed files with 9 additions and 10 deletions

View file

@ -67,15 +67,14 @@ aside.change-list(
) )
div.description(ng-click="select()") div.description(ng-click="select()")
div history-label(
history-label( ng-repeat="label in update.labels"
ng-repeat="label in update.labels" label-text="label.comment"
label-text="label.comment" label-owner-name="getDisplayNameById(label.user_id)"
label-owner-name="getDisplayNameById(label.user_id)" label-creation-date-time="label.created_at"
label-creation-date-time="label.created_at" is-owned-by-current-user="label.user_id === $ctrl.currentUser.id"
is-owned-by-current-user="label.user_id === $ctrl.currentUser.id" on-label-delete="deleteLabel(label)"
on-label-delete="deleteLabel(label)" )
)
div.time {{ update.meta.end_ts | formatDate:'h:mm a' }} div.time {{ update.meta.end_ts | formatDate:'h:mm a' }}
div.action.action-edited(ng-if="history.isV2 && update.pathnames.length > 0") div.action.action-edited(ng-if="history.isV2 && update.pathnames.length > 0")
| #{translate("file_action_edited")} | #{translate("file_action_edited")}

View file

@ -7,7 +7,7 @@ define [
$scope.hoveringOverListSelectors = false $scope.hoveringOverListSelectors = false
projectUsers = $scope.project.members.concat $scope.project.owner projectUsers = $scope.project.members.concat $scope.project.owner
console.log projectUsers
_getUserById = (id) -> _getUserById = (id) ->
_.find projectUsers, (user) -> _.find projectUsers, (user) ->
curUserId = user?._id or user?.id curUserId = user?._id or user?.id