renamed column in auction from type to platform

This commit is contained in:
olegphenomenon 2022-04-13 10:54:49 +03:00
parent d8c0ba2432
commit 9766650ae4
9 changed files with 16 additions and 15 deletions

View file

@ -1,7 +1,5 @@
module AuctionHelper
include ActionView::Helpers::TagHelper
extend self
def colorize_auction(auction)
case auction.status
@ -12,10 +10,10 @@ module AuctionHelper
end
def render_status_black(name)
content_tag(:span, name.to_s, style: 'color: black;')
tag.span name.to_s, style: 'color: black;'
end
def render_status_green(name)
content_tag(:span, name.to_s , style: 'color: green;')
tag.span name.to_s, style: 'color: green;'
end
end