Skip to content

Commit

Permalink
Merge pull request #2 from lzambra2/yorkspace
Browse files Browse the repository at this point in the history
Cleaning template code.
  • Loading branch information
amtuannguyen authored Oct 25, 2023
2 parents 56cfb16 + df8f9dc commit 003ea30
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 46 deletions.
25 changes: 5 additions & 20 deletions src/app/footer/footer.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,35 +11,20 @@
<div class="bottom-footer p-1 d-flex justify-content-center align-items-center text-white">
<div class="content-container">
<p class="m-0">
<!--
<a class="text-white"
href="http://www.dspace.org/">{{ 'footer.link.dspace' | translate}}</a>
{{ 'footer.copyright' | translate:{year: dateObj | date:'y'} }}
<a class="text-white"
href="https://www.lyrasis.org/">{{ 'footer.link.lyrasis' | translate}}</a>
-->
</p>
<ul class="footer-info list-unstyled small d-flex justify-content-center mb-0">
<!--
<li>
<a class="text-white" href="javascript:void(0);"
(click)="showCookieSettings()">{{ 'footer.link.cookies' | translate}}</a>
</li>
-->
<li *ngIf="showPrivacyPolicy">
<a class="text-white"
routerLink="info/privacy">{{ 'footer.link.privacy-policy' | translate}}</a>
<a class="text-white" routerLink="info/privacy">{{ 'footer.link.privacy-policy' | translate}}</a>
</li>
<li *ngIf="showEndUserAgreement">
<a class="text-white"
routerLink="info/end-user-agreement">{{ 'footer.link.end-user-agreement' | translate}}</a>
<a class="text-white" routerLink="info/end-user-agreement">{{ 'footer.link.end-user-agreement' |
translate}}</a>
</li>
<li>
<a class="text-white"
routerLink="info/feedback">{{ 'footer.link.feedback' | translate}}</a>
<a class="text-white" routerLink="info/feedback">{{ 'footer.link.feedback' | translate}}</a>
</li>
</ul>
</div>
</div>
<!-- Copyright -->
</footer>
</footer>
2 changes: 0 additions & 2 deletions src/app/footer/footer.component.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { Component, Optional } from '@angular/core';
import { hasValue } from '../shared/empty.util';
import { KlaroService } from '../shared/cookies/klaro.service';
import { environment } from '../../environments/environment';

@Component({
selector: 'ds-footer',
Expand Down
2 changes: 1 addition & 1 deletion src/assets/i18n/en.json5
Original file line number Diff line number Diff line change
Expand Up @@ -4726,7 +4726,7 @@

"thumbnail.person.placeholder": "No Profile Picture Available",

title: "YorkSpace",
"title": "YorkSpace",

"vocabulary-treeview.header": "Hierarchical tree view",

Expand Down
2 changes: 1 addition & 1 deletion src/assets/i18n/fr.json5
Original file line number Diff line number Diff line change
Expand Up @@ -4016,7 +4016,7 @@

"thumbnail.person.placeholder": "Aucune photo de profil disponible",

title: "YorkSpace",
"title": "YorkSpace",

"vocabulary-treeview.header": "Arborescence hiérarchique",

Expand Down
25 changes: 5 additions & 20 deletions src/themes/yorkspace/app/footer/footer.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,35 +11,20 @@
<div class="bottom-footer p-1 d-flex justify-content-center align-items-center text-white">
<div class="content-container">
<p class="m-0">
<!--
<a class="text-white"
href="http://www.dspace.org/">{{ 'footer.link.dspace' | translate}}</a>
{{ 'footer.copyright' | translate:{year: dateObj | date:'y'} }}
<a class="text-white"
href="https://www.lyrasis.org/">{{ 'footer.link.lyrasis' | translate}}</a>
-->
</p>
<ul class="footer-info list-unstyled small d-flex justify-content-center mb-0">
<!--
<li>
<a class="text-white" href="javascript:void(0);"
(click)="showCookieSettings()">{{ 'footer.link.cookies' | translate}}</a>
</li>
-->
<li *ngIf="showPrivacyPolicy">
<a class="text-white"
routerLink="info/privacy">{{ 'footer.link.privacy-policy' | translate}}</a>
<a class="text-white" routerLink="info/privacy">{{ 'footer.link.privacy-policy' | translate}}</a>
</li>
<li *ngIf="showEndUserAgreement">
<a class="text-white"
routerLink="info/end-user-agreement">{{ 'footer.link.end-user-agreement' | translate}}</a>
<a class="text-white" routerLink="info/end-user-agreement">{{ 'footer.link.end-user-agreement' |
translate}}</a>
</li>
<li>
<a class="text-white"
routerLink="info/feedback">{{ 'footer.link.feedback' | translate}}</a>
<a class="text-white" routerLink="info/feedback">{{ 'footer.link.feedback' | translate}}</a>
</li>
</ul>
</div>
</div>
<!-- Copyright -->
</footer>
</footer>
2 changes: 1 addition & 1 deletion src/themes/yorkspace/assets/i18n/en.json5
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"yorkspace.home.description.part1": "YorkSpace is York University's Institutional Repository. It supports",

"yorkspace.home.description.part2": "by providing York community members with a place to preserve their research online in an institutional context.",

"yorkspace.home.yorku-senate-policy-open-access-url": "https://www.library.yorku.ca/web/research-learn/research/oapublishing/york-university-senate-policy-on-open-access/",

"yorkspace.home.yorku-senate-policy-open-access": "York University's Senate Policy on Open Access",
Expand Down
2 changes: 1 addition & 1 deletion src/themes/yorkspace/assets/i18n/fr.json5
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"yorkspace.home.description.part1": "YorkSpace est le Dépôt institutionnel de l'Université York. Il soutient la",

"yorkspace.home.description.part2": "en offrant aux membres de la communauté de York un espace pour préserver leurs recherches en ligne dans un contexte institutionnel.",

"yorkspace.home.yorku-senate-policy-open-access-url": "https://www.library.yorku.ca/web/research-learn/research/oapublishing/york-university-senate-policy-on-open-access/",

"yorkspace.home.yorku-senate-policy-open-access": "Politique du Sénat de l'Université York sur l'accès libre",
Expand Down

0 comments on commit 003ea30

Please sign in to comment.