Browse Source

Format collage subscription alerts correctly

spaghetti 7 years ago
parent
commit
1a7c368baf
1 changed files with 8 additions and 12 deletions
  1. 8
    12
      sections/userhistory/subscribed_collages.php

+ 8
- 12
sections/userhistory/subscribed_collages.php View File

@@ -76,7 +76,7 @@ if (!$NumResults) {
76 76
   $ShowGroups = 0;
77 77
 
78 78
   foreach ($CollageSubs as $Collage) {
79
-    unset($TorrentTable);
79
+    $TorrentTable = '';
80 80
 
81 81
     list($CollageID, $CollageName, $CollageSize, $LastVisit) = $Collage;
82 82
     $RS = $DB->query("
@@ -104,18 +104,14 @@ if (!$NumResults) {
104 104
       $Group = $TorrentList[$GroupID];
105 105
       extract(Torrents::array_group($Group));
106 106
 
107
-      $DisplayName = '';
108
-
109 107
       $TorrentTags = new Tags($TagList);
110 108
 
111
-      if (!empty($ExtendedArtists[1]) || !empty($ExtendedArtists[4]) || !empty($ExtendedArtists[5]) || !empty($ExtendedArtists[6])) {
112
-        unset($ExtendedArtists[2]);
113
-        unset($ExtendedArtists[3]);
114
-        $DisplayName .= Artists::display_artists($ExtendedArtists);
115
-      } elseif (count($Artists) > 0) {
116
-        $DisplayName .= Artists::display_artists(array('1' => $Artists));
109
+      $DisplayName = '';
110
+
111
+      if (isset($Artists)) {
112
+        $DisplayName .= '<div class="torrent_artists">'.Artists::display_artists($Artists).'</div> ';
117 113
       }
118
-      $DisplayName .= "<a href=\"torrents.php?id=$GroupID\" class=\"tooltip\" title=\"View torrent group\" ";
114
+      $DisplayName .= "<a class=\"torrent_title\" href=\"torrents.php?id=$GroupID\" ";
119 115
       if (!isset($LoggedUser['CoverArt']) || $LoggedUser['CoverArt']) {
120 116
         $DisplayName .= "onmouseover=\"getCover(event)\" data-cover=\"".ImageTools::process($WikiImage)."\" onmouseleave=\"ungetCover(event)\" ";
121 117
       }
@@ -151,7 +147,7 @@ if (!$NumResults) {
151 147
         foreach ($Torrents as $TorrentID => $Torrent) {
152 148
           $SnatchedTorrentClass = $Torrent['IsSnatched'] ? ' snatched_torrent' : '';
153 149
 ?>
154
-  <tr class="group_torrent groupid_<?=$CollageID?>_<?=$GroupID?> edition_<?=$EditionID?> hidden<?=$SnatchedTorrentClass . $SnatchedGroupClass?>">
150
+  <tr class="group_torrent groupid_<?=$CollageID?>_<?=$GroupID?> hidden<?=$SnatchedTorrentClass . $SnatchedGroupClass?>">
155 151
     <td colspan="3">
156 152
       <span>
157 153
         <a href="torrents.php?action=download&amp;id=<?=$TorrentID?>&amp;authkey=<?=$LoggedUser['AuthKey']?>&amp;torrent_pass=<?=$LoggedUser['torrent_pass']?>" title="Download" class="brackets tooltip">DL</a>
@@ -170,7 +166,7 @@ if (!$NumResults) {
170 166
 
171 167
         list($TorrentID, $Torrent) = each($Torrents);
172 168
 
173
-        $DisplayName = "<a href=\"torrents.php?id=$GroupID\" class=\"tooltip\" title=\"View torrent group\" ";
169
+        $DisplayName = "<a class=\"torrent_title\" href=\"torrents.php?id=$GroupID\" ";
174 170
         if (!isset($LoggedUser['CoverArt']) || $LoggedUser['CoverArt']) {
175 171
           $DisplayName .= "onmouseover=\"getCover(event)\" data-cover=\"".ImageTools::process($WikiImage)."\" onmouseleave=\"ungetCover(event)\" ";
176 172
         }

Loading…
Cancel
Save