diff --git a/app/models/project.rb b/app/models/project.rb index 9a0265a8..97c4f732 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -88,6 +88,7 @@ class Project < ActiveRecord::Base validates_presence_of :name, :identifier validates_uniqueness_of :identifier validates_associated :repository, :wiki + validates_length_of :description, :maximum => 255 validates_length_of :name, :maximum => 255 validates_length_of :homepage, :maximum => 255 validates_length_of :identifier, :in => 1..IDENTIFIER_MAX_LENGTH diff --git a/app/views/activities/index.html.erb b/app/views/activities/index.html.erb index ffee6324..0154bb68 100644 --- a/app/views/activities/index.html.erb +++ b/app/views/activities/index.html.erb @@ -67,7 +67,8 @@
<%= h(e.project) if @project.nil? || @project != e.project %> <%= l(:label_new_activity) %> <%= link_to format_activity_title(e.event_title), e.event_url %> | +<%= h(e.project) if @project.nil? || @project != e.project %> + <%= l(:label_new_activity) %> <%= link_to format_activity_title(e.event_title), e.event_url %> | ||
<%= format_activity_description(e.event_description) %> |
diff --git a/app/views/layouts/base_projects.html.erb b/app/views/layouts/base_projects.html.erb
index 09c8f74a..01acb7ba 100644
--- a/app/views/layouts/base_projects.html.erb
+++ b/app/views/layouts/base_projects.html.erb
@@ -28,6 +28,7 @@
<%= link_to image_tag(url_to_avatar(@project), :class => 'avatar2') %> | @@ -70,6 +71,7 @@