Patch #4975 » 0001-Add-feature-to-automatically-archive-old-projects.patch
| app/controllers/projects_controller.rb | ||
|---|---|---|
|
@issue_custom_fields = IssueCustomField.find(:all, :order => "#{CustomField.table_name}.position")
|
||
|
@trackers = Tracker.all
|
||
|
@root_projects = Project.find(:all,
|
||
|
:conditions => "parent_id IS NULL AND status = #{Project::STATUS_ACTIVE}",
|
||
|
:conditions => "parent_id IS NULL AND status < #{Project::STATUS_ARCHIVED}",
|
||
|
:order => 'name')
|
||
|
@source_project = Project.find(params[:id])
|
||
|
if request.get?
|
||
| ... | ... | |
|
rescue ActiveRecord::RecordNotFound
|
||
|
render_404
|
||
|
end
|
||
|
def reactivate
|
||
|
@project = Project.find(params[:id])
|
||
|
if @project.status == Project::STATUS_INACTIVE
|
||
|
@project.status = Project::STATUS_ACTIVE
|
||
|
@project.save!
|
||
|
flash[:notice] = l(:notice_successful_reactivate)
|
||
|
else
|
||
|
flash[:error] = l(:error_failed_to_reactivate)
|
||
|
end
|
||
|
redirect_to(:controller => 'projects', :action => 'show', :id => @project)
|
||
|
end
|
||
|
|
||
|
private
|
||
|
# Find project of id params[:id]
|
||
| app/controllers/sys_controller.rb | ||
|---|---|---|
|
render :nothing => true, :status => 404
|
||
|
end
|
||
|
def mark_all_inactive_projects
|
||
|
date = Time.now.last_month
|
||
|
(Project.active.select { |p| !p.active_since?(date) && p.created_on < date && p.descendants.size == 0 }).each do |p|
|
||
|
p.status = Project::STATUS_INACTIVE
|
||
|
(p.principals.select {|user| user.allowed_to?(:reactivate_project, p)}).each do |u|
|
||
|
Mailer.deliver_inactive_reminder(u, p)
|
||
|
end
|
||
|
p.save
|
||
|
end
|
||
|
render :nothing => true, :status => 200
|
||
|
end
|
||
|
def archive_inactive_projects
|
||
|
date = Time.now.last_month
|
||
|
Project.find(:all, :conditions => {:status => Project::STATUS_INACTIVE}).each do |p|
|
||
|
if p.active_since?(date)
|
||
|
p.status = Project::STATUS_ACTIVE
|
||
|
else
|
||
|
p.archive
|
||
|
end
|
||
|
p.save
|
||
|
end
|
||
|
render :nothing => true, :status => 200
|
||
|
end
|
||
|
protected
|
||
|
def check_enabled
|
||
| app/models/mailer.rb | ||
|---|---|---|
|
s = ARCondition.new ["#{IssueStatus.table_name}.is_closed = ? AND #{Issue.table_name}.due_date <= ?", false, days.day.from_now.to_date]
|
||
|
s << "#{Issue.table_name}.assigned_to_id IS NOT NULL"
|
||
|
s << "#{Project.table_name}.status = #{Project::STATUS_ACTIVE}"
|
||
|
s << "#{Project.table_name}.status < #{Project::STATUS_ARCHIVED}"
|
||
|
s << "#{Issue.table_name}.project_id = #{project.id}" if project
|
||
|
s << "#{Issue.table_name}.tracker_id = #{tracker.id}" if tracker
|
||
| ... | ... | |
|
end
|
||
|
end
|
||
|
def inactive_reminder(user, project)
|
||
|
set_language_if_valid(user.language)
|
||
|
recipients user.mail
|
||
|
subject "[#{Setting.app_title.to_s} - #{l(:mail_subject_project_activity_warning)}] #{project.name}"
|
||
|
body :project => project,
|
||
|
:url => url_for(:controller => 'projects', :action => 'reactivate', :id => project)
|
||
|
render_multipart('inactive_reminder', body)
|
||
|
end
|
||
|
private
|
||
|
def initialize_defaults(method_name)
|
||
|
super
|
||
| app/models/principal.rb | ||
|---|---|---|
|
set_table_name 'users'
|
||
|
has_many :members, :foreign_key => 'user_id', :dependent => :destroy
|
||
|
has_many :memberships, :class_name => 'Member', :foreign_key => 'user_id', :include => [ :project, :roles ], :conditions => "#{Project.table_name}.status=#{Project::STATUS_ACTIVE}", :order => "#{Project.table_name}.name"
|
||
|
has_many :memberships, :class_name => 'Member', :foreign_key => 'user_id', :include => [ :project, :roles ], :conditions => "#{Project.table_name}.status < #{Project::STATUS_ARCHIVED}", :order => "#{Project.table_name}.name"
|
||
|
has_many :projects, :through => :memberships
|
||
|
# Groups and active users
|
||
| app/models/project.rb | ||
|---|---|---|
|
class Project < ActiveRecord::Base
|
||
|
# Project statuses
|
||
|
STATUS_ACTIVE = 1
|
||
|
STATUS_INACTIVE = 5
|
||
|
STATUS_ARCHIVED = 9
|
||
|
|
||
|
# Specific overidden Activities
|
||
| ... | ... | |
|
before_destroy :delete_all_members, :destroy_children
|
||
|
named_scope :has_module, lambda { |mod| { :conditions => ["#{Project.table_name}.id IN (SELECT em.project_id FROM #{EnabledModule.table_name} em WHERE em.name=?)", mod.to_s] } }
|
||
|
named_scope :active, { :conditions => "#{Project.table_name}.status = #{STATUS_ACTIVE}"}
|
||
|
named_scope :active, { :conditions => "#{Project.table_name}.status < #{STATUS_ARCHIVED}"}
|
||
|
named_scope :all_public, { :conditions => { :is_public => true } }
|
||
|
named_scope :visible, lambda { { :conditions => Project.visible_by(User.current) } }
|
||
|
|
||
| ... | ... | |
|
def self.visible_by(user=nil)
|
||
|
user ||= User.current
|
||
|
if user && user.admin?
|
||
|
return "#{Project.table_name}.status=#{Project::STATUS_ACTIVE}"
|
||
|
return "#{Project.table_name}.status < #{Project::STATUS_ARCHIVED}"
|
||
|
elsif user && user.memberships.any?
|
||
|
return "#{Project.table_name}.status=#{Project::STATUS_ACTIVE} AND (#{Project.table_name}.is_public = #{connection.quoted_true} or #{Project.table_name}.id IN (#{user.memberships.collect{|m| m.project_id}.join(',')}))"
|
||
|
return "#{Project.table_name}.status < #{Project::STATUS_ARCHIVED} AND (#{Project.table_name}.is_public = #{connection.quoted_true} or #{Project.table_name}.id IN (#{user.memberships.collect{|m| m.project_id}.join(',')}))"
|
||
|
else
|
||
|
return "#{Project.table_name}.status=#{Project::STATUS_ACTIVE} AND #{Project.table_name}.is_public = #{connection.quoted_true}"
|
||
|
return "#{Project.table_name}.status < #{Project::STATUS_ARCHIVED} AND #{Project.table_name}.is_public = #{connection.quoted_true}"
|
||
|
end
|
||
|
end
|
||
|
|
||
|
def self.allowed_to_condition(user, permission, options={})
|
||
|
statements = []
|
||
|
base_statement = "#{Project.table_name}.status=#{Project::STATUS_ACTIVE}"
|
||
|
base_statement = "#{Project.table_name}.status < #{Project::STATUS_ARCHIVED}"
|
||
|
if perm = Redmine::AccessControl.permission(permission)
|
||
|
unless perm.project_module.nil?
|
||
|
# If the permission belongs to a project module, make sure the module is enabled
|
||
| ... | ... | |
|
end
|
||
|
|
||
|
def active?
|
||
|
self.status == STATUS_ACTIVE
|
||
|
self.status < STATUS_ARCHIVED
|
||
|
end
|
||
|
|
||
|
# Archives the project and its descendants
|
||
| ... | ... | |
|
@rolled_up_trackers ||=
|
||
|
Tracker.find(:all, :include => :projects,
|
||
|
:select => "DISTINCT #{Tracker.table_name}.*",
|
||
|
:conditions => ["#{Project.table_name}.lft >= ? AND #{Project.table_name}.rgt <= ? AND #{Project.table_name}.status = #{STATUS_ACTIVE}", lft, rgt],
|
||
|
:conditions => ["#{Project.table_name}.lft >= ? AND #{Project.table_name}.rgt <= ? AND #{Project.table_name}.status < #{STATUS_ARCHIVED}", lft, rgt],
|
||
|
:order => "#{Tracker.table_name}.position")
|
||
|
end
|
||
|
|
||
| ... | ... | |
|
@shared_versions ||=
|
||
|
Version.scoped(:include => :project,
|
||
|
:conditions => "#{Project.table_name}.id = #{id}" +
|
||
|
" OR (#{Project.table_name}.status = #{Project::STATUS_ACTIVE} AND (" +
|
||
|
" OR (#{Project.table_name}.status < #{Project::STATUS_ARCHIVED} AND (" +
|
||
|
" #{Version.table_name}.sharing = 'system'" +
|
||
|
" OR (#{Project.table_name}.lft >= #{root.lft} AND #{Project.table_name}.rgt <= #{root.rgt} AND #{Version.table_name}.sharing = 'tree')" +
|
||
|
" OR (#{Project.table_name}.lft < #{lft} AND #{Project.table_name}.rgt > #{rgt} AND #{Version.table_name}.sharing IN ('hierarchy', 'descendants'))" +
|
||
| ... | ... | |
|
end
|
||
|
end
|
||
|
|
||
|
def active_since? date
|
||
|
u = User.find(1)
|
||
|
return Redmine::Activity::Fetcher.new(u, :project => self).events(date, Time.now).size > 0
|
||
|
end
|
||
|
private
|
||
|
|
||
|
# Destroys children before destroying self
|
||
| app/views/mailer/inactive_reminder.text.html.rhtml | ||
|---|---|---|
|
<p><%= l(:mail_body_project_activity_warning, :project => @project.name) %></p><br />
|
||
|
<%= @url %>
|
||
| app/views/mailer/inactive_reminder.text.plain.rhtml | ||
|---|---|---|
|
<%= l(:mail_body_project_activity_warning, :project => @project.name) %>
|
||
|
<%= @url %>
|
||
| config/locales/bg.yml | ||
|---|---|---|
|
permission_export_wiki_pages: Export wiki pages
|
||
|
setting_cache_formatted_text: Cache formatted text
|
||
|
permission_manage_project_activities: Manage project activities
|
||
|
|
||
|
error_failed_to_reactivate: "Can't reactivate the project."
|
||
|
notice_successful_reactivate: Successful reactivation.
|
||
|
mail_subject_project_activity_warning: Activity reminder
|
||
|
mail_body_project_activity_warning: Your project '{{project}}' has no activity for a month. If you still need the project, click the following link, otherwise the project will be archived in 14 days.
|
||
|
permission_reactivate_project: Reactivate Project
|
||
| config/locales/bs.yml | ||
|---|---|---|
|
permission_export_wiki_pages: Export wiki pages
|
||
|
setting_cache_formatted_text: Cache formatted text
|
||
|
permission_manage_project_activities: Manage project activities
|
||
|
error_failed_to_reactivate: "Can't reactivate the project."
|
||
|
notice_successful_reactivate: Successful reactivation.
|
||
|
mail_subject_project_activity_warning: Activity reminder
|
||
|
mail_body_project_activity_warning: Your project '{{project}}' has no activity for a month. If you still need the project, click the following link, otherwise the project will be archived in 14 days.
|
||
|
permission_reactivate_project: Reactivate Project
|
||
| config/locales/ca.yml | ||
|---|---|---|
|
permission_export_wiki_pages: Export wiki pages
|
||
|
setting_cache_formatted_text: Cache formatted text
|
||
|
permission_manage_project_activities: Manage project activities
|
||
|
error_failed_to_reactivate: "Can't reactivate the project."
|
||
|
notice_successful_reactivate: Successful reactivation.
|
||
|
mail_subject_project_activity_warning: Activity reminder
|
||
|
mail_body_project_activity_warning: Your project '{{project}}' has no activity for a month. If you still need the project, click the following link, otherwise the project will be archived in 14 days.
|
||
|
permission_reactivate_project: Reactivate Project
|
||
| config/locales/cs.yml | ||
|---|---|---|
|
permission_export_wiki_pages: Export wiki pages
|
||
|
setting_cache_formatted_text: Cache formatted text
|
||
|
permission_manage_project_activities: Manage project activities
|
||
|
error_failed_to_reactivate: "Can't reactivate the project."
|
||
|
notice_successful_reactivate: Successful reactivation.
|
||
|
mail_subject_project_activity_warning: Activity reminder
|
||
|
mail_body_project_activity_warning: Your project '{{project}}' has no activity for a month. If you still need the project, click the following link, otherwise the project will be archived in 14 days.
|
||
|
permission_reactivate_project: Reactivate Project
|
||
| config/locales/da.yml | ||
|---|---|---|
|
permission_export_wiki_pages: Export wiki pages
|
||
|
setting_cache_formatted_text: Cache formatted text
|
||
|
permission_manage_project_activities: Manage project activities
|
||
|
error_failed_to_reactivate: "Can't reactivate the project."
|
||
|
notice_successful_reactivate: Successful reactivation.
|
||
|
mail_subject_project_activity_warning: Activity reminder
|
||
|
mail_body_project_activity_warning: Your project '{{project}}' has no activity for a month. If you still need the project, click the following link, otherwise the project will be archived in 14 days.
|
||
|
permission_reactivate_project: Reactivate Project
|
||
| config/locales/de.yml | ||
|---|---|---|
|
permission_export_wiki_pages: Wiki-Seiten exportieren
|
||
|
setting_cache_formatted_text: Formattierten Text zwischenspeichern
|
||
|
permission_manage_project_activities: Projektaktivitäten verwalten
|
||
|
error_failed_to_reactivate: Das Projekt konnte nicht reaktiviert werden.
|
||
|
notice_successful_reactivate: Erfolgreich reaktiviert.
|
||
|
mail_subject_project_activity_warning: Aktivitätswarnung
|
||
|
mail_body_project_activity_warning: |-
|
||
|
Das Projekt "{{project}}" weist seit über einem Monat keine Aktivität mehr auf. Falls das Projekt
|
||
|
nicht mehr benötigt wird, ignorieren sie diese E-Mail. In 14 Tagen wird das Projekt automatisch
|
||
|
archiviert. Falls Sie das Projekt "{{project}}" noch benötigen, klicken sie auf folgenden Link,
|
||
|
um es wieder zu aktivieren.
|
||
|
permission_reactivate_project: Projekt reaktivieren.
|
||
| config/locales/el.yml | ||
|---|---|---|
|
permission_export_wiki_pages: Export wiki pages
|
||
|
setting_cache_formatted_text: Cache formatted text
|
||
|
permission_manage_project_activities: Manage project activities
|
||
|
error_failed_to_reactivate: "Can't reactivate the project."
|
||
|
notice_successful_reactivate: Successful reactivation.
|
||
|
mail_subject_project_activity_warning: Activity reminder
|
||
|
mail_body_project_activity_warning: Your project '{{project}}' has no activity for a month. If you still need the project, click the following link, otherwise the project will be archived in 14 days.
|
||
|
permission_reactivate_project: Reactivate Project
|
||
| config/locales/en.yml | ||
|---|---|---|
|
notice_successful_update: Successful update.
|
||
|
notice_successful_delete: Successful deletion.
|
||
|
notice_successful_connection: Successful connection.
|
||
|
notice_successful_reactivate: Successful reactivation.
|
||
|
notice_file_not_found: The page you were trying to access doesn't exist or has been removed.
|
||
|
notice_locking_conflict: Data has been updated by another user.
|
||
|
notice_not_authorized: You are not authorized to access this page.
|
||
| ... | ... | |
|
error_issue_done_ratios_not_updated: "Issue done ratios not updated."
|
||
|
error_workflow_copy_source: 'Please select a source tracker or role'
|
||
|
error_workflow_copy_target: 'Please select target tracker(s) and role(s)'
|
||
|
error_failed_to_reactivate: "Can't reactivate the project."
|
||
|
|
||
|
warning_attachments_not_saved: "{{count}} file(s) could not be saved."
|
||
|
|
||
| ... | ... | |
|
mail_body_wiki_content_added: "The '{{page}}' wiki page has been added by {{author}}."
|
||
|
mail_subject_wiki_content_updated: "'{{page}}' wiki page has been updated"
|
||
|
mail_body_wiki_content_updated: "The '{{page}}' wiki page has been updated by {{author}}."
|
||
|
mail_subject_project_activity_warning: "Activity reminder"
|
||
|
mail_body_project_activity_warning: "Your project '{{project}}' has no activity for a month. If you still need the project, click the following link, otherwise the project will be archived in 14 days."
|
||
|
|
||
|
gui_validation_error: 1 error
|
||
|
gui_validation_error_plural: "{{count}} errors"
|
||
| ... | ... | |
|
permission_delete_messages: Delete messages
|
||
|
permission_delete_own_messages: Delete own messages
|
||
|
permission_export_wiki_pages: Export wiki pages
|
||
|
permission_reactivate_project: Reactivate Project
|
||
|
|
||
|
project_module_issue_tracking: Issue tracking
|
||
|
project_module_time_tracking: Time tracking
|
||
| config/locales/es.yml | ||
|---|---|---|
|
permission_export_wiki_pages: Export wiki pages
|
||
|
setting_cache_formatted_text: Cache formatted text
|
||
|
permission_manage_project_activities: Manage project activities
|
||
|
error_failed_to_reactivate: "Can't reactivate the project."
|
||
|
notice_successful_reactivate: Successful reactivation.
|
||
|
mail_subject_project_activity_warning: Activity reminder
|
||
|
mail_body_project_activity_warning: Your project '{{project}}' has no activity for a month. If you still need the project, click the following link, otherwise the project will be archived in 14 days.
|
||
|
permission_reactivate_project: Reactivate Project
|
||
| config/locales/fi.yml | ||
|---|---|---|
|
permission_export_wiki_pages: Export wiki pages
|
||
|
setting_cache_formatted_text: Cache formatted text
|
||
|
permission_manage_project_activities: Manage project activities
|
||
|
error_failed_to_reactivate: "Can't reactivate the project."
|
||
|
notice_successful_reactivate: Successful reactivation.
|
||
|
mail_subject_project_activity_warning: Activity reminder
|
||
|
mail_body_project_activity_warning: Your project '{{project}}' has no activity for a month. If you still need the project, click the following link, otherwise the project will be archived in 14 days.
|
||
|
permission_reactivate_project: Reactivate Project
|
||
| config/locales/fr.yml | ||
|---|---|---|
|
enumeration_system_activity: Activité système
|
||
|
label_board_sticky: Sticky
|
||
|
label_board_locked: Verrouillé
|
||
|
error_failed_to_reactivate: "Can't reactivate the project."
|
||
|
notice_successful_reactivate: Successful reactivation.
|
||
|
mail_subject_project_activity_warning: Activity reminder
|
||
|
mail_body_project_activity_warning: Your project '{{project}}' has no activity for a month. If you still need the project, click the following link, otherwise the project will be archived in 14 days.
|
||
|
permission_reactivate_project: Reactivate Project
|
||
| config/locales/gl.yml | ||
|---|---|---|
|
permission_export_wiki_pages: Export wiki pages
|
||
|
setting_cache_formatted_text: Cache formatted text
|
||
|
permission_manage_project_activities: Manage project activities
|
||
|
error_failed_to_reactivate: "Can't reactivate the project."
|
||
|
notice_successful_reactivate: Successful reactivation.
|
||
|
mail_subject_project_activity_warning: Activity reminder
|
||
|
mail_body_project_activity_warning: Your project '{{project}}' has no activity for a month. If you still need the project, click the following link, otherwise the project will be archived in 14 days.
|
||
|
permission_reactivate_project: Reactivate Project
|
||
| config/locales/he.yml | ||
|---|---|---|
|
permission_export_wiki_pages: Export wiki pages
|
||
|
setting_cache_formatted_text: Cache formatted text
|
||
|
permission_manage_project_activities: Manage project activities
|
||
|
error_failed_to_reactivate: "Can't reactivate the project."
|
||
|
notice_successful_reactivate: Successful reactivation.
|
||
|
mail_subject_project_activity_warning: Activity reminder
|
||
|
mail_body_project_activity_warning: Your project '{{project}}' has no activity for a month. If you still need the project, click the following link, otherwise the project will be archived in 14 days.
|
||
|
permission_reactivate_project: Reactivate Project
|
||
| config/locales/hr.yml | ||
|---|---|---|
|
permission_export_wiki_pages: Export wiki pages
|
||
|
setting_cache_formatted_text: Cache formatted text
|
||
|
permission_manage_project_activities: Manage project activities
|
||
|
error_failed_to_reactivate: "Can't reactivate the project."
|
||
|
notice_successful_reactivate: Successful reactivation.
|
||
|
mail_subject_project_activity_warning: Activity reminder
|
||
|
mail_body_project_activity_warning: Your project '{{project}}' has no activity for a month. If you still need the project, click the following link, otherwise the project will be archived in 14 days.
|
||
|
permission_reactivate_project: Reactivate Project
|
||
| config/locales/hu.yml | ||
|---|---|---|
|
permission_export_wiki_pages: Export wiki pages
|
||
|
setting_cache_formatted_text: Cache formatted text
|
||
|
permission_manage_project_activities: Manage project activities
|
||
|
error_failed_to_reactivate: "Can't reactivate the project."
|
||
|
notice_successful_reactivate: Successful reactivation.
|
||
|
mail_subject_project_activity_warning: Activity reminder
|
||
|
mail_body_project_activity_warning: Your project '{{project}}' has no activity for a month. If you still need the project, click the following link, otherwise the project will be archived in 14 days.
|
||
|
permission_reactivate_project: Reactivate Project
|
||
| config/locales/id.yml | ||
|---|---|---|
|
permission_export_wiki_pages: Export wiki pages
|
||
|
setting_cache_formatted_text: Cache formatted text
|
||
|
permission_manage_project_activities: Manage project activities
|
||
|
error_failed_to_reactivate: "Can't reactivate the project."
|
||
|
notice_successful_reactivate: Successful reactivation.
|
||
|
mail_subject_project_activity_warning: Activity reminder
|
||
|
mail_body_project_activity_warning: Your project '{{project}}' has no activity for a month. If you still need the project, click the following link, otherwise the project will be archived in 14 days.
|
||
|
permission_reactivate_project: Reactivate Project
|
||
| config/locales/it.yml | ||
|---|---|---|
|
permission_export_wiki_pages: Export wiki pages
|
||
|
setting_cache_formatted_text: Cache formatted text
|
||
|
permission_manage_project_activities: Manage project activities
|
||
|
|
||
|
error_failed_to_reactivate: "Can't reactivate the project."
|
||
|
notice_successful_reactivate: Successful reactivation.
|
||
|
mail_subject_project_activity_warning: Activity reminder
|
||
|
mail_body_project_activity_warning: Your project '{{project}}' has no activity for a month. If you still need the project, click the following link, otherwise the project will be archived in 14 days.
|
||
|
permission_reactivate_project: Reactivate Project
|
||
| config/locales/ja.yml | ||
|---|---|---|
|
enumeration_activities: 作業分類 (時間トラッキング)
|
||
|
enumeration_system_activity: システム作業分類
|
||
|
permission_manage_project_activities: Manage project activities
|
||
|
error_failed_to_reactivate: "Can't reactivate the project."
|
||
|
notice_successful_reactivate: Successful reactivation.
|
||
|
mail_subject_project_activity_warning: Activity reminder
|
||
|
mail_body_project_activity_warning: Your project '{{project}}' has no activity for a month. If you still need the project, click the following link, otherwise the project will be archived in 14 days.
|
||
|
permission_reactivate_project: Reactivate Project
|
||
| config/locales/ko.yml | ||
|---|---|---|
|
permission_export_wiki_pages: Export wiki pages
|
||
|
setting_cache_formatted_text: Cache formatted text
|
||
|
permission_manage_project_activities: Manage project activities
|
||
|
error_failed_to_reactivate: "Can't reactivate the project."
|
||
|
notice_successful_reactivate: Successful reactivation.
|
||
|
mail_subject_project_activity_warning: Activity reminder
|
||
|
mail_body_project_activity_warning: Your project '{{project}}' has no activity for a month. If you still need the project, click the following link, otherwise the project will be archived in 14 days.
|
||
|
permission_reactivate_project: Reactivate Project
|
||
| config/locales/lt.yml | ||
|---|---|---|
|
permission_export_wiki_pages: Export wiki pages
|
||
|
setting_cache_formatted_text: Cache formatted text
|
||
|
permission_manage_project_activities: Manage project activities
|
||
|
error_failed_to_reactivate: "Can't reactivate the project."
|
||
|
notice_successful_reactivate: Successful reactivation.
|
||
|
mail_subject_project_activity_warning: Activity reminder
|
||
|
mail_body_project_activity_warning: Your project '{{project}}' has no activity for a month. If you still need the project, click the following link, otherwise the project will be archived in 14 days.
|
||
|
permission_reactivate_project: Reactivate Project
|
||
| config/locales/nl.yml | ||
|---|---|---|
|
permission_export_wiki_pages: Export wiki pages
|
||
|
setting_cache_formatted_text: Cache formatted text
|
||
|
permission_manage_project_activities: Manage project activities
|
||
|
error_failed_to_reactivate: "Can't reactivate the project."
|
||
|
notice_successful_reactivate: Successful reactivation.
|
||
|
mail_subject_project_activity_warning: Activity reminder
|
||
|
mail_body_project_activity_warning: Your project '{{project}}' has no activity for a month. If you still need the project, click the following link, otherwise the project will be archived in 14 days.
|
||
|
permission_reactivate_project: Reactivate Project
|
||
| config/locales/no.yml | ||
|---|---|---|
|
permission_export_wiki_pages: Export wiki pages
|
||
|
setting_cache_formatted_text: Cache formatted text
|
||
|
permission_manage_project_activities: Manage project activities
|
||
|
error_failed_to_reactivate: "Can't reactivate the project."
|
||
|
notice_successful_reactivate: Successful reactivation.
|
||
|
mail_subject_project_activity_warning: Activity reminder
|
||
|
mail_body_project_activity_warning: Your project '{{project}}' has no activity for a month. If you still need the project, click the following link, otherwise the project will be archived in 14 days.
|
||
|
permission_reactivate_project: Reactivate Project
|
||
| config/locales/pl.yml | ||
|---|---|---|
|
permission_export_wiki_pages: Eksport stron wiki
|
||
|
permission_manage_project_activities: Zarządzanie aktywnościami projektu
|
||
|
setting_cache_formatted_text: Cache formatted text
|
||
|
error_failed_to_reactivate: "Can't reactivate the project."
|
||
|
notice_successful_reactivate: Successful reactivation.
|
||
|
mail_subject_project_activity_warning: Activity reminder
|
||
|
mail_body_project_activity_warning: Your project '{{project}}' has no activity for a month. If you still need the project, click the following link, otherwise the project will be archived in 14 days.
|
||
|
permission_reactivate_project: Reactivate Project
|
||
| config/locales/pt-BR.yml | ||
|---|---|---|
|
permission_export_wiki_pages: Export wiki pages
|
||
|
setting_cache_formatted_text: Cache formatted text
|
||
|
permission_manage_project_activities: Manage project activities
|
||
|
error_failed_to_reactivate: "Can't reactivate the project."
|
||
|
notice_successful_reactivate: Successful reactivation.
|
||
|
mail_subject_project_activity_warning: Activity reminder
|
||
|
mail_body_project_activity_warning: Your project '{{project}}' has no activity for a month. If you still need the project, click the following link, otherwise the project will be archived in 14 days.
|
||
|
permission_reactivate_project: Reactivate Project
|
||
| config/locales/pt.yml | ||
|---|---|---|
|
permission_export_wiki_pages: Export wiki pages
|
||
|
setting_cache_formatted_text: Cache formatted text
|
||
|
permission_manage_project_activities: Manage project activities
|
||
|
error_failed_to_reactivate: "Can't reactivate the project."
|
||
|
notice_successful_reactivate: Successful reactivation.
|
||
|
mail_subject_project_activity_warning: Activity reminder
|
||
|
mail_body_project_activity_warning: Your project '{{project}}' has no activity for a month. If you still need the project, click the following link, otherwise the project will be archived in 14 days.
|
||
|
permission_reactivate_project: Reactivate Project
|
||
| config/locales/ro.yml | ||
|---|---|---|
|
permission_export_wiki_pages: Export wiki pages
|
||
|
setting_cache_formatted_text: Cache formatted text
|
||
|
permission_manage_project_activities: Manage project activities
|
||
|
error_failed_to_reactivate: "Can't reactivate the project."
|
||
|
notice_successful_reactivate: Successful reactivation.
|
||
|
mail_subject_project_activity_warning: Activity reminder
|
||
|
mail_body_project_activity_warning: Your project '{{project}}' has no activity for a month. If you still need the project, click the following link, otherwise the project will be archived in 14 days.
|
||
|
permission_reactivate_project: Reactivate Project
|
||
| config/locales/ru.yml | ||
|---|---|---|
|
permission_export_wiki_pages: Export wiki pages
|
||
|
setting_cache_formatted_text: Cache formatted text
|
||
|
permission_manage_project_activities: Manage project activities
|
||
|
error_failed_to_reactivate: "Can't reactivate the project."
|
||
|
notice_successful_reactivate: Successful reactivation.
|
||
|
mail_subject_project_activity_warning: Activity reminder
|
||
|
mail_body_project_activity_warning: Your project '{{project}}' has no activity for a month. If you still need the project, click the following link, otherwise the project will be archived in 14 days.
|
||
|
permission_reactivate_project: Reactivate Project
|
||
| config/locales/sk.yml | ||
|---|---|---|
|
permission_export_wiki_pages: Export wiki pages
|
||
|
setting_cache_formatted_text: Cache formatted text
|
||
|
permission_manage_project_activities: Manage project activities
|
||
|
error_failed_to_reactivate: "Can't reactivate the project."
|
||
|
notice_successful_reactivate: Successful reactivation.
|
||
|
mail_subject_project_activity_warning: Activity reminder
|
||
|
mail_body_project_activity_warning: Your project '{{project}}' has no activity for a month. If you still need the project, click the following link, otherwise the project will be archived in 14 days.
|
||
|
permission_reactivate_project: Reactivate Project
|
||
| config/locales/sl.yml | ||
|---|---|---|
|
permission_export_wiki_pages: Export wiki pages
|
||
|
setting_cache_formatted_text: Cache formatted text
|
||
|
permission_manage_project_activities: Manage project activities
|
||
|
error_failed_to_reactivate: "Can't reactivate the project."
|
||
|
notice_successful_reactivate: Successful reactivation.
|
||
|
mail_subject_project_activity_warning: Activity reminder
|
||
|
mail_body_project_activity_warning: Your project '{{project}}' has no activity for a month. If you still need the project, click the following link, otherwise the project will be archived in 14 days.
|
||
|
permission_reactivate_project: Reactivate Project
|
||
| config/locales/sr.yml | ||
|---|---|---|
|
permission_export_wiki_pages: Export wiki pages
|
||
|
setting_cache_formatted_text: Cache formatted text
|
||
|
permission_manage_project_activities: Manage project activities
|
||
|
error_failed_to_reactivate: "Can't reactivate the project."
|
||
|
notice_successful_reactivate: Successful reactivation.
|
||
|
mail_subject_project_activity_warning: Activity reminder
|
||
|
mail_body_project_activity_warning: Your project '{{project}}' has no activity for a month. If you still need the project, click the following link, otherwise the project will be archived in 14 days.
|
||
|
permission_reactivate_project: Reactivate Project
|
||
| config/locales/sv.yml | ||
|---|---|---|
|
permission_export_wiki_pages: Export wiki pages
|
||
|
setting_cache_formatted_text: Cache formatted text
|
||
|
permission_manage_project_activities: Manage project activities
|
||
|
error_failed_to_reactivate: "Can't reactivate the project."
|
||
|
notice_successful_reactivate: Successful reactivation.
|
||
|
mail_subject_project_activity_warning: Activity reminder
|
||
|
mail_body_project_activity_warning: Your project '{{project}}' has no activity for a month. If you still need the project, click the following link, otherwise the project will be archived in 14 days.
|
||
|
permission_reactivate_project: Reactivate Project
|
||
| config/locales/th.yml | ||
|---|---|---|
|
permission_export_wiki_pages: Export wiki pages
|
||
|
setting_cache_formatted_text: Cache formatted text
|
||
|
permission_manage_project_activities: Manage project activities
|
||
|
error_failed_to_reactivate: "Can't reactivate the project."
|
||
|
notice_successful_reactivate: Successful reactivation.
|
||
|
mail_subject_project_activity_warning: Activity reminder
|
||
|
mail_body_project_activity_warning: Your project '{{project}}' has no activity for a month. If you still need the project, click the following link, otherwise the project will be archived in 14 days.
|
||
|
permission_reactivate_project: Reactivate Project
|
||
| config/locales/tr.yml | ||
|---|---|---|
|
permission_export_wiki_pages: Export wiki pages
|
||
|
setting_cache_formatted_text: Cache formatted text
|
||
|
permission_manage_project_activities: Manage project activities
|
||
|
error_failed_to_reactivate: "Can't reactivate the project."
|
||
|
notice_successful_reactivate: Successful reactivation.
|
||
|
mail_subject_project_activity_warning: Activity reminder
|
||
|
mail_body_project_activity_warning: Your project '{{project}}' has no activity for a month. If you still need the project, click the following link, otherwise the project will be archived in 14 days.
|
||
|
permission_reactivate_project: Reactivate Project
|
||
| config/locales/uk.yml | ||
|---|---|---|
|
permission_export_wiki_pages: Export wiki pages
|
||
|
setting_cache_formatted_text: Cache formatted text
|
||
|
permission_manage_project_activities: Manage project activities
|
||
|
error_failed_to_reactivate: "Can't reactivate the project."
|
||
|
notice_successful_reactivate: Successful reactivation.
|
||
|
mail_subject_project_activity_warning: Activity reminder
|
||
|
mail_body_project_activity_warning: Your project '{{project}}' has no activity for a month. If you still need the project, click the following link, otherwise the project will be archived in 14 days.
|
||
|
permission_reactivate_project: Reactivate Project
|
||
| config/locales/vi.yml | ||
|---|---|---|
|
permission_export_wiki_pages: Export wiki pages
|
||
|
setting_cache_formatted_text: Cache formatted text
|
||
|
permission_manage_project_activities: Manage project activities
|
||
|
error_failed_to_reactivate: "Can't reactivate the project."
|
||
|
notice_successful_reactivate: Successful reactivation.
|
||
|
mail_subject_project_activity_warning: Activity reminder
|
||
|
mail_body_project_activity_warning: Your project '{{project}}' has no activity for a month. If you still need the project, click the following link, otherwise the project will be archived in 14 days.
|
||
|
permission_reactivate_project: Reactivate Project
|
||
| config/locales/zh-TW.yml | ||
|---|---|---|
|
permission_export_wiki_pages: Export wiki pages
|
||
|
setting_cache_formatted_text: Cache formatted text
|
||
|
permission_manage_project_activities: Manage project activities
|
||
|
error_failed_to_reactivate: "Can't reactivate the project."
|
||
|
notice_successful_reactivate: Successful reactivation.
|
||
|
mail_subject_project_activity_warning: Activity reminder
|
||
|
mail_body_project_activity_warning: Your project '{{project}}' has no activity for a month. If you still need the project, click the following link, otherwise the project will be archived in 14 days.
|
||
|
permission_reactivate_project: Reactivate Project
|
||
| config/locales/zh.yml | ||
|---|---|---|
|
permission_export_wiki_pages: Export wiki pages
|
||
|
setting_cache_formatted_text: Cache formatted text
|
||
|
permission_manage_project_activities: Manage project activities
|
||
|
|
||
|
error_failed_to_reactivate: "Can't reactivate the project."
|
||
|
notice_successful_reactivate: Successful reactivation.
|
||
|
mail_subject_project_activity_warning: Activity reminder
|
||
|
mail_body_project_activity_warning: Your project '{{project}}' has no activity for a month. If you still need the project, click the following link, otherwise the project will be archived in 14 days.
|
||
|
permission_reactivate_project: Reactivate Project
|
||
| config/routes.rb | ||
|---|---|---|
|
project_views.connect 'projects/:id/versions/new', :action => 'add_version'
|
||
|
project_views.connect 'projects/:id/categories/new', :action => 'add_issue_category'
|
||
|
project_views.connect 'projects/:id/settings/:tab', :action => 'settings'
|
||
|
project_views.connect 'projects/:id/reactivate', :action => 'reactivate'
|
||
|
end
|
||
|
projects.with_options :action => 'activity', :conditions => {:method => :get} do |activity|
|
||
| lib/redmine.rb | ||
|---|---|---|
|
map.permission :manage_members, {:projects => :settings, :members => [:new, :edit, :destroy, :autocomplete_for_member]}, :require => :member
|
||
|
map.permission :manage_versions, {:projects => [:settings, :add_version], :versions => [:edit, :close_completed, :destroy]}, :require => :member
|
||
|
map.permission :add_subprojects, {:projects => :add}, :require => :member
|
||
|
map.permission :reactivate_project, {:projects => :reactivate}, :require => :member
|
||
|
|
||
|
map.project_module :issue_tracking do |map|
|
||
|
# Issue categories
|
||