Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

errorModule JavaScript, partials, oh my! #73

Open
wants to merge 35 commits into
base: master
Choose a base branch
from
Open

errorModule JavaScript, partials, oh my! #73

wants to merge 35 commits into from

Conversation

laurennicoleroth
Copy link

Tested show/hide/change in console and jasmine. errorModule object is really simple. The div starts hidden, then can be shown/hidden/changed above yield, but below fixed nav at top of page.

(BTW, The instructions to use _ in the naming of the partial did not work. I created a partials directory and put error.erb in it instead so I could properly add the rendering in the layout file.)

@linkblaine @queerviolet

laurennicoleroth and others added 30 commits March 16, 2015 18:18
	new file:   config.ru
	new file:   environment.rb
	modified:   app/controllers/index.rb
	new file:   app/views/sealions/edit.erb
	new file:   app/views/sealions/index.erb
	new file:   app/views/sealions/new.erb
	new file:   app/views/sealions/show.erb
	modified:   app/controllers/sealions.rb
	modified:   app/views/sealions/show.erb
	modified:   database.rb
	modified:   environment.rb
	modified:   Gemfile
	new file:   app/views/layout.erb
	new file:   public/javascripts/main.js
	new file:   spec/javascripts/javascript_spec.js
	new file:   spec/javascripts/support/jasmine.yml
	modified:   Rakefile
	modified:   app/views/layout.erb
	modified:   Gemfile.lock
	modified:   Rakefile
	modified:   app/controllers/index.rb
	modified:   app/views/layout.erb
	new file:   public/javascripts/calculator.js
	modified:   Gemfile.lock
	modified:   Rakefile
	modified:   app/controllers/index.rb
	modified:   app/views/layout.erb
	modified:   public/javascripts/calculator.js
	modified:   app/controllers/index.rb
	deleted:    app/views/calculator.erb
	modified:   public/javascripts/calculator.js
	modified:   spec/javascripts/javascript_spec.js
	modified:   spec/javascripts/javascript_spec.js
Lauren Nicole Roth added 5 commits March 24, 2015 19:40
	modified:   app/controllers/index.rb
	new file:   app/views/_error.erb
	modified:   app/views/layout.erb
	modified:   app/views/sealions/index.erb
	new file:   public/css/portfolio-item.css
	modified:   public/index.html
	modified:   public/javascripts/calculator.js
	modified:   app/views/layout.erb
	new file:   app/views/partials/error.erb
	deleted:    public/css/calculator.css
	deleted:    public/css/round-about.css
	deleted:    app/views/_error.erb
	modified:   app/controllers/index.rb
	modified:   app/views/index.erb
	modified:   app/views/layout.erb
	modified:   app/views/partials/error.erb
	new file:   public/css/custom.css
	modified:   public/javascripts/calculator.js
	modified:   public/javascripts/main.js
@@ -0,0 +1,7 @@
.alert-danger {
color: white !important;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you find that you need !important, something has gone wrong. You probably need to go and relax the specificity of your CSS elsewhere.

If you make the text color !important, you should probably make the background-color !important, too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants