Skip to content

Commit

Permalink
Add bootstrap, and applied layout to the page
Browse files Browse the repository at this point in the history
  • Loading branch information
charliesalazar committed Feb 27, 2013
1 parent 5b56554 commit 89ed9e1
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -13,3 +13,5 @@
# Ignore all logfiles and tempfiles.
/log/*.log
/tmp

.DS_store
4 changes: 4 additions & 0 deletions app/assets/javascripts/statuses.js.coffee
@@ -1,3 +1,7 @@
# Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/

$ ->
$('.status').hover (event) ->
$(this).toggleClass("hover")
12 changes: 12 additions & 0 deletions app/assets/stylesheets/statuses.css.scss
Expand Up @@ -9,4 +9,16 @@

.status p {
margin: 4px 0;
}

.status.hover {
background: #FAFAFA;
}

.status .admin {
display: none;
}

.status.hover .admin {
display: inline;
}
4 changes: 3 additions & 1 deletion app/views/statuses/index.html.erb
@@ -1,6 +1,8 @@
<div class="page-header">
<h1>All of the Statuses</h1>
</div>
</div>

<%= link_to "Post a New Status", new_status_path, class:"btn btn-success" %>
<% @statuses.each do |status| %>
<div class="status">
Expand Down

0 comments on commit 89ed9e1

Please sign in to comment.