Skip to content
This repository was archived by the owner on May 16, 2019. It is now read-only.

Commit 690995f

Browse files
committed
Merge pull request #1498 from OpenBazaar/types
Changes for listing type badge
2 parents e85cc4b + 9af4996 commit 690995f

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

css/obBase.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4423,7 +4423,7 @@ input[type="checkbox"].fieldItem:checked + label .togLabelOff {
44234423
transform: rotate(45deg);
44244424
}
44254425

4426-
.listingTypeDIGITAL:before {
4426+
.listingTypeDIGITAL_GOOD:before {
44274427
color: #EFEF4C;
44284428
content: "\f137";
44294429
font-family: Ionicons;

js/templates/itemShort.html

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -83,15 +83,16 @@
8383
</div>
8484

8585
<% if(ob.contract_type){ %><!-- type is not yet implemented -->
86-
<div class="listingType borderRadius3 tooltip js-item textOpacity90" data-tooltip="<%
87-
if(ob.contract_type=='PHYSICAL_GOOD'){
88-
print(polyglot.t('Physical'));
89-
}else if(ob.contract_type=='DIGITAL'){
90-
print(polyglot.t('Digital'));
91-
}else if(ob.contract_type=='SERVICE'){
92-
print(polyglot.t('Service'));
93-
} %>">
94-
<span class="<% print('listingType'+ob.contract_type) %>"></span>
86+
<div class="listingType borderRadius3 js-item textOpacity90">
87+
<span class="<% print('listingType'+ob.contract_type) %>">
88+
<% if(ob.contract_type == "PHYSICAL_GOOD"){ %>
89+
<%= polyglot.t('Physical') %>
90+
<% }else if(ob.contract_type == "DIGITAL_GOOD"){ %>
91+
<%= polyglot.t('Digital') %>
92+
<% }else{ %>
93+
<%= polyglot.t('Service') %>
94+
<% } %>
95+
</span>
9596
</div>
9697
<% } %>
9798

0 commit comments

Comments
 (0)