Skip to content

Commit

Permalink
Show dummy button when no file is selected
Browse files Browse the repository at this point in the history
  • Loading branch information
Salamek authored Aug 30, 2017
1 parent 860274b commit 496ad12
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,13 @@
<div class="details col-md-10 col-sm-9 col-xs-8">
<h3 class="title"><a href="">{$fileTranslation->getName()}</a></h3>
<p>{$fileTranslation->getDescription()|noescape}</p>
<a class="btn btn-theme read-more" n:href="download!, $fileTranslation->getId()">Stáhnout <small>{$fileTranslation->getStructureFile()->getFile()->getSize()|bytes}</small><i class="fa fa-download"></i></a>
{if $fileTranslation->getStructureFile()}
<a class="btn btn-theme read-more" n:href="download!, $fileTranslation->getId()">Stáhnout <small>{$fileTranslation->getStructureFile()->getFile()->getSize()|bytes}</small><i class="fa fa-download"></i></a>
{else}
<a class="btn btn-theme read-more" href="#">Stáhnout <small>{0|bytes}</small><i class="fa fa-download"></i></a>
{/if}
</div>
</article><!--//news-item-->

{control visualPaginator}
</div>
</div>

0 comments on commit 496ad12

Please sign in to comment.