diff --git a/.drone.yml b/.drone.yml index 7cdfaae7b..71b076bda 100644 --- a/.drone.yml +++ b/.drone.yml @@ -23,7 +23,9 @@ publish: when: repo: drone/drone - s3: + # sync the documentation with the s3 bucket + + s3_sync: acl: public-read region: us-east-1 bucket: readme.drone.io @@ -31,7 +33,22 @@ publish: secret_key: $$AWS_SECRET source: /drone/tmp/ target: / - recursive: true + exclude: "*.svg" + when: + repo: drone/drone + branch: "0.4.0" + + s3_sync: + acl: public-read + region: us-east-1 + bucket: readme.drone.io + access_key: $$AWS_KEY + secret_key: $$AWS_SECRET + source: /drone/tmp/ + target: / + exclude: "*" + include: "**.svg" + content_type: "image/svg+xml" when: repo: drone/drone branch: "0.4.0" diff --git a/model/repo.go b/model/repo.go index 1010453e1..5574a07d1 100644 --- a/model/repo.go +++ b/model/repo.go @@ -63,6 +63,10 @@ func GetRepoList(db meddler.DB, user *User) ([]*Repo, error) { func GetRepoListOf(db meddler.DB, listof []*RepoLite) ([]*Repo, error) { var repos = []*Repo{} var size = len(listof) + if size > 999 { + size = 999 + listof = listof[:999] + } var qs = make([]string, size, size) var in = make([]interface{}, size, size) for i, repo := range listof { diff --git a/static/styles/search.sass b/static/styles/search.sass index 0944287c9..f4a19dc18 100644 --- a/static/styles/search.sass +++ b/static/styles/search.sass @@ -13,7 +13,7 @@ .tt-selectable:hover, .tt-cursor - background:#f4f4f4; + background:#eff1f5; .tt-selectable padding: 1rem 0.75rem;