|
37 | 37 | </#if> |
38 | 38 | <div class="main"> |
39 | 39 | <div class="wrapper index-full-size-white" id="nightTips" style="display: none"></div> |
40 | | - <div class="wrapper" style="padding-bottom: 20px"> |
41 | | - <div class="index-recent fn-flex-1"> |
| 40 | + <div class="wrapper" id="indexTopWrapper" style="padding-bottom: 20px"> |
| 41 | + <div class="index-recent fn-flex-1" id="indexRecentColLeft"> |
42 | 42 | <div class="index-head-title"> |
43 | 43 | <div style="float:left;font-size:13px;margin:5px 0 10px 0; font-weight:bold;">最新</div> |
44 | 44 | <div style="clear:both;"></div> |
|
74 | 74 | .rank { |
75 | 75 | padding: 7px 15px 7px 15px !important; |
76 | 76 | } |
| 77 | +
|
77 | 78 | </style> |
78 | 79 | <#list recentArticles as article> |
79 | 80 | <li class="fn-flex"> |
|
102 | 103 | </div> |
103 | 104 |
|
104 | 105 | </div> |
105 | | - <div class="index-recent fn-flex-1"> |
| 106 | + <div class="index-recent fn-flex-1" id="indexRecentColRight"> |
106 | 107 | <div class="index-head-title"> |
107 | 108 | <div style="float:left;font-size:13px;margin:5px 0 10px 0; font-weight:bold;"> </div> |
108 | 109 | <div style="float:right;font-size:13px;margin:5px 0 0 0;"> |
|
138 | 139 | </ul> |
139 | 140 | </div> |
140 | 141 | </div> |
141 | | - <div class="index-recent fn-flex-1"> |
| 142 | + <div class="index-recent fn-flex-1" id="indexRankCol"> |
142 | 143 | <div class="module-panel"> |
143 | 144 | <#if TGIF == '0'> |
144 | 145 | <div class="TGIF__item" style="margin-bottom: 17px; margin-top: 5px"> |
|
179 | 180 | </#if> |
180 | 181 | </div> |
181 | 182 |
|
182 | | - <div class="index-head-title"> |
183 | | - <div style="float:left;font-size:13px;margin:5px 0 10px 0; font-weight:bold;">今日连签排行</div> |
184 | | - <div style="float:right;font-size:13px;margin:5px 0 0 0;"><a href="${servePath}/top/checkin">更多</a> |
| 183 | + <#assign checkinVisibleCount=(checkinVisibleCount!9)> |
| 184 | + <#assign onlineVisibleCount=(onlineVisibleCount!8)> |
| 185 | + |
| 186 | + <div> |
| 187 | + <div class="index-head-title"> |
| 188 | + <div style="float:left;font-size:13px;margin:5px 0 10px 0; font-weight:bold;">今日连签排行</div> |
| 189 | + <div style="float:right;font-size:13px;margin:5px 0 0 0;"><a href="${servePath}/top/checkin">更多</a> |
| 190 | + </div> |
| 191 | + <div style="clear:both;"></div> |
185 | 192 | </div> |
186 | | - <div style="clear:both;"></div> |
187 | | - </div> |
188 | | - <div class="module-panel"> |
189 | | - <ul class="module-list"> |
190 | | - <#list topCheckinUsers as user> |
191 | | - <#if user_index < 9> |
192 | | - <li class="fn-flex rank topCheckInUsersElement"> |
| 193 | + <div class="module-panel"> |
| 194 | + <ul class="module-list"> |
| 195 | + <#list topCheckinUsers as user> |
| 196 | + <#if user_index lt checkinVisibleCount> |
| 197 | + <li class="fn-flex rank topCheckInUsersElement"> |
193 | 198 | <#if user_index == 0 || user_index == 1 || user_index == 2> |
194 | 199 | <span |
195 | 200 | <#if user_index == 0> |
|
214 | 219 | <a class="tooltipped tooltipped-s fn-right count ft-gray ft-smaller" |
215 | 220 | aria-label="${checkinStreakPart0Label}${user.userLongestCheckinStreak}${checkinStreakPart1Label}${user.userCurrentCheckinStreak}${checkinStreakPart2Label}" |
216 | 221 | href="${servePath}/top/checkin">${user.userCurrentCheckinStreak}${checkinStreakPart2Label}</a> |
217 | | - </li> |
218 | | - </#if> |
219 | | - </#list> |
220 | | - </ul> |
221 | | - </div> |
| 222 | + </li> |
| 223 | + </#if> |
| 224 | + </#list> |
| 225 | + </ul> |
| 226 | + </div> |
222 | 227 |
|
223 | | - <div class="index-head-title"> |
224 | | - <div style="float:left;font-size:13px;margin:20px 0 10px 0; font-weight:bold;">在线时间排行</div> |
225 | | - <div style="float:right;font-size:13px;margin:20px 0 0 0;"><a href="${servePath}/top/online">更多</a> |
| 228 | + <div class="index-head-title"> |
| 229 | + <div style="float:left;font-size:13px;margin:20px 0 10px 0; font-weight:bold;">在线时间排行</div> |
| 230 | + <div style="float:right;font-size:13px;margin:20px 0 0 0;"><a href="${servePath}/top/online">更多</a> |
| 231 | + </div> |
| 232 | + <div style="clear:both;"></div> |
226 | 233 | </div> |
227 | | - <div style="clear:both;"></div> |
228 | | - </div> |
229 | | - <div class="module-panel"> |
230 | | - <ul class="module-list"> |
231 | | - <#list onlineTopUsers as user> |
232 | | - <#if user_index < 8> |
233 | | - <li class="fn-flex rank topCheckInUsersElement"> |
| 234 | + <div class="module-panel"> |
| 235 | + <ul class="module-list"> |
| 236 | + <#list onlineTopUsers as user> |
| 237 | + <#if user_index lt onlineVisibleCount> |
| 238 | + <li class="fn-flex rank topCheckInUsersElement"> |
234 | 239 | <#if user_index == 0 || user_index == 1 || user_index == 2> |
235 | 240 | <span |
236 | 241 | <#if user_index == 0> |
|
270 | 275 | ${user.onlineMinute} 分钟 |
271 | 276 | </#if> |
272 | 277 | </a> |
273 | | - </li> |
274 | | - </#if> |
275 | | - </#list> |
276 | | - </ul> |
| 278 | + </li> |
| 279 | + </#if> |
| 280 | + </#list> |
| 281 | + </ul> |
| 282 | + </div> |
277 | 283 | </div> |
278 | 284 | </div> |
279 | 285 | </div> |
|
670 | 676 | <div class="index-head-title"> |
671 | 677 | <div style="float:left;font-size:13px;margin:5px 0 10px 0; font-weight:bold;cursor: pointer">最新注册</div> |
672 | 678 | <#list recentRegUsers as user> |
673 | | - <#if user_index = 0> |
| 679 | + <#if user_index == 0> |
674 | 680 | <a target="_blank" href="${servePath}/member/${user.userName}" |
675 | 681 | style="float: right; margin: 5px 0 10px 0; color: #646464; text-decoration: none"> |
676 | 682 | 🎉 欢迎新人 <b>${user.userName}</b> |
|
1171 | 1177 | initLongShelfAuto('long-recent', 3600); |
1172 | 1178 | initLongShelfAuto('long-hot', 3600); |
1173 | 1179 | }); |
| 1180 | +
|
1174 | 1181 | </script> |
1175 | 1182 | </body> |
1176 | 1183 | </html> |
0 commit comments