gitlabhq/app/views/dashboard/_menu.html.haml

22 lines
1 KiB
Plaintext
Raw Normal View History

2011-12-12 08:38:37 +01:00
%h4.dash-tabs
= link_to "Activities", dashboard_path, :remote => true, :class => "button-small dash-button #{"active" if current_page?(dashboard_path) || current_page?(root_path) }", :id => "activities_slide"
= link_to "Issues", dashboard_issues_path, :remote => true, :class => "button-small dash-button #{"active" if current_page?(dashboard_issues_path)}", :id => "issues_slide"
= link_to "Merge Requests", dashboard_merge_requests_path, :remote => true, :class => "button-small dash-button #{"active" if current_page?(dashboard_merge_requests_path)}", :id => "merge_requests_slide"
2011-12-12 23:08:15 +01:00
%img{:src => "/assets/ajax-loader-facebook.gif", :class => "dashboard-loader"}
2011-12-12 08:38:37 +01:00
:javascript
$(function(){
$(".dash-button").live("click", function() {
$(".dash-button").removeClass("active");
$(this).addClass("active");
2011-12-12 23:08:15 +01:00
});
$(".dash-button").live("ajax:before", function() {
$(".dashboard-loader").show();
});
$(".dash-button").live("ajax:complete", function() {
$(".dashboard-loader").hide();
});
2011-12-12 08:38:37 +01:00
});