version_status_archived.patch

Wim DePreter, 2016-04-15 13:53

Download (2.2 KB)

View differences:

app/models/version.rb (working copy)
28 28
                     :edit_permission => :manage_files,
29 29
                     :delete_permission => :manage_files
30 30

  
31
  VERSION_STATUSES = %w(open locked closed)
31
  VERSION_STATUSES = %w(open locked closed archived)
32 32
  VERSION_SHARINGS = %w(none descendants hierarchy tree system)
33 33

  
34 34
  validates_presence_of :name
......
95 95
  end
96 96

  
97 97
  def closed?
98
    status == 'closed'
98
    status == 'closed' || status == 'archived'
99 99
  end
100 100

  
101 101
  def open?
config/locales/en-GB.yml (working copy)
849 849
  version_status_open: open
850 850
  version_status_locked: locked
851 851
  version_status_closed: closed
852
  version_status_archived: archived
852 853

  
853 854
  field_active: Active
854 855

  
config/locales/en.yml (working copy)
1042 1042
  version_status_open: open
1043 1043
  version_status_locked: locked
1044 1044
  version_status_closed: closed
1045
  version_status_archived: archived
1045 1046

  
1046 1047
  field_active: Active
1047 1048

  
config/locales/fr.yml (working copy)
1060 1060
  version_status_open: ouvert
1061 1061
  version_status_locked: verrouillé
1062 1062
  version_status_closed: fermé
1063
  version_status_archived: archivé
1063 1064

  
1064 1065
  field_active: Actif
1065 1066

  
config/locales/nl.yml (working copy)
814 814
  field_active: Actief
815 815
  enumeration_system_activity: Systeem Activiteit
816 816
  permission_delete_issue_watchers: Verwijder volgers
817
  version_status_archived: gearchiveerd
817 818
  version_status_closed: gesloten
818 819
  version_status_locked: vergrendeld
819 820
  version_status_open: open