style/js fixes
This commit is contained in:
@@ -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");
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
@@ -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) %>
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user