BigW Consortium Gitlab

Commit eadad855 by Dmitriy Zaporozhets

Merge branch 'improve/filter_icons' of dev.gitlabhq.com:gitlab/gitlabhq

parents 50b17253 abc2bdc3
...@@ -111,7 +111,7 @@ group :assets do ...@@ -111,7 +111,7 @@ group :assets do
gem "modernizr", "2.6.2" gem "modernizr", "2.6.2"
gem "raphael-rails", git: "https://github.com/gitlabhq/raphael-rails.git" gem "raphael-rails", git: "https://github.com/gitlabhq/raphael-rails.git"
gem 'bootstrap-sass', "2.2.1.1" gem 'bootstrap-sass', "2.2.1.1"
gem "font-awesome-sass-rails", "~> 2.0.0" gem "font-awesome-sass-rails", "~> 3.0.0"
gem "gemoji", "~> 1.2.1", require: 'emoji/railtie' gem "gemoji", "~> 1.2.1", require: 'emoji/railtie'
end end
......
...@@ -174,7 +174,7 @@ GEM ...@@ -174,7 +174,7 @@ GEM
eventmachine (>= 0.12.0) eventmachine (>= 0.12.0)
ffaker (1.15.0) ffaker (1.15.0)
ffi (1.1.5) ffi (1.1.5)
font-awesome-sass-rails (2.0.0.0) font-awesome-sass-rails (3.0.0.1)
railties (>= 3.1.1) railties (>= 3.1.1)
sass-rails (>= 3.1.1) sass-rails (>= 3.1.1)
foreman (0.60.2) foreman (0.60.2)
...@@ -381,7 +381,7 @@ GEM ...@@ -381,7 +381,7 @@ GEM
rspec-mocks (~> 2.12.0) rspec-mocks (~> 2.12.0)
rubyntlm (0.1.1) rubyntlm (0.1.1)
rubyzip (0.9.9) rubyzip (0.9.9)
sass (3.2.3) sass (3.2.5)
sass-rails (3.2.5) sass-rails (3.2.5)
railties (~> 3.2.0) railties (~> 3.2.0)
sass (>= 3.1.10) sass (>= 3.1.10)
...@@ -488,7 +488,7 @@ DEPENDENCIES ...@@ -488,7 +488,7 @@ DEPENDENCIES
email_spec email_spec
factory_girl_rails factory_girl_rails
ffaker ffaker
font-awesome-sass-rails (~> 2.0.0) font-awesome-sass-rails (~> 3.0.0)
foreman foreman
gemoji (~> 1.2.1) gemoji (~> 1.2.1)
git git
......
...@@ -132,21 +132,25 @@ ...@@ -132,21 +132,25 @@
.event_filter { .event_filter {
position: absolute; position: absolute;
width: 40px; width: 40px;
margin-left: -50px; margin-left: -55px;
.filter_icon { .filter_icon {
float: left; a {
border-left: 3px solid #4bc; text-align:center;
padding: 7px; border-left: 3px solid #29B;
background: #f9f9f9; background: #f9f9f9;
margin-bottom: 10px; margin-bottom: 10px;
img { float: left;
width: 20px; padding: 9px 7px;
font-size: 18px;
width: 26px;
} }
&.inactive { &.inactive {
border-left: 3px solid #EEE; a {
opacity: 0.5; color: #DDD;
border-left: 3px solid #EEE;
}
} }
} }
} }
...@@ -30,8 +30,17 @@ module EventsHelper ...@@ -30,8 +30,17 @@ module EventsHelper
content_tag :div, class: "filter_icon #{inactive}" do content_tag :div, class: "filter_icon #{inactive}" do
link_to dashboard_path, class: 'has_tooltip event_filter_link', id: "#{key}_event_filter", 'data-original-title' => tooltip do link_to dashboard_path, class: 'has_tooltip event_filter_link', id: "#{key}_event_filter", 'data-original-title' => tooltip do
image_tag "event_filter_#{key}.png" content_tag :i, nil, class: icon_for_event[key]
end end
end end
end end
def icon_for_event
{
EventFilter.push => "icon-upload-alt",
EventFilter.merged => "icon-check",
EventFilter.comments => "icon-comments",
EventFilter.team => "icon-user",
}
end
end end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment