diff --git a/app/models/softapplication.rb b/app/models/softapplication.rb
index 770d70d53..a572a22ba 100644
--- a/app/models/softapplication.rb
+++ b/app/models/softapplication.rb
@@ -11,6 +11,10 @@ class Softapplication < ActiveRecord::Base
belongs_to :project
has_many :contests, :through => :contesting_softapplications
+ validates_length_of :name, :maximum => 125
+ validates_length_of :application_developers, :maximum => 125
+ validates_length_of :android_min_version_available, :maximum => 125
+
def add_jour(user, notes, reference_user_id = 0, options = {})
if options.count == 0
self.journals_for_messages << JournalsForMessage.new(:user_id => user.id, :notes => notes, :reply_id => reference_user_id)
diff --git a/app/views/attachments/_links.html.erb b/app/views/attachments/_links.html.erb
index 99ecab35d..4d938707e 100644
--- a/app/views/attachments/_links.html.erb
+++ b/app/views/attachments/_links.html.erb
@@ -1,6 +1,9 @@
<% for attachment in attachments %>
-
<%= link_to_attachment attachment, :class => 'icon icon-attachment', :download => true -%>
+
+
+ <%= link_to_attachment attachment, :class => 'icon icon-attachment', :download => true -%>
+
<% if attachment.is_text? %>
<%= link_to image_tag('magnifier.png'),
:controller => 'attachments', :action => 'show',
diff --git a/app/views/contests/_new_softapplication.html.erb b/app/views/contests/_new_softapplication.html.erb
index 830bcd314..c83bdf6e9 100644
--- a/app/views/contests/_new_softapplication.html.erb
+++ b/app/views/contests/_new_softapplication.html.erb
@@ -6,7 +6,7 @@
<%= l(:label_work_name) %>
* :
<%= f.text_field :name, :required => true, :size => 60, :style => "width:350px;" %> |
-
+
(<%= l(:label_workname_lengthlimit) %>)
@@ -15,8 +15,10 @@
<%= l(:label_running_platform) %>
* :
- <%= f.text_field :android_min_version_available, :required => true, :size => 60, :style => "width:350px;" %> |
-
+
+ <%= f.text_field :android_min_version_available, :required => true, :size => 60, :style => "width:350px;" %>
+ |
+ (<%= l(:label_workdescription_lengthlimit) %>)
@@ -55,7 +57,7 @@
<%= l(:label_softapplication_developers) %>
* :
<%= f.text_field :application_developers, :required => true, :size => 60, :style => "width:350px;" %> |
-
+
(<%= l(:label_workdescription_lengthlimit) %>)
diff --git a/app/views/softapplications/_form.html.erb b/app/views/softapplications/_form.html.erb
index 27954a7d0..58f8093a6 100644
--- a/app/views/softapplications/_form.html.erb
+++ b/app/views/softapplications/_form.html.erb
@@ -32,7 +32,7 @@
<%= l(:label_work_name) %>
* : <%= f.text_field :name, :required => true, :size => 60, :style => "width:400px;" %> |
- <%= l(:label_softapplication_name_condition)%>
+ (<%= l(:label_workname_lengthlimit) %>)
@@ -40,7 +40,7 @@
<%= l(:label_running_platform) %>
* : <%= f.text_field :android_min_version_available, :required => true, :size => 60, :style => "width:400px;" %> |
-
+ (<%= l(:label_workdescription_lengthlimit) %>)
@@ -73,7 +73,7 @@
<%= l(:label_work_description) %>
* : <%= f.text_field :description, :required => true, :size => 60, :style => "width:400px;" %> |
- <%= l(:label_softapplication_description_condition)%>
+
@@ -82,7 +82,7 @@
<%= l(:label_softapplication_developers) %>
* : <%= f.text_field :application_developers, :required => true, :size => 60, :style => "width:400px;" %> |
-
+ (<%= l(:label_workdescription_lengthlimit) %>)
@@ -100,10 +100,15 @@