~jan0sch/smederee

Showing details for patch f7d8ec267b3c82a0665d5db84289892a499c3bec.
2023-02-01 (Wed), 4:11 PM - Jens Grassel - f7d8ec267b3c82a0665d5db84289892a499c3bec

HTML/CSS: Simplify repo owner menu item logic.

Summary of changes
1 files modified with 0 lines added and 2 lines removed
  • modules/hub/src/main/twirl/de/smederee/hub/views/showRepositoryMenu.scala.html with 0 added and 2 removed lines
diff -rN -u old-smederee/modules/hub/src/main/twirl/de/smederee/hub/views/showRepositoryMenu.scala.html new-smederee/modules/hub/src/main/twirl/de/smederee/hub/views/showRepositoryMenu.scala.html
--- old-smederee/modules/hub/src/main/twirl/de/smederee/hub/views/showRepositoryMenu.scala.html	2025-01-31 22:43:25.629025692 +0000
+++ new-smederee/modules/hub/src/main/twirl/de/smederee/hub/views/showRepositoryMenu.scala.html	2025-01-31 22:43:25.629025692 +0000
@@ -21,8 +21,6 @@
     @if(activeUri.exists(_ === repositoryBaseUri)) {
       @if(user.exists(_.uid === vcsRepository.owner.uid)) {
       <li class="pure-menu-item"><a class="pure-menu-link" href="@repositoryBaseUri.addSegment("edit")">@icon(baseUri)("edit-2") @Messages("repository.menu.edit")</a></li>
-      } else { }
-      @if(user.exists(_.uid === vcsRepository.owner.uid)) {
       <li class="pure-menu-item"><a class="pure-menu-link" href="@repositoryBaseUri.addSegment("delete")">@icon(baseUri)("trash-2") @Messages("repository.menu.delete")</a></li>
       } else { }
     } else { }