rosa-build/app/views/projects/pull_requests/_nav_tabs.html.haml

14 lines
487 B
Plaintext
Raw Normal View History

2012-07-18 19:02:27 +01:00
%ul.nav.nav-tabs#pull_tabs
2012-07-16 17:27:41 +01:00
%li
%a{"data-toggle" => "tab", :href => "#discussion"}=t 'pull_requests.tabs.discussion'
-if @stats
%li
%a{"data-toggle" => "tab", :href => "#diff"}="#{t'pull_requests.tabs.diff'} (#{@stats.count})"
-if @commits
%li
2012-07-18 19:02:27 +01:00
%a{"data-toggle" => "tab", :href => "#commits"}="#{t'pull_requests.tabs.commits'} (#{@commits.count})"
:javascript
$(document).ready(function() {
$('#pull_tabs a[href="##{params[:tab]}"]').tab('show');
});