From 66701452a9183d71a01cadda2b163118687c689c Mon Sep 17 00:00:00 2001 From: Camille Simiand <camille.simiand@tetras-libre.fr> Date: Tue, 1 Feb 2022 13:00:19 +0100 Subject: [PATCH] Add edit video url link and translations --- templates/capsule/index.html.twig | 8 ++++++++ translations/messages.en.yaml | 2 ++ translations/messages.fr.yaml | 2 ++ 3 files changed, 12 insertions(+) diff --git a/templates/capsule/index.html.twig b/templates/capsule/index.html.twig index 64c31b6..f12717e 100644 --- a/templates/capsule/index.html.twig +++ b/templates/capsule/index.html.twig @@ -72,6 +72,14 @@ {{ 'capsule.edit_permissions.link'|trans }} </a> </div> + + <div class="list-item text-nowrap"> + <a href="/capsule/{{ capsule.getId() }}/edit_video_url" class="links text-decoration-none"> + <i class="fas fa-link m-2"></i> + {{ 'capsule.edit.video_url.link'|trans }} + </a> + </div> + <div class="list-item text-nowrap"> <a href="/capsule/duplicate/{{ capsule.getId() }}" class="links text-decoration-none"> <i class="far fa-clone m-2"></i> diff --git a/translations/messages.en.yaml b/translations/messages.en.yaml index 5c341f9..91308a7 100644 --- a/translations/messages.en.yaml +++ b/translations/messages.en.yaml @@ -70,6 +70,8 @@ capsule: link: Edit capsule not_allowed: You are not allowed to edit this capsule not_found: The capsule was not found + video_url: + link: Edit video URL duplicate: link: Duplicate capsule title: Duplicate capsule diff --git a/translations/messages.fr.yaml b/translations/messages.fr.yaml index 6342e3e..dcd52b4 100644 --- a/translations/messages.fr.yaml +++ b/translations/messages.fr.yaml @@ -67,6 +67,8 @@ capsule: link: Modifier la capsule not_allowed: Vous n'êtes pas autorisé a modifier cette capsule not_found: La capsule n'existe pas + video_url: + link: Modifier l'URL de la vidéo duplicate: link: Dupliquer la capsule title: Dupliquer la capsule -- GitLab