style/js fixes
This commit is contained in:
@@ -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");
|
||||
|
||||
@@ -162,15 +162,7 @@ div#c-posts {
|
||||
}
|
||||
}
|
||||
|
||||
section#notes {
|
||||
margin-top: 1em;
|
||||
|
||||
article {
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
}
|
||||
|
||||
section#edit {
|
||||
section {
|
||||
margin-top: 1em;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
<div id="c-notes">
|
||||
<div id="a-index">
|
||||
<h1>Notes</h1>
|
||||
|
||||
<table width="100%" class="striped">
|
||||
<thead>
|
||||
<tr>
|
||||
|
||||
@@ -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) %>
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user