- Add a repo-circle directive and change all repo icons uses to it

- Have the repo-circle directive show the padlock in all places
- Mention SSL on the landing page and the pricing page
This commit is contained in:
Joseph Schorr 2013-10-22 01:26:14 -04:00
parent 7884fef5f3
commit d51ab5952b
9 changed files with 80 additions and 35 deletions

View file

@ -165,6 +165,23 @@ quayApp = angular.module('quay', ['restangular', 'angularMoment', 'angulartics',
RestangularProvider.setBaseUrl('/api/');
});
quayApp.directive('repoCircle', function () {
var directiveDefinitionObject = {
priority: 0,
templateUrl: '/static/directives/repo-circle.html',
replace: false,
transclude: false,
restrict: 'C',
scope: {
'repo': '=repo'
},
controller: function($scope, $element) {
window.console.log($scope);
}
};
return directiveDefinitionObject;
});
quayApp.run(['$location', '$rootScope', function($location, $rootScope) {
$rootScope.$on('$routeChangeSuccess', function (event, current, previous) {
if (current.$$route.title) {