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) {
if (e.target.hash === "#comments") {
$("#comments").fadeIn("fast");
$("#notes").hide();
$("#edit").hide();
} else if (e.target.hash === "#notes") {
$("#notes").fadeIn("fast");
$("#comments").hide();
$("#edit").hide();
} else {
$("#edit").fadeIn("fast");
$("#comments").hide();
$("#notes").hide();
}
$("#post-sections li").removeClass("active");

View File

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

View File

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

View File

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

View File

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