Project

General

Profile

Feature #21577 » version_status_released.patch

Wim DePreter, 2017-07-13 08:16

View differences:

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

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

  
35 35
  validates_presence_of :name
......
121 121
    status == 'open'
122 122
  end
123 123

  
124
  def released?
125
    status == 'released'
126
  end
127

  
124 128
  # Returns true if the version is completed: closed or due date reached and no open issues
125 129
  def completed?
126
    closed? || (effective_date && (effective_date < User.current.today) && (open_issues_count == 0))
130
    released? || closed? || (effective_date && (effective_date < User.current.today) && (open_issues_count == 0))
127 131
  end
128 132

  
129 133
  def behind_schedule?
config/locales/en-GB.yml (working copy)
845 845

  
846 846
  version_status_open: open
847 847
  version_status_locked: locked
848
  version_status_released: released
848 849
  version_status_closed: closed
849 850

  
850 851
  field_active: Active
config/locales/en.yml (working copy)
1085 1085

  
1086 1086
  version_status_open: open
1087 1087
  version_status_locked: locked
1088
  version_status_released: released
1088 1089
  version_status_closed: closed
1089 1090

  
1090 1091
  field_active: Active
config/locales/fr.yml (working copy)
1090 1090

  
1091 1091
  version_status_open: ouvert
1092 1092
  version_status_locked: verrouillé
1093
  version_status_released: publié
1093 1094
  version_status_closed: fermé
1094 1095

  
1095 1096
  field_active: Actif
config/locales/nl.yml (working copy)
813 813
  field_active: Actief
814 814
  enumeration_system_activity: Systeemactiviteit
815 815
  permission_delete_issue_watchers: Volgers verwijderen
816

  
817
  version_status_open: open
818
  version_status_locked: vergrendeld
819
  version_status_released: gelanceerd
816 820
  version_status_closed: gesloten
817
  version_status_locked: vergrendeld
818
  version_status_open: open
821

  
819 822
  error_can_not_reopen_issue_on_closed_version: Een issue toegewezen aan een gesloten versie kan niet heropend worden
820 823
  label_user_anonymous: Anoniem
821 824
  button_move_and_follow: Verplaatsen en volgen
(2-2/2)