added tag

This commit is contained in:
arzynik 2012-07-12 14:59:53 -04:00
parent ea96128920
commit 70c88f14b4
3 changed files with 30 additions and 1 deletions

View File

@ -10,6 +10,7 @@ class Crunchbutton_Community extends Cana_Table {
select restaurant.* from restaurant
left join restaurant_community using(id_restaurant)
where id_community="'.$this->id_community.'"
order by restaurant.delivery asc
');
}
return $this->_restaurants;

View File

@ -638,6 +638,22 @@ and (max-width : 1024px) {
}
}
.meal-item-tag {
background: #ff3f1f;
border: 1px solid #ff6648;
padding: 5px 20px 5px 15px;
font-size: 12px;
margin-top: -80px;
position: absolute;
z-index: 20;
box-shadow: 1px 1px 1px rgba(0,0,0,.3);
text-align: left;
margin-left: 206px;
color: #fff;
text-shadow: 1px 1px 0px #e0221a;
}
/*
@media only screen
and (min-device-width : 320px)
@ -645,6 +661,12 @@ and (max-device-width : 480px) {
*/
@media only screen
and (max-width : 769px) {
.meal-item-tag {
margin-left: 198px;
margin-top: -72px;
}
.content {
width: 100%;
padding: 5px 0 12px 0;
@ -1070,4 +1092,6 @@ th {
list-style-type:circle;
margin-left: 20px;
line-height: 14px;
}
}

View File

@ -159,6 +159,10 @@ App.page.community = function(id) {
.append('<h2 class="meal-restaurant">' + rs[x]['name'] + '</h2>')
.append('<h3 class="meal-food">Top Item: ' + rs[x].top().name + '</h3>');
if (rs[x].delivery != '1') {
restaurantContent.append('<div class="meal-item-tag">Take out only</div>');
}
restaurant
.append('<div class="meal-item-spacer"></div>')
.append(restaurantContent);