app/models/item.rb
# background color of different item sorts within thyme editor
background color of different item sorts within thyme editor
background color of different item sorts within thyme editor
def background
    return '#70db70;' if ['remark', 'theorem', 'lemma', 'corollary',
                       'algorithm', 'Theorem', 'Corollary', 'Lemma',
                       'proposition'].include?(sort)
    return '#75d7f0;' if ['definition', 'annotation', 'example',
                          'figure', 'exercise', 'equation'].include?(sort)
    return 'lightgray;' if sort == 'link' || sort == 'self'
    ''
  end
def background return '#70db70;' if [ 'remark' , 'theorem' , 'lemma' , 'corollary' , 'algorithm' , 'Theorem' , 'Corollary' , 'Lemma' , 'proposition' ] . include? ( sort ) return '#75d7f0;' if [ 'definition' , 'annotation' , 'example' , 'figure' , 'exercise' , 'equation' ] . include? ( sort ) return 'lightgray;' if sort == 'link' || sort == 'self' '' end
background color of different item sorts within thyme editor
background color of different item sorts within thyme editor