mirror of
https://github.com/thomiceli/opengist.git
synced 2024-12-22 20:42:40 +00:00
Fix nits typos and translation (#388)
This commit is contained in:
parent
8f482bce33
commit
6a8e827d61
4 changed files with 4 additions and 3 deletions
|
@ -261,6 +261,7 @@ admin.invitations.code: Code
|
||||||
admin.invitations.copy_link: Copy link
|
admin.invitations.copy_link: Copy link
|
||||||
admin.invitations.uses: Uses
|
admin.invitations.uses: Uses
|
||||||
admin.invitations.expired: Expired
|
admin.invitations.expired: Expired
|
||||||
|
admin.invitations.delete_confirm: Do you want to delete this invitation ?
|
||||||
|
|
||||||
flash.admin.user-deleted: User has been deleted
|
flash.admin.user-deleted: User has been deleted
|
||||||
flash.admin.gist-deleted: Gist has been deleted
|
flash.admin.gist-deleted: Gist has been deleted
|
||||||
|
|
2
templates/pages/admin_invitations.html
vendored
2
templates/pages/admin_invitations.html
vendored
|
@ -55,7 +55,7 @@
|
||||||
<td class="relative whitespace-nowrap py-2 pl-3 pr-4 text-right text-sm font-medium sm:pr-0">
|
<td class="relative whitespace-nowrap py-2 pl-3 pr-4 text-right text-sm font-medium sm:pr-0">
|
||||||
<form action="{{ $.c.ExternalUrl }}/admin-panel/invitations/{{ $invitation.ID }}/delete" method="POST">
|
<form action="{{ $.c.ExternalUrl }}/admin-panel/invitations/{{ $invitation.ID }}/delete" method="POST">
|
||||||
{{ $.csrfHtml }}
|
{{ $.csrfHtml }}
|
||||||
<button type="submit" onclick="return confirm('{{ $.locale.Tr "admin.users.delete_confirm" }}')" class="text-rose-500 hover:text-rose-600">{{ $.locale.Tr "admin.delete" }}</button>
|
<button type="submit" onclick="return confirm('{{ $.locale.Tr "admin.invitations.delete_confirm" }}')" class="text-rose-500 hover:text-rose-600">{{ $.locale.Tr "admin.delete" }}</button>
|
||||||
</form>
|
</form>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
2
templates/pages/gist.html
vendored
2
templates/pages/gist.html
vendored
|
@ -38,7 +38,7 @@
|
||||||
</div>
|
</div>
|
||||||
{{ if $file.Truncated }}
|
{{ if $file.Truncated }}
|
||||||
<div class="text-sm px-4 py-1.5 border-t-1 border-gray-200 dark:border-gray-700">
|
<div class="text-sm px-4 py-1.5 border-t-1 border-gray-200 dark:border-gray-700">
|
||||||
{{ $.locale.Tr "gist.file-truncated" }} <a href="{{ $.c.ExternalUrl }}/{{ $.gist.User.Username }}/{{ $.gist.Identifier }}/raw/{{ $.commit }}/{{$file.Filename}}">{{ $.locale.Tr "gist.watch-full-file" }}.</a>
|
{{ $.locale.Tr "gist.file-truncated" }} <a href="{{ $.c.ExternalUrl }}/{{ $.gist.User.Username }}/{{ $.gist.Identifier }}/raw/{{ $.commit }}/{{$file.Filename}}">{{ $.locale.Tr "gist.watch-full-file" }}</a>
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ if and (not $csv) (isCsv $file.Filename) }}
|
{{ if and (not $csv) (isCsv $file.Filename) }}
|
||||||
|
|
2
templates/pages/gist_embed.html
vendored
2
templates/pages/gist_embed.html
vendored
|
@ -8,7 +8,7 @@
|
||||||
</div>
|
</div>
|
||||||
{{ if $file.Truncated }}
|
{{ if $file.Truncated }}
|
||||||
<div class="text-xs px-4 bg-gray-50 py-1.5 border-b-1 border-gray-100 dark:border-gray-700">
|
<div class="text-xs px-4 bg-gray-50 py-1.5 border-b-1 border-gray-100 dark:border-gray-700">
|
||||||
{{ $.locale.Tr "gist.file-truncated" }} <a target="_blank" class="text-primary-600" href="{{ $.baseHttpUrl }}/{{ $.gist.User.Username }}/{{ $.gist.Identifier }}/raw/HEAD/{{$file.Filename}}">{{ $.locale.Tr "gist.watch-full-file" }}.</a>
|
{{ $.locale.Tr "gist.file-truncated" }} <a target="_blank" class="text-primary-600" href="{{ $.baseHttpUrl }}/{{ $.gist.User.Username }}/{{ $.gist.Identifier }}/raw/HEAD/{{$file.Filename}}">{{ $.locale.Tr "gist.watch-full-file" }}</a>
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ $csv := csvFile $file.File }}
|
{{ $csv := csvFile $file.File }}
|
||||||
|
|
Loading…
Reference in a new issue