[Xfce4-commits] <moka:master> Fix project creating.
Nick Schermer
noreply at xfce.org
Wed Nov 23 19:40:01 CET 2011
Updating branch refs/heads/master
to d1d47ce507a4b1be7827dde9e7e0f5259ff4ba69 (commit)
from 4b503e304309ea0e7af82ae1f0b488184537cb6c (commit)
commit d1d47ce507a4b1be7827dde9e7e0f5259ff4ba69
Author: Nick Schermer <nick at xfce.org>
Date: Wed Nov 23 19:38:33 2011 +0100
Fix project creating.
lib/controllers/projects.rb | 6 ------
lib/views/project_list.haml | 9 +++------
2 files changed, 3 insertions(+), 12 deletions(-)
diff --git a/lib/controllers/projects.rb b/lib/controllers/projects.rb
index f0db20d..456e89a 100755
--- a/lib/controllers/projects.rb
+++ b/lib/controllers/projects.rb
@@ -21,12 +21,6 @@ module Moka
classification = Classification.find_by_name(params[:classification])
project.classify_as(classification) if classification
- if param[:defaultsgroups]
- project.groups << Group.get('archive')
- project.groups << Group.get('repo')
- project.groups << Group.get('public')
- end
-
project.save
redirect "/project/#{params[:name]}"
diff --git a/lib/views/project_list.haml b/lib/views/project_list.haml
index 3db99b1..81ef6cf 100644
--- a/lib/views/project_list.haml
+++ b/lib/views/project_list.haml
@@ -6,12 +6,9 @@
%input{:type => "text", :name => "name", :id => "name" }
%p
%label{:for => "classification"} Classification:
- %input{:type => "text", :name => "name", :id => "name" }
- %p.quote
- %input{:type => "checkbox",
- :name => "defaultsgroups",
- :id => "defaultsgroups"}
- Set default groups (archive, repo and public)
+ %select{:name => "classification", :id => "classification"}
+ - for classification in Classification.find_all
+ %option{:name => classification.name} #{classification.name}
%p.quote
%input{:type => "submit", :value => "Create" }
More information about the Xfce4-commits
mailing list