diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb
index 844178584..451283954 100644
--- a/app/controllers/projects_controller.rb
+++ b/app/controllers/projects_controller.rb
@@ -100,7 +100,7 @@ class ProjectsController < ApplicationController
@project_count = @projects.count
@project_pages = Paginator.new @project_count, @limit, params['page']
@offset ||= @project_pages.offset
- @projects = @projects.offset(@offset).limit(@limit).order('lft').all
+ @projects = @projects.offset(@offset).limit(@limit).order('created_on DESC').all
#end
respond_to do |format|
format.html {
@@ -109,7 +109,7 @@ class ProjectsController < ApplicationController
unless params[:closed]
scope = scope.active
end
- @projects = scope.visible.offset(@offset).limit(@limit).order('lft').all
+ @projects = scope.visible.offset(@offset).limit(@limit).order('created_on DESC').all
}
format.api {
# @offset, @limit = api_offset_and_limit
diff --git a/app/views/projects/show.html.erb b/app/views/projects/show.html.erb
index e838538c6..12adb3b55 100644
--- a/app/views/projects/show.html.erb
+++ b/app/views/projects/show.html.erb
@@ -23,7 +23,7 @@
<%= format_activity_day(day) %> <%= format_time(e.event_datetime, false) %> |
- <% if e.class == Issue %>
+ <% if e.event_type == "issue" %>
<%= link_to l(:label_find_all_comments), issue_path(e) %><%= l(:label_comments_count, :count => e.journals.count)%> |
<% end %>
diff --git a/app/views/users/show.html.erb b/app/views/users/show.html.erb
index aea34195e..c88ea171d 100644
--- a/app/views/users/show.html.erb
+++ b/app/views/users/show.html.erb
@@ -24,6 +24,9 @@
<%= textilizable act.description %>
+
+
+
<% when 'Journal' %>
|
<% if e.user == User.current%>
@@ -38,6 +41,9 @@
<%= textilizable act.notes %>
+
+
+
<% when 'Changeset' %>
|
<% if e.user == User.current%>
@@ -52,6 +58,9 @@
<%= textilizable act.long_comments %>
+
+
+
<% when 'Message' %>
|
<% if e.user == User.current%>
@@ -66,6 +75,9 @@
<%= textilizable act.content %>
+
+
+
<% when 'News' %>
|
<% if e.user == User.current%>
@@ -80,6 +92,9 @@
<%= textilizable act.description %>
+
+
+
<% when 'Issue' %>
|
<% if e.user == User.current%>
@@ -94,31 +109,34 @@
<%= textilizable act.description %>
- <% end %>
+
- |
-
- <% if e.act_type == 'Changeset' %>
+ |
+
+ <% end %>
+ <% if e.act_type == 'Changeset' %>
<%= format_time(e.act.committed_on) %>
<% else %>
<%= format_time(e.act.created_on) %>
- <% end %> |
+ <% end %>
+
<% end %>
-
-
+
<% end %>
-
+
- <% else %>
- <%= l(:label_user_activities) %>
+<% else %>
+
+ <%= l(:label_user_activities) %>
+
<% end %>
\ No newline at end of file