16 lines
613 B
Plaintext
16 lines
613 B
Plaintext
{
|
|
"sEcho": <%=h params[:sEcho].to_i || -1 %>,
|
|
"iTotalRecords": <%= @total_projects %>,
|
|
"iTotalDisplayRecords": <%= @total_project %>,
|
|
"aaData": [
|
|
<% @projects.each do |project| %>
|
|
[
|
|
"<%=j link_to("#{project.owner.respond_to?(:uname) ? project.owner.uname : project.owner.name} / #{project.name}", project) %>",
|
|
"<%= truncate(project.description || '', :length => 60).gsub("\n", ' ') %>",
|
|
"<%=j link_to t("layout.add"), url_for(:controller => :repositories, :action => :add_project, :project_id => project.id) %>"
|
|
]<%= project == @projects.last ? '' : ',' %>
|
|
<% end %>
|
|
]
|
|
}
|
|
|