Browse Source

Fix grouped torrents in collection update view

spaghetti 7 years ago
parent
commit
1753aa1b31
1 changed files with 14 additions and 10 deletions
  1. 14
    10
      sections/userhistory/subscribed_collages.php

+ 14
- 10
sections/userhistory/subscribed_collages.php View File

@@ -130,10 +130,14 @@ if (!$NumResults) {
130 130
       ob_start();
131 131
       if (count($Torrents) > 1 || $GroupCategoryID == 1) {
132 132
 ?>
133
-      <tr class="group discog<?=$SnatchedGroupClass?>" id="group_<?=$CollageID?><?=$GroupID?>">
133
+      <tr class="group<?=$SnatchedGroupClass?>" id="group_<?=$CollageID?>_<?=$GroupID?>">
134 134
         <td class="center">
135
-          <div id="showimg_<?=$CollageID?><?=$GroupID?>" class="<?=($ShowGroups ? 'hide' : 'show')?>_torrents">
136
-            <a href="#" class="tooltip show_torrents_link" onclick="toggle_group(<?=$CollageID?><?=$GroupID?>, this, event);" title="Expand this group. Hold &quot;Ctrl&quot; while clicking to expand all groups on this page."></a>
135
+          <div id="showimg_<?=$CollageID?>_<?=$GroupID?>" class="<?=($ShowGroups ? 'hide' : 'show')?>_torrents">
136
+            <a class="tooltip show_torrents_link" onclick="toggle_group('<?=$CollageID?>_<?=$GroupID?>', this, event);" title="Toggle this group (Hold &quot;Shift&quot; to toggle all groups)"></a>
137
+          </div>
138
+        </td>
139
+        <td class="center cats_col">
140
+          <div title="<?=Format::pretty_category($GroupCategoryID)?>" class="tooltip <?=Format::css_category($GroupCategoryID)?>">
137 141
           </div>
138 142
         </td>
139 143
         <td colspan="5" class="big_info">
@@ -147,8 +151,8 @@ if (!$NumResults) {
147 151
         foreach ($Torrents as $TorrentID => $Torrent) {
148 152
           $SnatchedTorrentClass = $Torrent['IsSnatched'] ? ' snatched_torrent' : '';
149 153
 ?>
150
-  <tr class="group_torrent groupid_<?=$CollageID . $GroupID?> edition_<?=$EditionID?> hidden<?=$SnatchedTorrentClass . $SnatchedGroupClass?>">
151
-    <td colspan="2">
154
+  <tr class="group_torrent groupid_<?=$CollageID?>_<?=$GroupID?> edition_<?=$EditionID?> hidden<?=$SnatchedTorrentClass . $SnatchedGroupClass?>">
155
+    <td colspan="3">
152 156
       <span>
153 157
         <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>
154 158
       </span>
@@ -180,10 +184,10 @@ if (!$NumResults) {
180 184
         }
181 185
         $SnatchedTorrentClass = $Torrent['IsSnatched'] ? ' snatched_torrent' : '';
182 186
 ?>
183
-  <tr class="torrent<?=$SnatchedTorrentClass?>" id="group_<?=$CollageID . $GroupID?>">
187
+  <tr class="torrent<?=$SnatchedTorrentClass?>" id="group_<?=$CollageID?>_<?=$GroupID?>">
184 188
     <td></td>
185 189
     <td class="center">
186
-      <div title="<?=$TorrentTags->title()?>" class="tooltip <?=Format::css_category($GroupCategoryID)?> <?=$TorrentTags->css_name()?>">
190
+      <div title="<?=Format::pretty_category($GroupCategoryID)?>" class="tooltip <?=Format::css_category($GroupCategoryID)?>">
187 191
       </div>
188 192
     </td>
189 193
     <td class="big_info">
@@ -222,9 +226,9 @@ if (!$NumResults) {
222 226
   <!--</div>-->
223 227
   <table class="torrent_table<?=$ShowAll ? ' hidden' : ''?>" id="discog_table_<?=$CollageID?>">
224 228
     <tr class="colhead">
225
-      <td width="1%"></td>
226
-      <td></td>
227
-      <td width="70%"><strong>Torrents</strong></td>
229
+      <td class="small"></td>
230
+      <td class="small cats_col"></td>
231
+      <td><strong>Torrents</strong></td>
228 232
       <td>Size</td>
229 233
       <td class="sign snatches">
230 234
         <a><svg width="15" height="15" fill="white" class="tooltip" alt="Snatches" title="Snatches" viewBox="3 0 88 98"><path d="M20 20 A43 43,0,1,0,77 23 L90 10 L55 10 L55 45 L68 32 A30.27 30.27,0,1,1,28 29"></path></svg></a>

Loading…
Cancel
Save