Skip to content
This repository has been archived by the owner on Mar 22, 2018. It is now read-only.

Commit

Permalink
minimal plant summary in plant result row.
Browse files Browse the repository at this point in the history
  • Loading branch information
mfrasca committed Jan 5, 2016
1 parent 8462ff0 commit f972205
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bauble/plugins/garden/plant.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,14 +126,16 @@ def plant_markup_func(plant):
'''
'''
sp_str = plant.accession.species_str(markup=True)
#dead_color = "#777"
dead_color = "#9900ff"
if plant.quantity <= 0:
dead_markup = '<span foreground="%s">%s</span>' % \
(dead_color, utils.xml_safe(plant))
return dead_markup, sp_str
else:
return utils.xml_safe(plant), sp_str
located_counted = ('%s <span foreground="#555555" size="small" '
'weight="light">- %s alive in %s</span>') % (
utils.xml_safe(plant), plant.quantity, plant.location)
return located_counted, sp_str


def get_next_code(acc):
Expand Down

0 comments on commit f972205

Please sign in to comment.