diff --git a/endpoints/api.py b/endpoints/api.py index f2bf7e769..f49cbba0b 100644 --- a/endpoints/api.py +++ b/endpoints/api.py @@ -249,6 +249,7 @@ def get_organization(orgname): return { 'id': t.id, 'name': t.name, + 'description': t.description, 'can_view': view_permission.can() } @@ -407,11 +408,6 @@ def create_repo_api(): repo.description = json['description'] repo.save() - repo = model.create_repository(namespace_name, repository_name, owner, - visibility) - repo.description = json['description'] - repo.save() - return jsonify({ 'namespace': namespace_name, 'name': repository_name diff --git a/static/css/quay.css b/static/css/quay.css index 4cedc576e..4de0c99ed 100644 --- a/static/css/quay.css +++ b/static/css/quay.css @@ -211,10 +211,6 @@ color: #444 !important; } -.new-repo .new-header span { - font-size: 22px; -} - .new-repo .new-header .popover { font-size: 14px; } @@ -1391,6 +1387,18 @@ p.editable:hover i { float: right; } +.org-view .team-listing { + margin: 10px; + padding: 10px; + border-bottom: 1px solid #eee; + min-width: 400px; + display: inline-block; +} + +.org-view .team-title { + font-size: 20px; +} + /* Overrides for typeahead to work with bootstrap 3. */ .twitter-typeahead .tt-query, diff --git a/static/js/controllers.js b/static/js/controllers.js index d1cc85eec..9bbe2c3a1 100644 --- a/static/js/controllers.js +++ b/static/js/controllers.js @@ -1180,6 +1180,15 @@ function NewRepoCtrl($scope, $location, $http, $timeout, UserService, Restangula function OrgViewCtrl($scope, Restangular, $routeParams) { var orgname = $routeParams.orgname; + $scope.getDescriptionFirstLine = function(commentString) { + return getMarkedDown(getFirstTextLine(commentString)); + }; + + $scope.getMarkedDown = function(string) { + if (!string) { return ''; } + return getMarkedDown(string); + }; + var loadOrganization = function() { var getOrganization = Restangular.one(getRestUrl('organization', orgname)); getOrganization.get().then(function(resp) { diff --git a/static/partials/org-view.html b/static/partials/org-view.html index fc373e528..964f7768f 100644 --- a/static/partials/org-view.html +++ b/static/partials/org-view.html @@ -9,15 +9,16 @@
-
- - - - {{ team.name }} - - - - {{ team.name }} - +
+
+ + + {{ team.name }} + + + {{ team.name }} + +
+