Merge pull request #1415 from ajaxorg/highlighting/bugfix

Highlighting bugfix
This commit is contained in:
Lennart Kats 2013-05-17 08:39:14 -07:00
commit 7ce0ee557b
16 changed files with 246 additions and 33 deletions

View file

@ -85,6 +85,7 @@ var docs = {
"docs/haml.haml": "Haml",
"docs/Haxe.hx": "haXe",
"docs/html.html": "HTML",
"docs/html_ruby.erb": "HTML (Ruby)",
"docs/jade.jade": "Jade",
"docs/java.java": "Java",
"docs/jsp.jsp": "JSP",

View file

@ -1,6 +1,6 @@
.text-layer {
font-family: Monaco, "Courier New", monospace;
font-size: 12px;
font-size: 12pX;
cursor: text;
}

View file

@ -0,0 +1,25 @@
<h1>Listing Books</h1>
<table>
<tr>
<th>Title</th>
<th>Summary</th>
<th></th>
<th></th>
<th></th>
</tr>
<% @books.each do |book| %>
<tr>
<td><%= book.title %></td>
<td><%= book.content %></td>
<td><%= link_to 'Show', book %></td>
<td><%= link_to 'Edit', edit_book_path(book) %></td>
<td><%= link_to 'Remove', book, :confirm => 'Are you sure?', :method => :delete %></td>
</tr>
<% end %>
</table>
<br />
<%= link_to 'New book', new_book_path %>