app/helpers/lectures_helper.rb
# returns true if it is an inspection AND the current user has editing rights
# to the lecture (beig editor by inheritance or admin)
returns true if it is an inspection AND the current user has editing rights
to the lecture (beig editor by inheritance or admin)
returns true if it is an inspection AND the current user has editing rights to the lecture ( beig editor by inheritance or admin )
def lecture_header_color(subscribed, lecture)
    return '' unless subscribed
    result = 'text-light '
    result += if lecture.term
                'bg-mdb-color-lighten-1'
              else
                'bg-info'
              end
  end
def lecture_header_color ( subscribed , lecture ) return '' unless subscribed result = 'text-light ' result += if lecture . term 'bg-mdb-color-lighten-1' else 'bg-info' end end
returns true if it is an inspection AND the current user has editing rights
to the lecture (beig editor by inheritance or admin)
returns true if it is an inspection AND the current user has editing rights to the lecture ( beig editor by inheritance or admin )
subscribed
<not_specific>
lecture
<not_specific>