dashboard tabs

This commit is contained in:
Dmitriy Zaporozhets 2011-12-12 09:38:37 +02:00
parent 822c0a5060
commit f34b1be281
8 changed files with 38 additions and 31 deletions

View file

@ -1,14 +1,3 @@
%div
= link_to dashboard_path, :remote => true, :class => "left" do
.box-arrow
←
%h2{:style => "width:86%; text-align:center"}
Issues
= link_to dashboard_merge_requests_path, :remote => true, :class => "right" do
.box-arrow
→
#feeds_content_holder
.project-box.project-updates.ui-box.ui-box-small.ui-box-big
.data

View file

@ -0,0 +1,13 @@
%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"
:javascript
$(function(){
$(".dash-button").live("click", function() {
$(".dash-button").removeClass("active");
$(this).addClass("active");
})
});

View file

@ -1,13 +1,3 @@
%div
= link_to dashboard_issues_path, :remote => true, :class => "left" do
.box-arrow
←
%h2{:style => "width:86%; text-align:center"}
Merge Requests
= link_to dashboard_path, :remote => true, :class => "right" do
.box-arrow
→
#feeds_content_holder
.project-box.project-updates.ui-box.ui-box-small.ui-box-big
.data

View file

@ -1,13 +1,3 @@
%div
= link_to dashboard_merge_requests_path, :remote => true, :class => "left", :id => "merge_requests_slide" do
.box-arrow
←
%h2{:style => "width:86%; text-align:center"}
Activities
= link_to dashboard_issues_path, :remote => true, :class => "right", :id => "issues_slide" do
.box-arrow
→
#feeds_content_holder
- @active_projects.first(3).each do |project|
.project-box.project-updates.ui-box.ui-box-small.ui-box-big

View file

@ -2,4 +2,5 @@
#dashboard-content.dashboard-content.content
= render "dashboard/sidebar"
= render "dashboard/menu"
#news-feed.news-feed= render "dashboard/projects_feed"

View file

@ -2,4 +2,5 @@
#dashboard-content.dashboard-content.content
= render "dashboard/sidebar"
= render "dashboard/menu"
#news-feed.news-feed= render "dashboard/issues_feed"

View file

@ -2,4 +2,5 @@
#dashboard-content.dashboard-content.content
= render "dashboard/sidebar"
= render "dashboard/menu"
#news-feed.news-feed= render "dashboard/merge_requests_feed"