Skip to content

Commit

Permalink
Fix "Report barrier" mailto link
Browse files Browse the repository at this point in the history
  • Loading branch information
Phu2 committed Jul 9, 2024
1 parent 80ffd63 commit c7904d7
Show file tree
Hide file tree
Showing 11 changed files with 19 additions and 10 deletions.
2 changes: 1 addition & 1 deletion gatsby/lobid/src/components/footer.html.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default class Footer extends React.Component {
{this.props.privacy}
</a>
{" | "}
<a href="https://www.hbz-nrw.de/barrierefreiheit">
<a href={this.props.accessibilityLink}>
{this.props.accessibility}
</a>
{" | "}
Expand Down
4 changes: 2 additions & 2 deletions gatsby/lobid/src/components/member.html.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ export class Member extends React.Component {
</p>
{this.state.infoToggledProjects ? this.getFormerProjects() : ""}
<Publications pubs={this.props.pubs} publications={this.props.publications} />
<Footer companyDetails={this.props.companyDetails} privacy={this.props.privacy} />
</div>
<Footer companyDetails={this.props.companyDetails} privacy={this.props.privacy} accessibility={this.props.accessibility} accessibilityLink={this.props.accessibilityLink} />
</div>
</div>
);
}
Expand Down
4 changes: 2 additions & 2 deletions gatsby/lobid/src/components/product.html.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ export class Product extends React.Component {
{this.props.product.membership.length > 0 && <p className="lead">{this.props.memberName}</p>}
<Membership membership={this.props.product.membership.filter((member) => !member.endDate).map((member) => [member, getMemberDetails(this.props.members, member)])} lang={this.props.lang}/>
<Publications pubs={this.props.pubs} publications={this.props.publications} />
<Footer companyDetails={this.props.companyDetails} privacy={this.props.privacy} />
</div>
<Footer companyDetails={this.props.companyDetails} privacy={this.props.privacy} accessibility={this.props.accessibility} accessibilityLink={this.props.accessibilityLink} />
</div>
</div>
);
}
Expand Down
4 changes: 2 additions & 2 deletions gatsby/lobid/src/components/project.html.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ export class Project extends React.Component {
{this.props.project.membership.length > 0 && <p className="lead">{this.props.memberName}</p>}
<Membership membership={this.props.project.membership.filter((member) => !member.endDate).map((member) => [member, getMemberDetails(this.props.members, member)])} lang={this.props.lang}/>
<Publications pubs={this.props.pubs} publications={this.props.publications} />
<Footer companyDetails={this.props.companyDetails} privacy={this.props.privacy} />
</div>
<Footer companyDetails={this.props.companyDetails} privacy={this.props.privacy} accessibility={this.props.accessibility} accessibilityLink={this.props.accessibilityLink} />
</div>
</div>
);
}
Expand Down
2 changes: 1 addition & 1 deletion gatsby/lobid/src/components/team.html.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ export class Team extends React.Component {
</div>
</div>
</div>
<Footer companyDetails={this.props.companyDetails} privacy={this.props.privacy} />
<Footer companyDetails={this.props.companyDetails} privacy={this.props.privacy} accessibility={this.props.accessibility} accessibilityLink={this.props.accessibilityLink} />
</div>
);
}
Expand Down
2 changes: 1 addition & 1 deletion gatsby/lobid/src/components/visual.html.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export class Visual extends Component {
</p>
<div id="lobid-network" ref={this.appRef} />
</div>
<Footer companyDetails={this.props.companyDetails} privacy={this.props.privacy}/>
<Footer companyDetails={this.props.companyDetails} privacy={this.props.privacy} accessibility={this.props.accessibility} accessibilityLink={this.props.accessibilityLink} />
</div>
);
}
Expand Down
3 changes: 2 additions & 1 deletion gatsby/lobid/src/templates/markdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ export default function Template({ data, pageContext }) {
privacy={pageContext.lang==="de"?"Datenschutz":"Privacy"}
contactPointId="mailto:[email protected]"
warranty={pageContext.lang==="de"?"Gewährleistung":"Warranty"}
accessibility={pageContext.lang==="de"?"Barrierefreiheit":"Accessibility"}
accessibility={pageContext.lang==="de"?"Barrierefreiheit":"<i className=\"fa-brands fa-mastodon\" aria-hidden=\"true\"></i> Report barrier"}
accessibilityLink={pageContext.lang==="de"?"https://www.hbz-nrw.de/barrierefreiheit":"mailto:[email protected]?subject=Report%20barrier"}
/>
</div>
)
Expand Down
2 changes: 2 additions & 0 deletions gatsby/lobid/src/templates/member.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ export default function MemberPage({ data, location, pageContext }) {
memberFormerName="Ehemalige"
companyDetails="Impressum"
privacy="Datenschutz"
accessibility={pageContext.lang==="de"?"Barrierefreiheit":"<i className=\"fa-brands fa-mastodon\" aria-hidden=\"true\"></i> Report barrier"}
accessibilityLink={pageContext.lang==="de"?"https://www.hbz-nrw.de/barrierefreiheit":"mailto:[email protected]?subject=Report%20barrier"}
contactPointId="mailto:[email protected]"
lang="de"
/>);
Expand Down
2 changes: 2 additions & 0 deletions gatsby/lobid/src/templates/product.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ export default function ProductPage({ data, location, pageContext }) {
isRelatedTo="Bezug"
companyDetails="Impressum"
privacy="Datenschutz"
accessibility={pageContext.lang==="de"?"Barrierefreiheit":"<i className=\"fa-brands fa-mastodon\" aria-hidden=\"true\"></i> Report barrier"}
accessibilityLink={pageContext.lang==="de"?"https://www.hbz-nrw.de/barrierefreiheit":"mailto:[email protected]?subject=Report%20barrier"}
contactPointId="mailto:[email protected]"
memberName="Team"
lang="de"
Expand Down
2 changes: 2 additions & 0 deletions gatsby/lobid/src/templates/project.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ export default function ProjectPage({ data, location, pageContext }) {
result="Ergebnis"
companyDetails="Impressum"
privacy="Datenschutz"
accessibility={pageContext.lang==="de"?"Barrierefreiheit":"<i className=\"fa-brands fa-mastodon\" aria-hidden=\"true\"></i> Report barrier"}
accessibilityLink={pageContext.lang==="de"?"https://www.hbz-nrw.de/barrierefreiheit":"mailto:[email protected]?subject=Report%20barrier"}
contactPointId="mailto:[email protected]"
memberName="Team"
lang="de"
Expand Down
2 changes: 2 additions & 0 deletions gatsby/lobid/src/templates/team.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ export default ({ data, location, pageContext }) => {
memberFormerName={pageContext.lang==="de"?"Ehemalige":"Former members"}
companyDetails={pageContext.lang==="de"?"Impressum":"Imprint"}
privacy={pageContext.lang==="de"?"Datenschutz":"Privacy"}
accessibility={pageContext.lang==="de"?"Barrierefreiheit":"Report barrier"}
accessibilityLink={pageContext.lang==="de"?"https://www.hbz-nrw.de/barrierefreiheit":"mailto:[email protected]?subject=Report%20barrier"}
contactPointId="mailto:[email protected]"
/>
)};
Expand Down

0 comments on commit c7904d7

Please sign in to comment.