1
0
Fork 0

Account for images that were lost in the import (bad extensions or enormous sizes.

This commit is contained in:
Andrew Tomaka 2011-11-11 20:34:05 -05:00
parent 59ffee0240
commit 86a6d91898

View file

@ -24,7 +24,11 @@
<a href="<?php echo base_url($next); ?>" class="navigation"></a> <a href="<?php echo base_url($next); ?>" class="navigation"></a>
</div> </div>
<?php } ?> <?php } ?>
<?php if($original == 'lost') { ?>
<div id="message">
Image has been lost.
</div>
<?php } else { ?>
<div id="imageContainer"> <div id="imageContainer">
<a href="<?php echo base_url('/uploads/' . $image); ?>"><img src="<?php echo base_url('/uploads/' . $image); ?>" class="image" /></a> <a href="<?php echo base_url('/uploads/' . $image); ?>"><img src="<?php echo base_url('/uploads/' . $image); ?>" class="image" /></a>
</div> </div>
@ -33,3 +37,4 @@
<span class="label">Uploaded on:<br/>Original name:<br/>Views:<br/>Dimensions:<br/>Size:</span> <span class="label">Uploaded on:<br/>Original name:<br/>Views:<br/>Dimensions:<br/>Size:</span>
<span class="info"><?php echo $created; ?><br/><?php echo $original; ?><br/><?php echo $views; ?><br/><?php echo $width; ?>x<?php echo $height; ?><br/><?php echo $size; ?>kb</span> <span class="info"><?php echo $created; ?><br/><?php echo $original; ?><br/><?php echo $views; ?><br/><?php echo $width; ?>x<?php echo $height; ?><br/><?php echo $size; ?>kb</span>
</div> </div>
<?php } ?>