Skip to content

Commit

Permalink
Added css and comment textile
Browse files Browse the repository at this point in the history
  • Loading branch information
ndbroadbent committed Feb 23, 2011
1 parent 62f24bf commit f965eda
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app/views/comments/_comment.html.haml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
- truncated = simple_format h(truncate(comment.comment.gsub("\n", " "), :length => 125))
- formatted = simple_format h(comment.comment)
- formatted = defined?(RedCloth) ? RedCloth.new(h(comment.comment)).to_html.html_safe : simple_format(h(comment.comment))
- collapsable = formatted.size > 150

%li[comment]{ highlightable(dom_id(comment, :tools), :off => "#f2f2f2") }
Expand All @@ -18,7 +18,8 @@
- if collapsable
%dt{ hidden_if(comment.expanded?), :id => dom_id(comment, :truncated) }
= truncated
%dt{ hidden_if(comment.collapsed?), :id => dom_id(comment, :formatted) }
%div{ hidden_if(comment.collapsed?), :id => dom_id(comment, :formatted), :style => "clear: both;" }
= auto_link(formatted)
- else
%dt= auto_link(formatted)
%div{:style => "clear: both;"}= auto_link(formatted)

23 changes: 23 additions & 0 deletions public/stylesheets/screen.css
Original file line number Diff line number Diff line change
Expand Up @@ -799,3 +799,26 @@ small.subtitle_inline_info {
text-align: right; }
.mail .body table td {
text-align: left; }

.customfield_check_ok {
border: 5px lightgreen solid;
background: whitesmoke;
margin: 0px;
padding: 0px 10px 0px 10px;
position: relative; }

.customfield_check_fail {
border: 5px red solid;
background: lightred;
margin: 0px;
padding: 0px 10px 0px 10px;
position: relative; }

span.handle {
cursor: move; }
span.handle img {
vertical-align: middle;
margin-right: 5px; }

list li tt {
vertical-align: middle; }

0 comments on commit f965eda

Please sign in to comment.