From a313a77a6b7d1551f6ea8e8773960a6818c530f0 Mon Sep 17 00:00:00 2001 From: yackob03 Date: Tue, 29 Oct 2013 13:41:26 -0400 Subject: [PATCH] Switch some unnecessary button calls over to links. --- static/js/controllers.js | 12 ------------ static/partials/landing.html | 4 ++-- static/partials/v1-page.html | 2 +- static/partials/view-repo.html | 8 ++++---- 4 files changed, 7 insertions(+), 19 deletions(-) diff --git a/static/js/controllers.js b/static/js/controllers.js index df1ea6e22..b83be8ca8 100644 --- a/static/js/controllers.js +++ b/static/js/controllers.js @@ -229,14 +229,6 @@ function LandingCtrl($scope, $timeout, $location, Restangular, UserService, KeyS return getMarkedDown(getFirstTextLine(commentString)); }; - $scope.browseRepos = function() { - $location.path('/repository/'); - }; - - $scope.createRepo = function() { - $location.path('/new/'); - }; - $scope.register = function() { $('.form-signup').popover('hide'); $scope.registering = true; @@ -896,10 +888,6 @@ function V1Ctrl($scope, $location, UserService) { $scope.$watch( function () { return UserService.currentUser(); }, function (currentUser) { $scope.user = currentUser; }, true); - - $scope.browseRepos = function() { - $location.path('/repository/'); - }; } function NewRepoCtrl($scope, $location, $http, UserService, Restangular, PlanService) { diff --git a/static/partials/landing.html b/static/partials/landing.html index b53b4504f..4e3426972 100644 --- a/static/partials/landing.html +++ b/static/partials/landing.html @@ -61,8 +61,8 @@
Welcome {{ user.username }}!
- - + Browse all repositories + Create a new repository
diff --git a/static/partials/v1-page.html b/static/partials/v1-page.html index 821654fdd..e81c3d598 100644 --- a/static/partials/v1-page.html +++ b/static/partials/v1-page.html @@ -3,7 +3,7 @@

Welcome {{ user.username }}. Your account is fully activated!

- + Browse all repositories
diff --git a/static/partials/view-repo.html b/static/partials/view-repo.html index a10c609a3..b2293d2e4 100644 --- a/static/partials/view-repo.html +++ b/static/partials/view-repo.html @@ -75,7 +75,7 @@
- + Tags
@@ -103,7 +103,7 @@
- + Image