fix topic thumbnails

main
pichalite 9 years ago
parent 02e856acdc
commit 25a961017f

@ -8,22 +8,30 @@
<div class="avatar pull-left"> <div class="avatar pull-left">
<!-- IF showSelect --> <!-- IF showSelect -->
<div class="select" component="topic/select"> <div class="select" component="topic/select">
<!-- IF topics.thumb -->
<img src="{topics.thumb}" class="user-img" title="{topics.user.username}" />
<!-- ELSE -->
<!-- IF topics.user.picture --> <!-- IF topics.user.picture -->
{function.renderTopicImage} <img component="user/picture" data-uid="{topics.user.uid}" src="{topics.user.picture}" class="user-img" title="{topics.user.username}" />
<!-- ELSE --> <!-- ELSE -->
<div class="user-icon" style="background-color: {topics.user.icon:bgColor};" title="{topics.user.username}">{topics.user.icon:text}</div> <div class="user-icon" style="background-color: {topics.user.icon:bgColor};" title="{topics.user.username}">{topics.user.icon:text}</div>
<!-- ENDIF topics.user.picture --> <!-- ENDIF topics.user.picture -->
<!-- ENDIF topics.thumb -->
<i class="fa fa-check"></i> <i class="fa fa-check"></i>
</div> </div>
<!-- ENDIF showSelect --> <!-- ENDIF showSelect -->
<!-- IF !showSelect --> <!-- IF !showSelect -->
<a href="<!-- IF topics.user.userslug -->{config.relative_path}/user/{topics.user.userslug}<!-- ELSE -->#<!-- ENDIF topics.user.userslug -->" class="pull-left"> <a href="<!-- IF topics.user.userslug -->{config.relative_path}/user/{topics.user.userslug}<!-- ELSE -->#<!-- ENDIF topics.user.userslug -->" class="pull-left">
<!-- IF topics.thumb -->
<img src="{topics.thumb}" class="user-img" title="{topics.user.username}" />
<!-- ELSE -->
<!-- IF topics.user.picture --> <!-- IF topics.user.picture -->
{function.renderTopicImage} <img component="user/picture" data-uid="{topics.user.uid}" src="{topics.user.picture}" class="user-img" title="{topics.user.username}" />
<!-- ELSE --> <!-- ELSE -->
<div class="user-icon" style="background-color: {topics.user.icon:bgColor};" title="{topics.user.username}">{topics.user.icon:text}</div> <div class="user-icon" style="background-color: {topics.user.icon:bgColor};" title="{topics.user.username}">{topics.user.icon:text}</div>
<!-- ENDIF topics.user.picture --> <!-- ENDIF topics.user.picture -->
<!-- ENDIF topics.thumb -->
</a> </a>
<!-- ENDIF !showSelect --> <!-- ENDIF !showSelect -->

Loading…
Cancel
Save