Skip to content
Permalink
Browse files

moved REVIEW_DIV (#55); fixed indenting (non-semantic)

  • Loading branch information...
RocketMan committed Aug 17, 2019
1 parent ac5abd3 commit 1562ce1b2e285a06a78f5eaa7b1d1239da91bfd8
Showing with 23 additions and 23 deletions.
  1. +23 −23 ui/Playlists.php
@@ -1618,32 +1618,32 @@ private function swapNames($fullName) {
}
private function makeTrackRow($row, $playlist, $editMode) {
$retVal = "";
$editCell = $editMode ? $editCell = "<TD>" .
$this->makeEditDiv($row, $playlist) . "</TD>" : "";
$timeplayed = self::timestampToAMPM($row["created"]);
if(substr($row["artist"], 0, strlen(IPlaylist::SPECIAL_TRACK)) == IPlaylist::SPECIAL_TRACK) {
$retVal = "<TR class='songDivider'>".$editCell.
"<TD>".$timeplayed . "</TD><TD COLSPAN=4><HR></TD></TR>";
} else {
$reviewCell = $row["REVIEWED"] ? $REVIEW_DIV : "";
$artistName = $this->swapNames($row["artist"]);
$albumLink = $this->makeAlbumLink($row, true);
$retVal = "<TR class='songRow'>" . $editCell .
"<TD>" . $timeplayed . "</TD>" .
"<TD>" . $this->smartURL($artistName) . "</TD>" .
"<TD>" . $this->smartURL($row["track"]) . "</TD>" .
"<TD>" . $reviewCell . "</TD>" .
"<TD>" . $albumLink . "</TD>" .
$REVIEW_DIV = "<div class='albumReview'></div>";
$retVal = "";
$editCell = $editMode ? $editCell = "<TD>" .
$this->makeEditDiv($row, $playlist) . "</TD>" : "";
$timeplayed = self::timestampToAMPM($row["created"]);
if(substr($row["artist"], 0, strlen(IPlaylist::SPECIAL_TRACK)) == IPlaylist::SPECIAL_TRACK) {
$retVal = "<TR class='songDivider'>".$editCell.
"<TD>".$timeplayed . "</TD><TD COLSPAN=4><HR></TD></TR>";
} else {
$reviewCell = $row["REVIEWED"] ? $REVIEW_DIV : "";
$artistName = $this->swapNames($row["artist"]);
$albumLink = $this->makeAlbumLink($row, true);
$retVal = "<TR class='songRow'>" . $editCell .
"<TD>" . $timeplayed . "</TD>" .
"<TD>" . $this->smartURL($artistName) . "</TD>" .
"<TD>" . $this->smartURL($row["track"]) . "</TD>" .
"<TD>" . $reviewCell . "</TD>" .
"<TD>" . $albumLink . "</TD>" .
"</TR>\n";
}
return $retVal;
}
}
return $retVal;
}
private function emitPlaylistBody($playlist, $editMode) {
$REVIEW_DIV = "<div class='albumReview'></div>";
$header = $this->makePlaylistHeader($editMode);
$editCell = "";
echo "<TABLE class='playlistTable' CELLPADDING=1>";

0 comments on commit 1562ce1

Please sign in to comment.
You can’t perform that action at this time.