Skip to content

Commit

Permalink
Merge d1fdd85 into 3b0e13d
Browse files Browse the repository at this point in the history
  • Loading branch information
scouttyg committed Apr 17, 2014
2 parents 3b0e13d + d1fdd85 commit 0428bb6
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 2 deletions.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ group :assets do
gem 'eco'
gem 'uglifier'
gem 'bootstrap-sass'
gem 'sass', '3.2.13'
gem 'gemoji'
end

Expand Down
3 changes: 2 additions & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ GEM
rspec-core (~> 2.14.0)
rspec-expectations (~> 2.14.0)
rspec-mocks (~> 2.14.0)
sass (3.3.4)
sass (3.2.13)
sass-rails (3.2.6)
railties (~> 3.2.0)
sass (>= 3.1.10)
Expand Down Expand Up @@ -336,6 +336,7 @@ DEPENDENCIES
rails (= 3.2.16)
remotipart
rspec-rails
sass (= 3.2.13)
sass-rails
shoulda-matchers
simplecov
Expand Down
1 change: 1 addition & 0 deletions app/assets/javascripts/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@
//= require lib/jquery.atwho
//= require lib/jquery.caret
//= require lib/jquery.inputHistory
//= require bootstrap
2 changes: 1 addition & 1 deletion app/assets/stylesheets/_variables.sass
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ $header-bg-1: #566569
$header-bg-2: #3f494b

$sidebar-bg: $neutral-color
$sidebar-width: 230px
$sidebar-width: 240px

$medium: 768px
$large: 1024px
Expand Down
11 changes: 11 additions & 0 deletions app/views/layouts/_messages.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<% unless controller.controller_name == 'channels' || controller.controller_name == 'main' %>
<!-- Rails flash messages styled for Bootstrap -->
<% flash.each do |name, msg| %>
<% if msg.is_a?(String) %>
<div class="alert alert-<%=name == :notice ? "success" : "danger"%> fade in" >
<button class="close" data-dismiss="alert">&times;</button>
<%= msg %>
</div>
<% end %>
<% end %>
<% end %>
1 change: 1 addition & 0 deletions app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
<% end %>
<article class="main-area">
<%= render "layouts/header" %>
<%= render "layouts/messages" %>
<%= yield %>
</article>
<%= yield :end %>
Expand Down

0 comments on commit 0428bb6

Please sign in to comment.