Skip to content

Commit

Permalink
Addresses #26: add issue cover to article deatils page
Browse files Browse the repository at this point in the history
  • Loading branch information
NateWr committed May 3, 2016
1 parent 9b51454 commit 04c8249
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions templates/frontend/objects/article_details.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,14 @@
<div class="row">
<section class="article-download col-md-4">

<div id="cover-image">
{* Article or issue cover *}
{* @todo less cat more article *}
<img src="http://lorempixel.com/450/600/cats/" class="img-responsive"/>
</div>
{* Issue cover image *}
{if $issue->getLocalizedFileName()}
<div class="cover-image">
<a href="{url page="issue" op="view" path=$issue->getBestIssueId($currentJournal)}">
<img class="img-responsive" src="{$publicFilesDir}/{$issue->getLocalizedFileName()|escape}" alt="{$issue->getLocalizedOriginalFileName()|escape}">
</a>
</div>
{/if}

<div id="download">
{* Article Galleys *}
Expand Down

0 comments on commit 04c8249

Please sign in to comment.