Skip to content

Commit

Permalink
Fixed broken images if ss was not in root directory
Browse files Browse the repository at this point in the history
  • Loading branch information
twodayslate committed May 22, 2013
1 parent 9d0d0cc commit b1b1a26
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions templates/Layout/FilePage.ss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ $Content

<% if BackLink %>
<h2>$CurrentFolder.Title</h2>
<p class="item back"><a href="$Top.Link{$BackLink}"><strong><img src="/file-listing/images/dots.png" class="icon" width="16" height="16" />Back to $CurrentFolder.Parent.Title</strong></a></p>
<p class="item back"><a href="$Top.Link{$BackLink}"><strong><img src="file-listing/images/dots.png" class="icon" width="16" height="16" />Back to $CurrentFolder.Parent.Title</strong></a></p>
<% else %>
<% if FilesHeading %><h2>$FilesHeading</h2><% end_if %>
<% end_if %>
Expand All @@ -15,19 +15,19 @@ $Content

<% control Listing %>
<% if ClassName = Folder %>
<p class="item"><a class="mainlink" href="$Top.Link?fid=$ID"><img class="icon" src="/file-listing/images/folder.png"/><strong>$Title</strong></a></p>
<p class="item"><a class="mainlink" href="$Top.Link?fid=$ID"><img class="icon" src="file-listing/images/folder.png"/><strong>$Title</strong></a></p>

<% else_if ClassName = Image %>
<p class="item"><a class="mainlink" href="$setWidth(850).Link" class="lightbox" rel="gallery1" title="$Title" >
<img class="icon" src="/file-listing/images/photo.png"/>$Title</a> <a href="$Link" class="orig">(Download Original)</a><span> - Added $Created.Ago</span><br />
<img class="icon" src="file-listing/images/photo.png"/>$Title</a> <a href="$Link" class="orig">(Download Original)</a><span> - Added $Created.Ago</span><br />
<a href="$setWidth(850).Link" class="lightbox" rel="gallery2" title="$Title" ><img class="thumb" src="$setWidth(200).URL" width="$setWidth(200).Width" height="$setWidth(200).Height" /></a>
</p>

<% else_if Extension=="zip" || Extension=="ZIP" || Extension=="doc" || Extension=="DOC" || Extension=="DOCX" || Extension=="docx" || Extension=="xls" || Extension=="XLS" || Extension=="xlsx" || Extension=="XLSX" || Extension=="pdf" || Extension=="PDF" %>
<p class="item"><a class="mainlink" href="$Link">$Title ($Extension)</a><span> - Added $Created.Ago</span></p>

<% else %>
<p class="item"><img class="icon" src="/file-listing/images/page_white.png"/><a class="mainlink" href="$Link">$Title ($Extension)</a><span> - Added $Created.Ago</span></p>
<p class="item"><img class="icon" src="file-listing/images/page_white.png"/><a class="mainlink" href="$Link">$Title ($Extension)</a><span> - Added $Created.Ago</span></p>
<% end_if %>

<% end_control %>
Expand Down

0 comments on commit b1b1a26

Please sign in to comment.