Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
139 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
log/*.log | ||
tmp/**/* | ||
*.pid | ||
doc/api | ||
doc/app | ||
db/*.sqlite3 | ||
.DS_Store | ||
.DS_Store | ||
config/*.sphinx.conf | ||
db/sphinx | ||
*.esproj |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,45 @@ | ||
<% if @notes.size > 0 %> | ||
<div class="note_list"> | ||
<% current_date = nil %> | ||
<% @notes.each do |note| %> | ||
<% if current_date != note.created_at.strftime("%B %d, %Y") %> | ||
<% current_date = note.created_at.strftime("%B %d, %Y") %> | ||
<h2 class="date"><%= current_date %></h2> | ||
<% end %> | ||
<div class="note"> | ||
<h3><%= link_to h(note.title), note %></h3> | ||
<% if note.tag_list.size > 0 %> | ||
<div class="tags"> | ||
<% note.tag_list.each do |tag| %> | ||
<span><%= tag %></span> | ||
<style> | ||
.column.first { | ||
width: 75%; | ||
} | ||
|
||
.column.last { | ||
width: 25%; | ||
} | ||
</style> | ||
|
||
<div class="two_columns"> | ||
<section class="column first"> | ||
<% if @notes.size > 0 %> | ||
<div class="note_list"> | ||
<% current_date = nil %> | ||
<% @notes.each do |note| %> | ||
<% if current_date != note.created_at.strftime("%B %d, %Y") %> | ||
<% current_date = note.created_at.strftime("%B %d, %Y") %> | ||
<h2 class="date"><%= current_date %></h2> | ||
<% end %> | ||
<div class="note"> | ||
<h3><%= link_to h(note.title), note %></h3> | ||
<% if false and note.tag_list.size > 0 %> | ||
<div class="tags"> | ||
<% note.tag_list.each do |tag| %> | ||
<span><%= tag %></span> | ||
<% end %> | ||
</div> | ||
<% end %> | ||
<div class="summary"> | ||
<%= smash(note.body_html) %><span class="ellipsis">…</span> | ||
</div> | ||
</div> | ||
<% end %> | ||
<div class="summary"> | ||
<%= smash(note.body_html) %><span class="ellipsis">…</span> | ||
</div> | ||
</div> | ||
<% end %> | ||
</div> | ||
<% else %> | ||
<p>You don't have any notes yet. <%= link_to "Create a note", new_note_path %> to get started!</p> | ||
<% end %> | ||
<% else %> | ||
<p>You don't have any notes yet. <%= link_to "Create a note", new_note_path %> to get started!</p> | ||
<% end %> | ||
</section> | ||
<section class="column last"> | ||
<form action="/notes/search/"> | ||
<input type="text" name="query" value="<%= @query %>" /> | ||
</form> | ||
</section> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<style> | ||
.column.first { | ||
width: 75%; | ||
} | ||
|
||
.column.last { | ||
width: 25%; | ||
} | ||
</style> | ||
|
||
<div class="two_columns"> | ||
<section class="column first"> | ||
<% if @notes.size > 0 %> | ||
<div class="note_list"> | ||
<% @notes.each do |note| %> | ||
<div class="note"> | ||
<h3><%= link_to note.excerpts.title, note %></h3> | ||
<div class="excerpt"> | ||
<%= note.excerpts.body %> | ||
</div> | ||
</div> | ||
<% end %> | ||
</div> | ||
<% else %> | ||
<p>No results.</p> | ||
<% end %> | ||
</section> | ||
<section class="column last"> | ||
<form action="/notes/search/"> | ||
<input type="text" name="query" value="<%= @query %>" /> | ||
</form> | ||
</section> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters