Commit 58cd99a6f9c0d63778d7c7bacfef808caa3b1ebd
- Date: Thu Apr 17 17:13:42 +0000 2008
- Committer: Johan Sørensen (johan@johansorensen.com)
- Author: Johan Sørensen (johan@johansorensen.com)
- Commit SHA1: 58cd99a6f9c0d63778d7c7bacfef808caa3b1ebd
- Tree SHA1: 33b7a6b42472bc3f40c26949588987521b33867b
Don't break tree browser table when there's no last_commit
Commit diff
| |   |
| 1 | 1 | (in no particular order) |
| 2 | 2 | |
| 3 | * tree browser: deal better with funny characters: http://gitorious.org/projects/avara/repos/mainline/trees/master |
| 3 | 4 | * if you comment on a specific commit, you should get redirected back there |
| 4 | 5 | * graphs should show username (if we have it) for avoiding confusion and for consistency |
| 5 | 6 | ** Repository#commit_graph_data_by_author should just use git-shortlog summary instead of jumping through hoops about it |
| toggle raw diff |
--- a/TODO.txt
+++ b/TODO.txt
@@ -1,5 +1,6 @@
(in no particular order)
+* tree browser: deal better with funny characters: http://gitorious.org/projects/avara/repos/mainline/trees/master
* if you comment on a specific commit, you should get redirected back there
* graphs should show username (if we have it) for avoiding confusion and for consistency
** Repository#commit_graph_data_by_author should just use git-shortlog summary instead of jumping through hoops about it |
| |   |
| 19 | 19 | <td class="meta commit_message"> |
| 20 | 20 | <%= link_to truncate(h(last_commit.message), 75, "…"), commit_path(last_commit.id) -%> |
| 21 | 21 | </td> |
| 22 | <% else -%> |
| 23 | <td class="meta"></td> |
| 24 | <td class="meta commit_message"></td> |
| 22 | 25 | <% end -%> |
| 23 | 26 | </tr> |
| 24 | 27 | <% end -%> |
| toggle raw diff |
--- a/app/views/trees/show.html.erb
+++ b/app/views/trees/show.html.erb
@@ -19,6 +19,9 @@
<td class="meta commit_message">
<%= link_to truncate(h(last_commit.message), 75, "…"), commit_path(last_commit.id) -%>
</td>
+ <% else -%>
+ <td class="meta"></td>
+ <td class="meta commit_message"></td>
<% end -%>
</tr>
<% end -%> |