gitlabhq/app/views/projects/index.html.haml
Dmitriy Zaporozhets 6de7dc1e67 New projects page
2012-03-03 00:09:17 +02:00

40 lines
968 B
Plaintext

%h3
Projects
%small= "( #{current_user.projects.count} )"
- if current_user.can_create_project?
%span.right
= link_to new_project_path, :class => "btn small" do
New Project
%hr
- unless @projects.empty?
.row
.span5
%div.content_list.projects_list
- @projects.each do |project|
= link_to project_path(project), :remote => true, :class => dom_class(project) do
%h4
%span.ico.project
= truncate(project.name, :length => 26)
.span11.right.show_holder
.loading
- else
%h2 Nothing here
:javascript
$(function(){
$("a.project").live("ajax:before", function() {
$(".show_holder").html("<div class='loading'>");
$('a.project').removeClass("active");
$(this).addClass("active");
});
$('a.project:first-child').trigger("click");
});
- if @projects.count == @limit
:javascript
$(function(){
Pager.init(#{@limit});
});