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:
parent
5e42cc3548
commit
5d71f8a326
@ -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}}
|
||||
|
Loading…
x
Reference in New Issue
Block a user