[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [Redmine] ea43e56: Experiment with raising the project identifier len
From: Eike Hein <hein () kde ! org>
Date: 2010-10-09 1:07:06
Message-ID: 20101009010706.EE44DA608F () git ! kde ! org
[Download RAW message or body]
commit ea43e561ff7fa87fff67a21e3623f09436fdeed0
Author: Eike Hein <hein@kde.org>
Date: Sat Oct 9 03:07:11 2010 +0200
Experiment with raising the project identifier length to 100.
diff --git a/app/models/project.rb b/app/models/project.rb
index 931f89b..459c36c 100644
--- a/app/models/project.rb
+++ b/app/models/project.rb
@@ -68,7 +68,7 @@ class Project < ActiveRecord::Base
validates_associated :repository, :wiki
validates_length_of :name, :maximum => 30
validates_length_of :homepage, :maximum => 255
- validates_length_of :identifier, :in => 1..20
+ validates_length_of :identifier, :in => 1..100
# donwcase letters, digits, dashes but not digits only
validates_format_of :identifier, :with => /^(?!\d+$)[a-z0-9\-]*$/, :if => Proc.new \
{ |p| p.identifier_changed? } # reserved words
diff --git a/app/views/projects/_form.rhtml b/app/views/projects/_form.rhtml
index 30848e4..b293cb5 100644
--- a/app/views/projects/_form.rhtml
+++ b/app/views/projects/_form.rhtml
@@ -11,7 +11,7 @@
<p><%= f.text_area :description, :rows => 5, :class => 'wiki-edit' %></p>
<p><%= f.text_field :identifier, :required => true, :disabled => \
@project.identifier_frozen? %> <% unless @project.identifier_frozen? %>
-<br /><em><%= l(:text_length_between, :min => 1, :max => 20) %> <%= \
l(:text_project_identifier_info) %></em> +<br /><em><%= l(:text_length_between, :min \
=> 1, :max => 100) %> <%= l(:text_project_identifier_info) %></em> <% end %></p>
<p><%= f.text_field :homepage, :size => 60 %></p>
<p><%= f.check_box :is_public %></p>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic