This repository has been archived by the owner on Aug 5, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Load a larger number of repositories and make changes to the site to …
…accomodate this.
- Loading branch information
1 parent
e8647f5
commit 86ba16a
Showing
31 changed files
with
620 additions
and
345 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
81 changes: 46 additions & 35 deletions
81
src/app/components/explore-code/agency/agency.template.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,53 @@ | ||
<div *ngIf="agency" class="agency-container"> | ||
<h1>{{ agency.name }}</h1> | ||
|
||
<div *ngIf="hasRepos" class="repos-container"> | ||
<p class="repos-count"> | ||
{{ repos.length }} Featured {{ "Projects" | pluralize : repos.length }} | ||
</p> | ||
<ul class="repos-list usa-unstyled-list"> | ||
<li *ngFor="let repo of repos" class="repo"> | ||
|
||
<span *ngIf="repo.openSourceProject==1 || repo.governmentWideReuseProject==1"> | ||
<a routerLink="/explore-code/repos/{{repo.repoID}}"> | ||
<div class="card card--focusable"> | ||
<h3 class="repo-name">{{ repo.name }}</h3> | ||
<p class="repo-description"> | ||
{{ repo.description | truncate : 200 }} | ||
</p> | ||
<ul class="usa-unstyled-list repo-features"> | ||
<li *ngFor="let language of repo.codeLanguage" class="language"> | ||
<i class="icon devicons devicons-{{language.language | lowercase | languageIcon }}"></i> | ||
<span>{{ language.language }}</span> | ||
</li> | ||
<li> | ||
<i class="icon fa fa-code"></i> | ||
<span *ngIf="repo.openSourceProject==1 && repo.governmentWideReuseProject==0 ">Open Source</span> | ||
<span *ngIf="repo.governmentWideReuseProject==1 && repo.openSourceProject==0">Government-Wide Reuse</span> | ||
<span *ngIf="repo.openSourceProject==1 && repo.governmentWideReuseProject==1 ">Open Source</span> | ||
</li> | ||
</ul> | ||
</div> | ||
</a> | ||
</span> | ||
</li> | ||
</ul> | ||
<div class="loading-dialog" *ngIf="isLoading"> | ||
<p>Loading Results...</p> | ||
<img alt="United States of America Flag" width="44" height="30" src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDIwLjEuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgogICB2aWV3Qm94PSIwIDAgMzAwIDIwNy41IiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCAzMDAgMjA3LjU7IiB4b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NS0xMi43LTUwLDBjLTIzLjQsMTEuOS01MCwwLTUwLDBTNzYuOS02LjUsNTAsNS43QzIwLjUsMTksMCw1LjcsMCw1Ljd2MTk2CiAgICAgIGMwLDAsMjIsMTEuOCw1MCwwYzI3LjgtMTEuNyw1MCwwLDUwLDBzMjYuNiwxMiw1MCwwczUwLDAsNTAsMHMyMi45LDExLjcsNTAuMSwwQzI3Ni43LDE5MC4yLDI5OS4zLDIwMS4zLDMwMCwyMDEuN0wzMDAsMjAxLjd6Ii8+CiAgPC9nPgogIDxnIGlkPSJmbGFnIj4KICAgIDxyZWN0IGNsYXNzPSJzdDAiIHdpZHRoPSIzMDAiIGhlaWdodD0iMjA3LjUiLz4KICAgIDxyZWN0IHg9IjEzNC45IiB5PSIzMC40IiBjbGFzcz0ic3QxIiB3aWR0aD0iMTY1LjEiIGhlaWdodD0iMjcuOSIvPgogICAgPHJlY3QgeD0iMTM0LjkiIHk9IjkwLjciIGNsYXNzPSJzdDEiIHdpZHRoPSIxNjUuMSIgaGVpZ2h0PSIyNy45Ii8+CiAgICA8cmVjdCB5PSIxNDkuNSIgY2xhc3M9InN0MSIgd2lkdGg9IjMwMCIgaGVpZ2h0PSIyNy45Ii8+CiAgICA8cmVjdCBjbGFzcz0ic3QyIiB3aWR0aD0iMTM0LjkiIGhlaWdodD0iMTE4LjUiLz4KICA8L2c+CjwvZGVmcz4KICA8dXNlIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHhsaW5rOmhyZWY9IiNmbGFnIiBtYXNrPSJ1cmwoI2ZsYWdNYXNrKSIvPgo8L3N2Zz4K" /> | ||
</div> | ||
|
||
<div *ngIf="!hasRepos"> | ||
<p> | ||
No repositories found. | ||
</p> | ||
<div *ngIf="!isLoading"> | ||
<div *ngIf="hasRepos" class="repos-container"> | ||
<p class="repos-count"> | ||
{{ allRepos.length }} Featured {{ "Projects" | pluralize : allRepos.length }} | ||
</p> | ||
<ul | ||
class="repos-list usa-unstyled-list" | ||
infinite-scroll | ||
[infiniteScrollDistance]="2" | ||
[infiniteScrollThrottle]="500" | ||
(scrolled)="onScroll()"> | ||
<li *ngFor="let repo of repos" class="repo"> | ||
|
||
<span *ngIf="repo.permissions.usageType === 'openSource' || repo.permissions.usageType === 'governmentWideReuse'"> | ||
<a routerLink="/explore-code/agencies/{{agency.id}}/repos/{{repo.name}}"> | ||
<div class="card card--focusable"> | ||
<h3 class="repo-name">{{ repo.name }}</h3> | ||
<p class="repo-description"> | ||
{{ repo.description | truncate : 200 }} | ||
</p> | ||
<ul class="usa-unstyled-list repo-features"> | ||
<li *ngFor="let language of repo.languages" class="language"> | ||
<i class="icon devicons devicons-{{language | lowercase | languageIcon }}"></i> | ||
<span>{{ language }}</span> | ||
</li> | ||
<li> | ||
<i class="icon fa fa-code"></i> | ||
<span *ngIf="repo.permissions.usageType === 'openSource'">Open Source</span> | ||
<span *ngIf="repo.permissions.usageType === 'governmentWideReuse'">Government-Wide Reuse</span> | ||
</li> | ||
</ul> | ||
</div> | ||
</a> | ||
</span> | ||
</li> | ||
</ul> | ||
</div> | ||
|
||
<div *ngIf="!hasRepos"> | ||
<p> | ||
No repositories found. | ||
</p> | ||
</div> | ||
</div> | ||
</div> |
Oops, something went wrong.