Mercurial > hg > soundsoftware-site
annotate lib/redmine/scm/.svn/text-base/base.rb.svn-base @ 69:dc22c3eb3c81 luisf
Feature #35:
- Does not show the label "My Projects" if the user does not have any projects.
- If the user is not signed in only shows the default Projects list.
author | luisf |
---|---|
date | Mon, 06 Dec 2010 18:12:52 +0000 |
parents | 513646585e45 |
children |
rev | line source |
---|---|
Chris@0 | 1 module Redmine |
Chris@0 | 2 module Scm |
Chris@0 | 3 class Base |
Chris@0 | 4 class << self |
Chris@0 | 5 |
Chris@0 | 6 def all |
Chris@0 | 7 @scms |
Chris@0 | 8 end |
Chris@0 | 9 |
Chris@0 | 10 # Add a new SCM adapter and repository |
Chris@0 | 11 def add(scm_name) |
Chris@0 | 12 @scms ||= [] |
Chris@0 | 13 @scms << scm_name |
Chris@0 | 14 end |
Chris@0 | 15 |
Chris@0 | 16 # Remove a SCM adapter from Redmine's list of supported scms |
Chris@0 | 17 def delete(scm_name) |
Chris@0 | 18 @scms.delete(scm_name) |
Chris@0 | 19 end |
Chris@0 | 20 end |
Chris@0 | 21 end |
Chris@0 | 22 end |
Chris@0 | 23 end |