1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-02-09 12:13:52 +02:00

Open GitHub edit links in new tabs (#856)

I find this nicer since you don't lose your location in the book then.
This commit is contained in:
Martin Geisler 2023-06-22 15:50:20 +02:00 committed by GitHub
parent 5e42cc3548
commit 5d71f8a326
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -207,12 +207,14 @@
{{/if}}
{{#if git_repository_edit_url}}
{{#if (eq language "en")}}
<a href="{{git_repository_edit_url}}" title="Suggest an edit" aria-label="Suggest an edit">
<a href="{{git_repository_edit_url}}" title="Suggest an edit" aria-label="Suggest an edit"
target="_blank">
<i id="git-edit-button" class="fa fa-edit"></i>
</a>
{{else}}
<a href="https://github.com/google/comprehensive-rust/edit/main/po/{{language}}.po"
title="Suggest an edit to the translation" aria-label="Suggest an edit to the translation">
title="Suggest an edit to the translation" aria-label="Suggest an edit to the translation"
target="_blank">
<i id="git-edit-button" class="fa fa-edit"></i>
</a>
{{/if}}