... | ... |
@@ -35,6 +35,15 @@ |
35 | 35 |
box-sizing: border-box; |
36 | 36 |
} |
37 | 37 |
|
38 |
+.compare-nothing { |
|
39 |
+ border:1px solid #d8d8d8; |
|
40 |
+ border-radius: 3px; |
|
41 |
+ background:#fafafa; |
|
42 |
+ padding:25px 0 30px 0; |
|
43 |
+ text-align:center; |
|
44 |
+ line-height:150%; |
|
45 |
+} |
|
46 |
+ |
|
38 | 47 |
.pulls-button-container { |
39 | 48 |
text-align:right; |
40 | 49 |
margin-bottom:10px; |
... | ... |
@@ -278,7 +278,7 @@ |
278 | 278 |
<a href="<%= url_for("/$user/$project/settings#form-default-branch") %>" type="submit" class="btn btn-small">Change default branch</a> |
279 | 279 |
% } |
280 | 280 |
% } else { |
281 |
- <a class="btn btn-small" href="<%= url_for("/$user/$project/compare/$bname") %>"> |
|
281 |
+ <a class="btn btn-small" href="<%= url_for("/$user/$project/compare/$bname")->query(expand => 1) %>"> |
|
282 | 282 |
% if ($api->logined) { |
283 | 283 |
New pull request |
284 | 284 |
% } else { |
... | ... |
@@ -230,8 +230,13 @@ |
230 | 230 |
|
231 | 231 |
%= include '/include/commit_body'; |
232 | 232 |
% } else { |
233 |
- <div> |
|
234 |
- <b>There isn't anything to compare.</b> |
|
233 |
+ <div class="compare-nothing"> |
|
234 |
+ <div> |
|
235 |
+ <b><big>There isn't anything to compare.</big></b> |
|
236 |
+ </div> |
|
237 |
+ <div> |
|
238 |
+ <b><%= $from_rev %></b> is up to date with all commits from <b><%= $rev %></b>. Try <a href="<%= url_for("/$user/$project/compare/$rev...$from_rev") %>">switching the base</a> for your comparison. |
|
239 |
+ </div> |
|
235 | 240 |
</div> |
236 | 241 |
% } |
237 | 242 |
</div> |