app/controllers/team/export_controller.rb
#TODO:  use max_hours from team ; german month names ! ; add total hours below the table
use max_hours from team ; german month names . ; add total hours below the table
use max_hours from team ; german month names . ; add total hours below the table
def index
    if @current_user.birth_date
      @available_months = @current_member.progresses.kept
                            .pluck(:start)
                            .map{ |d| d.beginning_of_month }
                            .uniq
    else
      flash[:error] = "Add your birth date first."
      redirect_to edit_user_path(@current_user)
    end
  end
def index if @current_user . birth_date @available_months = @current_member . progresses . kept . pluck ( :start ) . map { | d | d . beginning_of_month } . uniq else flash [ :error ] = "Add your birth date first." redirect_to edit_user_path ( @current_user ) end end
TODO:  use max_hours from team ; german month names !
TODO : use max_hours from team ; german month names !
#setup values for month picker