rosa-build/app/views/repositories/_proj_ajax.js.erb

13 lines
422 B
Plaintext
Raw Normal View History

{"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 %>
]}