Permalink
Browse files

make entire row clickable

  • Loading branch information...
1 parent ae24d3e commit 2dcb5215144cfbb164c59356ccd85ad7788fef40 @fd fd committed Apr 29, 2010
Showing with 14 additions and 14 deletions.
  1. +8 −8 app/views/errors/show.html.haml
  2. +4 −4 app/views/projects/index.html.haml
  3. +2 −2 public/javascripts/application.js
View
16 app/views/errors/show.html.haml
@@ -3,27 +3,27 @@
- block2 error.name do
- occurence = error.last_occurence
-
+
%p= error.description
-
+
= render_reporter error.last_occurence
-
+
- if error.backtrace?
%h3 Backtrace
%pre=h error.backtrace.split("\n")[0..5].join("\n")
%br
-
+
%br
%h3 Occurences
%br
= will_paginate occurences
-
- %table.table
+
+ %table.table.occurrences
=render occurences
-
+
= will_paginate occurences
%br
-
+
- actions do |link|
- if error.closed
- link.to ('Open error again', error_path(error, :error => {:closed => '0'}), :method => :put, :class => "button")
View
8 app/views/projects/index.html.haml
@@ -1,10 +1,10 @@
-%table
+%table.projects
%tr
- %th.select date
+ %th.select date
%th project
%th.count Count
= render projects
-
+
%div.block.inner
%h2 Get started
%p
@@ -21,7 +21,7 @@
%em More libraries coming soon
%p
If you have an idea for a library or you made one yourself,
- send us an email at
+ send us an email at
= mail_to('failtale@mrhenry.be')
- actions do |link|
View
4 public/javascripts/application.js
@@ -120,10 +120,10 @@ $(document).ready(function() {
*/
$('.clear-field').clearField();
- $('table td.project a, table.errors a').each(function(){
+ $('table.projects a, table.errors a, table.occurrences a').each(function(){
var a = $(this),
row = a.parent('td');
- $(row).click(function(){ a.click(); });
+ $(row).click(function(){ window.location.href = a.attr('href'); });
})
}); // End DOM ready

0 comments on commit 2dcb521

Please sign in to comment.