Skip to content

Commit

Permalink
Make the property type more visible in property list
Browse files Browse the repository at this point in the history
 * Display a ribbon over the thumbnail in property lists

See: #759
  • Loading branch information
mirsal committed Jul 15, 2010
1 parent 65091bf commit 3f8c0b0
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions apps/frontend/modules/home/templates/indexSuccess.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
<div class="mask">
<?php $img = $p->getRandomFileAttachment(); ?>
<img src="<?php if(!is_null($img)) echo url_for('render_attachment', array('sf_subject' => $img, 'thumbnail' => FileAttachmentPeer::SIZE_SMALL))?>" />
<div class="overlay"></div>
</div>
</a>
</figure>
Expand Down
1 change: 1 addition & 0 deletions apps/frontend/modules/property/templates/indexSuccess.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
<div class="mask">
<?php $img = $property->getRandomFileAttachment() ?>
<img src="<?php if(!is_null($img)) echo url_for('render_attachment', array('sf_subject' => $img, 'thumbnail' => FileAttachmentPeer::SIZE_MEDIUM))?>" />
<div class="overlay"></div>
</div>
</a>
</figure>
Expand Down
21 changes: 21 additions & 0 deletions web/css/common.css
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ div.property-list
div.property-list article figure.thumbnail
{
float: left;
position: relative;
width: 69px;
height: 69px;
background: url('/images/background_thumb.png') no-repeat;
Expand All @@ -53,6 +54,26 @@ div.property-list
margin: 2px;
}

div.property-list article figure.thumbnail .overlay
{
position: absolute;
background: top left no-repeat;
width: 69px;
height: 69px;
top: 0;
left: 0;
}

div.property-list article.rental figure.thumbnail .overlay
{
background-image: url('../images/rental.png');
}

div.property-list article.sale figure.thumbnail .overlay
{
background-image: url('../images/sale.png');
}

div.property-list article h3
{
margin: 0;
Expand Down
Binary file added web/images/forsale.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added web/images/rental.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added web/images/rented.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added web/images/sale.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 3f8c0b0

Please sign in to comment.