2012-01-11 21:12:56 +00:00
|
|
|
{
|
|
|
|
"sEcho": <%=h params[:sEcho].to_i || -1 %>,
|
|
|
|
"iTotalRecords": <%= @total_projects %>,
|
|
|
|
"iTotalDisplayRecords": <%= @total_project %>,
|
|
|
|
"aaData": [
|
|
|
|
<% @projects.each do |project| %>
|
|
|
|
[
|
2012-03-15 13:53:36 +00:00
|
|
|
"<%=j link_to("#{project.owner.respond_to?(:uname) ? project.owner.uname : project.owner.name} / #{project.name}", project) %>",
|
2012-03-23 22:48:15 +00:00
|
|
|
"<%= truncate(project.description || '', :length => 60).gsub("\n", ' ').gsub("\r", ' ') %>",
|
2012-01-11 21:12:56 +00:00
|
|
|
"<%=j link_to t("layout.add"), url_for(:controller => :repositories, :action => :add_project, :project_id => project.id) %>"
|
|
|
|
]<%= project == @projects.last ? '' : ',' %>
|
|
|
|
<% end %>
|
|
|
|
]
|
|
|
|
}
|
2011-12-30 22:42:58 +00:00
|
|
|
|