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

40 lines
1,018 B
Plaintext
Raw Normal View History

2012-01-27 23:51:02 +01:00
- unless @projects.empty?
2012-03-02 23:09:17 +01:00
.row
2012-03-04 02:00:19 +01:00
.span4
%div.leftbar.ui-box
%h5
Projects
- if current_user.can_create_project?
%span.right
= link_to new_project_path, :class => "btn very_small info" do
New Project
.content_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 => 22)
.span12.right
.show_holder.ui-box.padded
.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});
});