Message if user has no videos - Github issue #121

This commit is contained in:
Saqib Razzaq 2015-06-03 11:09:36 +00:00
parent 3422f60ccc
commit 4972da73f3

View file

@ -60,7 +60,12 @@
{else} {else}
<div class="col-md-9"> <div class="col-md-9">
<h3>User Videos </h3> <h3>User Videos</h3>
{if !$videos}
<div class="alert alert-danger" role="alert">Sorry, this user has no videos. Yet!</div>
{else}
{section name=v_list loop=$videos} {section name=v_list loop=$videos}
{include file="$style_dir/blocks/video.html" video=$videos[v_list]} {include file="$style_dir/blocks/video.html" video=$videos[v_list]}
{/section} {/section}
@ -70,6 +75,7 @@
</div> </div>
</div> </div>
{/if} {/if}
{/if}
</div> </div>
<div class="footer"> <div class="footer">
&copy; {$title} {$smarty.now|date_format:"%Y"} &copy; {$title} {$smarty.now|date_format:"%Y"}