mirror of
https://github.com/eduardogsilva/wireguard_webadmin.git
synced 2025-08-04 02:04:27 +02:00
Peer list translation
This commit is contained in:
parent
6836621b80
commit
707188b89a
4 changed files with 267 additions and 59 deletions
|
@ -5,6 +5,7 @@ from django.contrib import messages
|
|||
from django.contrib.auth.decorators import login_required
|
||||
from django.http import Http404
|
||||
from django.shortcuts import get_object_or_404, redirect, render
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
|
||||
from user_manager.models import UserAcl
|
||||
from wgwadmlibrary.tools import check_sort_order_conflict, deduplicate_sort_order, default_sort_peers, \
|
||||
|
@ -46,7 +47,7 @@ def generate_peer_default(wireguard_instance):
|
|||
|
||||
@login_required
|
||||
def view_wireguard_peer_list(request):
|
||||
page_title = 'WireGuard Peer List'
|
||||
page_title = _('WireGuard Peer List')
|
||||
user_acl = get_object_or_404(UserAcl, user=request.user)
|
||||
wireguard_instances = user_allowed_instances(user_acl)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue