Skip to content
Browse files

Improved stacktrace file filter

  • Loading branch information...
1 parent 270688c commit 334e3999ad8682ba5065b63860279f1b4e57a26b @weavejester weavejester committed Dec 28, 2012
Showing with 7 additions and 6 deletions.
  1. +3 −2 ring-devel/resources/ring/css/stacktrace.css
  2. +4 −4 ring-devel/src/ring/middleware/stacktrace.clj
View
5 ring-devel/resources/ring/css/stacktrace.css
@@ -63,17 +63,18 @@ h1 {
.trace .views {
width: 100%;
background: #bcbcbc;
+ padding: 0.5em 0;
}
.views .label, .views ul, .views li {
display: inline-block;
}
.trace .views .label {
- padding: 0.4em 1em;
+ padding: 0 1em;
}
.trace .views li {
- padding: 0.4em 2em;
+ padding: 0 2em;
cursor: pointer;
}
View
8 ring-devel/src/ring/middleware/stacktrace.clj
@@ -43,11 +43,11 @@
[:div.message (:message ex)]
[:div.trace
[:div.views
- [:div.label "Source file type:"]
+ [:div.label "Show:"]
[:ul
- [:li {:onclick "$('.java').show();$('.clojure').show();"} "All"]
- [:li {:onclick "$('.java').hide();$('.clojure').show();"} "Clojure"]
- [:li {:onclick "$('.java').show();$('.clojure').hide();"} "Java"]]]
+ [:li {:onclick "$('.java').show();$('.clojure').show();"} "All files"]
+ [:li {:onclick "$('.java').hide();$('.clojure').show();"} "Clojure files"]
+ [:li {:onclick "$('.java').show();$('.clojure').hide();"} "Java files"]]]
[:table
[:tbody (map elem-partial (:trace-elems ex))]]]]])))

0 comments on commit 334e399

Please sign in to comment.
Something went wrong with that request. Please try again.