Fix scroll problems and disable authorized_only filter

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
Dmitriy Zaporozhets 2014-12-24 12:56:03 +02:00
parent 7b792af872
commit 97d7c06f78
No known key found for this signature in database
GPG key ID: 161B5D6A44D3D88A
4 changed files with 15 additions and 10 deletions

View file

@ -4,10 +4,6 @@ html {
&.touch .tooltip { display: none !important; }
}
body {
padding-bottom: 20px;
}
.container {
padding-top: 0;
z-index: 5;

View file

@ -3,7 +3,6 @@
}
.sidebar-wrapper {
z-index: 1000;
overflow-y: auto;
background: #F5F5F5;
}

View file

@ -252,7 +252,11 @@ class ApplicationController < ActionController::Base
elsif @group
@filter_params[:group_id] = @group.id
else
@filter_params[:authorized_only] = true
# TODO: this filter ignore issues/mr created in public or
# internal repos where you are not a member. Enable this filter
# or improve current implementation to filter only issues you
# created or assigned or mentioned
#@filter_params[:authorized_only] = true
unless @filter_params[:assignee_id]
@filter_params[:assignee_id] = current_user.id

View file

@ -39,14 +39,20 @@ class Spinach::Features::DashboardMergeRequests < Spinach::FeatureSteps
end
step 'I click "Authored by me" link' do
within ".scope-filter" do
click_link 'Created by me'
within ".assignee-filter" do
click_link "Any"
end
within ".author-filter" do
click_link current_user.name
end
end
step 'I click "All" link' do
within ".scope-filter" do
click_link "Everyone's"
within ".author-filter" do
click_link "Any"
end
within ".assignee-filter" do
click_link "Any"
end
end