|
48 | 48 | }
|
49 | 49 |
|
50 | 50 | li.name {
|
51 |
| - -moz-border-radius-bottomleft:4px; |
52 |
| - -moz-border-radius-topleft:4px; |
| 51 | + -moz-border-radius-bottomleft:7px; |
| 52 | + -webkit-border-bottom-left-radius:7px; |
| 53 | + -moz-border-radius-topleft:7px; |
| 54 | + -webkit-border-top-left-radius:7px; |
| 55 | + border-bottom-left-radius:7px; |
| 56 | + border-top-left-radius:7px; |
53 | 57 | position: relative;
|
54 |
| - left: -10px; |
| 58 | + left: 30px; |
55 | 59 | cursor: pointer;
|
56 |
| - padding-left: 40px; |
57 |
| - width: 259px; |
| 60 | + padding-left: 20px; |
| 61 | + padding-top: 5px; |
| 62 | + width: 229px; |
58 | 63 | float: left;
|
59 |
| - padding-bottom: 5px; |
| 64 | + padding-bottom: 10px; |
60 | 65 | }
|
61 | 66 |
|
62 | 67 | li.name:hover {
|
@@ -153,15 +158,21 @@ a.sentence.down.has_note .heading {
|
153 | 158 | $("li.name[review_id=" + id + "]").addClass("selected");
|
154 | 159 | $("#comments-header").show();
|
155 | 160 | if ($("#review-" + id).find("#general-comments").html() != "") {
|
156 |
| - $("#the-general-comments").html($("#review-" + id).find("#general-comments").html()) |
| 161 | + $("#the-general-comments").html("» " + $("#review-" + id).find("#general-comments").html()) |
157 | 162 | } else {
|
158 | 163 | $("#the-general-comments").html("");
|
159 | 164 | $("#comments-header").hide();
|
160 | 165 | }
|
161 | 166 | //$("#version").html("reviewed by <span style='color: #d54e21;'>" + $("#review-" + id).attr("signature") + "</span>")
|
162 | 167 | };
|
163 | 168 | $(document).ready(function() {
|
164 |
| - //select_review(0); |
| 169 | + <% if (rev_id = params[:selected_review]) %> |
| 170 | + select_review(<%= rev_id %>); |
| 171 | + <% else %> |
| 172 | + if ($(".name").length > 0) { |
| 173 | + select_review(0); |
| 174 | + } |
| 175 | + <% end %> |
165 | 176 | $(".name").click(function(ev) {
|
166 | 177 | select_review($(this).attr("review_id"));
|
167 | 178 | });
|
@@ -202,20 +213,21 @@ a.sentence.down.has_note .heading {
|
202 | 213 | <h2 style="font-weight: normal; color: white">View feedback from:</h2>
|
203 | 214 | <ul style="margin-top: 10px;">
|
204 | 215 | <% @reviews.collect {|r| [r.signature, r.updated_at]}.each_with_index do |rev, i| %>
|
205 |
| - <li class="name" review_id="<%= i %>"><span style="font-size: 21px; line-height: 1.4em;"><%= rev[0] %></span> <div style="font-size: 11px; line-height: 1em">» <%= rev[1].strftime('%a %b %d, %I:%M:%S%p').downcase %></div></li> |
| 216 | + <li class="name" review_id="<%= i %>"><span style="font-size: 18px; line-height: 1.4em;"><%= (!rev[0].nil? ? rev[0] : "[anonymous]") %></span> <div style="font-size: 11px; line-height: 1em">» <%= rev[1].strftime('%a %b %d, %I:%M:%S%p').downcase %></div></li> |
206 | 217 | <% end %>
|
207 | 218 | </ul>
|
208 | 219 | </div>
|
209 | 220 | <textarea id="note" class="note" affect="neutral" style="width: 250px; position: absolute; display: none;"></textarea>
|
210 | 221 | <div id="draft">
|
211 |
| - <h1 style="font-family: Arial; font-size: 22px; margin-top: 20px;"><%= @drft.title %></h1> |
| 222 | + <h1 style="font-family: Arial; font-size: 22px; margin-top: 20px; line-height: 1.2em;"><%= @drft.title %></h1> |
212 | 223 | <div id="draft_content">
|
213 | 224 | <%= HTMLEntities.new.decode(@drft.content) %>
|
214 | 225 | </div>
|
215 |
| -</div> |
216 |
| -<div class="instructions"> |
217 |
| - <h2 style="margin: 2px 0px 5px 0px; display: none;" id="comments-header">General Comments</h3> |
218 |
| - <span id="the-general-comments"></span> |
| 226 | + |
| 227 | + <div> |
| 228 | + <h3 style="margin: 50px 0px 5px 0px; font-family: Helvetica; display: none;" id="comments-header">General Comments</h3> |
| 229 | + <span id="the-general-comments"></span> |
| 230 | + </div> |
219 | 231 | </div>
|
220 | 232 |
|
221 | 233 | <% @reviews.each_with_index do |rev, i| %>
|
|
0 commit comments