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| %>
|
|
|
|
[
|
|
|
|
"<%=j link_to project.owner.uname, project.owner %>",
|
|
|
|
"<%=j link_to project.name, project %>",
|
|
|
|
"<%=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
|
|
|
|