summaryrefslogtreecommitdiffstats
path: root/app/helpers/admin_helper.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-05-27 17:42:04 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-05-27 17:42:04 +0000
commit413247ee5b1643dff7923687711c77a5d90d41f5 (patch)
tree3ab2e5d182fee99cbb145f1783732db5bb46e7bc /app/helpers/admin_helper.rb
parent70374d084e19dba21e83e8a360a62ff0168ff207 (diff)
downloadredmine-413247ee5b1643dff7923687711c77a5d90d41f5.tar.gz
redmine-413247ee5b1643dff7923687711c77a5d90d41f5.zip
Added the ability to archive projects:
* Only administrators can archive/unarchive projects. * Once archived, the project is visible on the admin project listing only. It doesn't show up anywhere else in the app. Subprojects are also archived. * Archive/unarchive preserve everything on the project (issues, members, ...). * A subproject can not be unarchived if its parent project is archived. git-svn-id: http://redmine.rubyforge.org/svn/trunk@549 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers/admin_helper.rb')
-rw-r--r--app/helpers/admin_helper.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/helpers/admin_helper.rb b/app/helpers/admin_helper.rb
index 4f82a3790..1b41d8374 100644
--- a/app/helpers/admin_helper.rb
+++ b/app/helpers/admin_helper.rb
@@ -16,4 +16,8 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
module AdminHelper
+ def project_status_options_for_select(selected)
+ options_for_select([[l(:label_all), "*"],
+ [l(:status_active), 1]], selected)
+ end
end