From: David ‘Bombe’ Roden Date: Sat, 28 Jul 2012 10:17:22 +0000 (+0200) Subject: Make it possible to edit the remix information of a track. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=041a04475170fc2c188ca4b731d94ae54d9911ac;p=demoscenemusic.git Make it possible to edit the remix information of a track. --- diff --git a/src/main/java/net/pterodactylus/demoscenemusic/page/admin/EditTrackPage.java b/src/main/java/net/pterodactylus/demoscenemusic/page/admin/EditTrackPage.java index c1f999f..af02681 100644 --- a/src/main/java/net/pterodactylus/demoscenemusic/page/admin/EditTrackPage.java +++ b/src/main/java/net/pterodactylus/demoscenemusic/page/admin/EditTrackPage.java @@ -72,6 +72,10 @@ public class EditTrackPage extends AdminBasePage { if (name.length() > 0) { track.setName(name); } + String remix = request.getServletRequest().getParameter("remix").trim(); + if (remix.length() > 0) { + track.setRemix(remix); + } /* process properties. */ processProperties(request, track); diff --git a/src/main/resources/templates/admin.edit-track b/src/main/resources/templates/admin.edit-track index 2cbc3a9..e83ee90 100644 --- a/src/main/resources/templates/admin.edit-track +++ b/src/main/resources/templates/admin.edit-track @@ -10,6 +10,10 @@ Name: +
+ Remix: + +
<%foreach track.properties property>