13 lines
422 B
Plaintext
13 lines
422 B
Plaintext
|
{"sEcho": <%= params[:sEcho] || -1 %>,
|
||
|
"iTotalRecords": <%= @total_projects %>,
|
||
|
"iTotalDisplayRecords": <%= @total_project %>,
|
||
|
"aaData":[
|
||
|
<% @projects.each do |project| %>
|
||
|
['<%= link_to(project.owner.uname, project.owner) %>',
|
||
|
'<%= link_to(project.name, project) %>',
|
||
|
'<%= link_to t("layout.add"), url_for(:controller => :repositories, :action => :add_project, :project_id => project.id) %>'
|
||
|
],
|
||
|
<% end %>
|
||
|
]}
|
||
|
|