82 lines
3.8 KiB
HTML
Executable File
82 lines
3.8 KiB
HTML
Executable File
<div>
|
|
<div>
|
|
<div class="animated fadeInRight stepContent">
|
|
<div class="uk-alert uk-alert-danger" *ngIf="alertMessage" style="padding: 10px">
|
|
{{ alertMessage }}
|
|
</div>
|
|
<div class="uk-alert uk-alert-info">
|
|
Please make sure your repository is registered in
|
|
<a target="_blank" href="{{ sourceUrl }}">
|
|
<i class="fas fa-external-link-alt" style="margin-right:3px;"></i>{{ sourceTitle }}
|
|
</a>
|
|
. <br>
|
|
<span *ngIf="latestUpdate && (latestUpdate !== 'null')">
|
|
<b>Last Updated: </b>{{ latestUpdate }}
|
|
</span>
|
|
</div>
|
|
<div class="uk-margin-medium-top">
|
|
<div class="md-input-wrapper md-input-filled">
|
|
<label style="top: -16px;" class="">Select country</label>
|
|
<select class="md-input" (change)="getReposInCountry($event.target.value)">
|
|
<option value="" disabled>-- none selected --</option>
|
|
<option *ngFor="let country of countries; let i = index" value="{{ i }}">{{ country.name ? country.name :
|
|
country.code }}
|
|
</option>
|
|
</select>
|
|
<span class="md-input-bar"></span>
|
|
</div>
|
|
|
|
</div>
|
|
<div *ngIf="selectedCountry">
|
|
<div>
|
|
<h2 class="heading_b uk-margin-bottom uk-margin-medium-top">{{ sourceTitle }} Repositories in {{
|
|
selectedCountry.name ? selectedCountry.name : selectedCountry.code }}</h2>
|
|
</div>
|
|
<div *ngIf="loadingMessage" class="loading-big">
|
|
<div class="loader-big"
|
|
style="text-align: center; padding-top: 170px; color: rgb(47, 64, 80); font-weight: bold;">
|
|
{{ loadingMessage }}
|
|
</div>
|
|
<div class="whiteFilm"></div>
|
|
</div>
|
|
<div class="uk-alert uk-alert-warning" *ngIf="noRepositories">{{ noRepositories }}</div>
|
|
<div class="radioButtonForm" *ngIf="countryRepos && !loadingMessage">
|
|
|
|
|
|
<div class="md-input-wrapper md-input-filled uk-margin-medium-top uk-margin-bottom">
|
|
<label class="">Name of repository</label>
|
|
<input #searchInput id="searchInput" class="md-input" type="text"
|
|
[disabled]="(!hasSelectedCountry)" (keyup)="searchTerm($event)"/>
|
|
<span class="md-input-bar"></span>
|
|
</div>
|
|
|
|
|
|
<div class="form-group"
|
|
*ngFor="let repo of countryRepos | repoFilter: searchBox">
|
|
<label for="{{ repo.id }}"
|
|
class="uk-button uk-link-muted visible_uk_links"
|
|
style="display: block; text-align: left;">
|
|
<input type="radio" value="{{ repo.id }}" id="{{ repo.id }}" name="repositories"
|
|
(change)="onChooseRepository(repo.id)" [disabled]="repo.registeredby !== null">
|
|
<span>
|
|
{{(repo.officialname !== null) ? repo.officialname : repo.englishname }}
|
|
<span *ngIf="repo.registeredby !== null"
|
|
class="uk-badge uk-badge-warning uk-margin-small-right uk-margin-small-left">Registered</span>
|
|
<a target="_blank" href="{{ (repo.websiteurl !== null) ? repo.websiteurl : '' }}" [ngStyle]="">
|
|
<i class="fas fa-external-link-alt externalLink"></i>
|
|
</a>
|
|
</span>
|
|
<!--TODO uncomment if we still need the next button everywhere-->
|
|
<!--<div *ngIf="repoId == repo.id" class="uk-float-right">-->
|
|
<!--<a class="uk-button uk-button-primary uk-border-rounded uk-vertical-align-middle"-->
|
|
<!--style="border-color: grey;"-->
|
|
<!--(click)="pushedNext()">NEXT</a>-->
|
|
<!--</div>-->
|
|
</label>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|