Sha256: 69f19ff059ad13508adf0f5c8b636937a5911aa4c1c8eff95b0c9ec44d93ab52

Contents?: true

Size: 609 Bytes

Versions: 1

Compression:

Stored size: 609 Bytes

Contents

# Assignment types
class AssignmentType
  @DEFAULT: 1
  @SLIDES: 2

  @texts: (id) ->
    {
      1: {}
      2:
        perpage: "slide"
        pagenum: "Number of slides"
        assignment_type: "Type of paper"
        pageorwords: false
        show_words_num: true
        words_per_page: 150
        pagenum_tooltip: "Please choose, how many slides should your presentation contain"
    }[id]
  @id_by_title: (title)->
    if /presentation/i.test(title)
      return @SLIDES
    else
      return @DEFAULT
angular.module('EssayApp.services').factory('AssignmentType', [() ->
  return AssignmentType
])

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
translation_cms-0.1.5 app/assets/javascripts/app/services/assignment_type.js.coffee