diff --git a/js/controller/BoardController.js b/js/controller/BoardController.js index d4951fbd2..4d54b088c 100644 --- a/js/controller/BoardController.js +++ b/js/controller/BoardController.js @@ -486,4 +486,9 @@ app.controller('BoardController', function ($rootScope, $scope, $stateParams, St $scope.unreadCommentCount = function(card) { return card.commentsUnread; }; + + $scope.isTimelineEnabled = function() { + return OCP.Comments && OCA.Activity; + }; + }); diff --git a/js/controller/CardController.js b/js/controller/CardController.js index e738c4c68..c3de3a4fa 100644 --- a/js/controller/CardController.js +++ b/js/controller/CardController.js @@ -278,4 +278,8 @@ app.controller('CardController', function ($scope, $rootScope, $sce, $location, }; }; + $scope.isTimelineEnabled = function() { + return OCP.Comments && OCA.Activity; + }; + }); diff --git a/templates/part.board.sidebarView.php b/templates/part.board.sidebarView.php index 369e71649..6519e7e70 100644 --- a/templates/part.board.sidebarView.php +++ b/templates/part.board.sidebarView.php @@ -16,7 +16,7 @@
  • t('Tags')); ?>
  • t('Deleted Stacks')); ?>
  • t('Deleted Cards')); ?>
  • -
  • t('Activity')); ?>
  • +
  • t('Timeline')); ?>
  • @@ -150,7 +150,7 @@
    -
    +
    diff --git a/templates/part.card.php b/templates/part.card.php index 325af78a7..a2913e63e 100644 --- a/templates/part.card.php +++ b/templates/part.card.php @@ -92,8 +92,7 @@
    t('Saved')); ?> @@ -131,7 +130,7 @@
    -
    +