gitlabhq/app/views/projects/index.html.haml

40 lines
968 B
Plaintext
Raw Normal View History

2012-01-28 15:47:55 +01:00
%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
2012-01-27 23:51:02 +01:00
%hr
- unless @projects.empty?
2012-03-02 23:09:17 +01:00
.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
2012-01-27 23:51:02 +01:00
- else
%h2 Nothing here
2012-03-02 23:09:17 +01:00
: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});
});