style/js fixes

This commit is contained in:
albert
2011-11-03 16:35:16 -04:00
parent d09e80d2f4
commit 5f2f24814d
5 changed files with 5 additions and 20 deletions

View File

@@ -141,16 +141,10 @@
$("#post-sections li a").click(function(e) { $("#post-sections li a").click(function(e) {
if (e.target.hash === "#comments") { if (e.target.hash === "#comments") {
$("#comments").fadeIn("fast"); $("#comments").fadeIn("fast");
$("#notes").hide();
$("#edit").hide();
} else if (e.target.hash === "#notes") {
$("#notes").fadeIn("fast");
$("#comments").hide();
$("#edit").hide(); $("#edit").hide();
} else { } else {
$("#edit").fadeIn("fast"); $("#edit").fadeIn("fast");
$("#comments").hide(); $("#comments").hide();
$("#notes").hide();
} }
$("#post-sections li").removeClass("active"); $("#post-sections li").removeClass("active");

View File

@@ -162,15 +162,7 @@ div#c-posts {
} }
} }
section#notes { section {
margin-top: 1em;
article {
margin-bottom: 1em;
}
}
section#edit {
margin-top: 1em; margin-top: 1em;
} }

View File

@@ -1,5 +1,7 @@
<div id="c-notes"> <div id="c-notes">
<div id="a-index"> <div id="a-index">
<h1>Notes</h1>
<table width="100%" class="striped"> <table width="100%" class="striped">
<thead> <thead>
<tr> <tr>

View File

@@ -1,5 +1,7 @@
<div id="c-notes"> <div id="c-notes">
<div id="a-index"> <div id="a-index">
<h1>Notes</h1>
<%= @post_set.presenter.post_previews_html(self) %> <%= @post_set.presenter.post_previews_html(self) %>
<%= numbered_paginator(@posts, false) %> <%= numbered_paginator(@posts, false) %>

View File

@@ -46,7 +46,6 @@
<menu id="post-sections"> <menu id="post-sections">
<li><a href="#comments">Comments</a></li> <li><a href="#comments">Comments</a></li>
<li><a href="#edit" id="post-edit-link">Edit</a></li> <li><a href="#edit" id="post-edit-link">Edit</a></li>
<li><a href="#notes">Notes</a></li>
</menu> </menu>
<section id="comments"> <section id="comments">
@@ -54,10 +53,6 @@
</section> </section>
<section id="notes"> <section id="notes">
<% if @post.notes.active.empty? %>
<p>There are no notes.</p>
<% end %>
<%= render :partial => "notes/note", :collection => @post.notes.active %> <%= render :partial => "notes/note", :collection => @post.notes.active %>
</section> </section>