| |   |
| 1 | | <table class="listing shortlog"> |
| 2 | | <% commits.each do |commit| -%> |
| 3 | | <tr class="<%= cycle "odd", "even" -%>"> |
| 4 | | <td><%=h commit.date.strftime("%Y-%m-%d %H:%M") -%></td> |
| 5 | | <td><%=h truncate(commit.author.name, 15) -%></td> |
| 6 | | <td> |
| 7 | | <%= link_to h(truncate(commit.message, 85)), commit_path(commit.sha) -%> |
| 8 | | <%= render_tag_box_if_match(commit.sha, @tags_per_sha) -%> |
| 9 | | </td> |
| 10 | | <td><%= link_to "commit", commit_path(commit.sha) -%></td> |
| 11 | | <td><%= link_to "tree", tree_path(commit.gtree.sha) -%></td> |
| 12 | | <!-- <td>archive (<%= commit.gtree.sha -%>)</td> --> |
| 13 | | </tr> |
| 1 | <ul> |
| 2 | <% @commits.each do |commit| -%> |
| 3 | <li class="commit_item"> |
| 4 | <a href=""><%= link_to truncate(h(commit.sha), 16), |
| 5 | project_repository_commit_path(@project, @repository, commit.sha) -%></a> |
| 6 | by <strong><%=h commit.author.name -%></strong> <%=h time_ago_in_words(commit.author.date) -%> ago |
| 7 | <div class="commit_message"><%= simple_format(h(commit.message)) -%></div> |
| 8 | </li> |
| 9 | <% end -%> |
| 10 | <li class="link_to_more"> |
| 11 | <span> |
| 12 | <% unless params[:page].blank? || [0,1].include?(params[:page].to_i) -%> |
| 13 | <%= link_to "← previous", log_path(:page => params[:page].to_i-1) -%> | |
| 14 | 14 | <% end -%> |
| 15 | | <tr> |
| 16 | | <td colspan="5" class="link_to_more"> |
| 17 | | <span> |
| 18 | | <% unless params[:page].blank? || [0,1].include?(params[:page].to_i) -%> |
| 19 | | <%= link_to "← previous", log_path(:page => params[:page].to_i-1) -%> | |
| 20 | | <% end -%> |
| 21 | | <%= link_to "next →", log_path(:page => (params[:page].blank? ? 2 : params[:page].to_i+1)) -%> |
| 22 | | </span> |
| 23 | | </td> |
| 24 | | </tr> |
| 25 | | </table> |
| 15 | <%= link_to "next →", log_path(:page => (params[:page].blank? ? 2 : params[:page].to_i+1)) -%> |
| 16 | </span> |
| 17 | </li> |
| 18 | </ul> |
| toggle raw diff |
--- a/app/views/browse/_log.html.erb
+++ b/app/views/browse/_log.html.erb
@@ -1,25 +1,18 @@
-<table class="listing shortlog">
- <% commits.each do |commit| -%>
- <tr class="<%= cycle "odd", "even" -%>">
- <td><%=h commit.date.strftime("%Y-%m-%d %H:%M") -%></td>
- <td><%=h truncate(commit.author.name, 15) -%></td>
- <td>
- <%= link_to h(truncate(commit.message, 85)), commit_path(commit.sha) -%>
- <%= render_tag_box_if_match(commit.sha, @tags_per_sha) -%>
- </td>
- <td><%= link_to "commit", commit_path(commit.sha) -%></td>
- <td><%= link_to "tree", tree_path(commit.gtree.sha) -%></td>
- <!-- <td>archive (<%= commit.gtree.sha -%>)</td> -->
- </tr>
+<ul>
+<% @commits.each do |commit| -%>
+<li class="commit_item">
+ <a href=""><%= link_to truncate(h(commit.sha), 16),
+ project_repository_commit_path(@project, @repository, commit.sha) -%></a>
+ by <strong><%=h commit.author.name -%></strong> <%=h time_ago_in_words(commit.author.date) -%> ago
+ <div class="commit_message"><%= simple_format(h(commit.message)) -%></div>
+</li>
+<% end -%>
+<li class="link_to_more">
+ <span>
+ <% unless params[:page].blank? || [0,1].include?(params[:page].to_i) -%>
+ <%= link_to "← previous", log_path(:page => params[:page].to_i-1) -%> |
<% end -%>
- <tr>
- <td colspan="5" class="link_to_more">
- <span>
- <% unless params[:page].blank? || [0,1].include?(params[:page].to_i) -%>
- <%= link_to "← previous", log_path(:page => params[:page].to_i-1) -%> |
- <% end -%>
- <%= link_to "next →", log_path(:page => (params[:page].blank? ? 2 : params[:page].to_i+1)) -%>
- </span>
- </td>
- </tr>
-</table>
\ No newline at end of file
+ <%= link_to "next →", log_path(:page => (params[:page].blank? ? 2 : params[:page].to_i+1)) -%>
+ </span>
+</li>
+</ul>
\ No newline at end of file |
| |   |
| 545 | 545 | padding: 0 4px 2px 4px; |
| 546 | 546 | } |
| 547 | 547 | |
| 548 | | table.shortlog tr td, table.tree tr td { |
| 549 | | padding: 2px 5px 4px 5px; |
| 550 | | } |
| 551 | | table.shortlog tr td.link_to_more { |
| 548 | .link_to_more { |
| 552 | 549 | border-top: 1px solid #aaa; |
| 553 | 550 | padding: 2px; |
| 554 | 551 | } |
| 555 | | table.shortlog tr td.link_to_more span { |
| 556 | | float:right; |
| 557 | | } |
| 558 | 552 | |
| 559 | 553 | table.tree tr td.node { |
| 560 | 554 | width: 75%; |
| toggle raw diff |
--- a/public/stylesheets/base.css
+++ b/public/stylesheets/base.css
@@ -545,16 +545,10 @@ span.tag {
padding: 0 4px 2px 4px;
}
-table.shortlog tr td, table.tree tr td {
- padding: 2px 5px 4px 5px;
-}
-table.shortlog tr td.link_to_more {
+.link_to_more {
border-top: 1px solid #aaa;
padding: 2px;
}
-table.shortlog tr td.link_to_more span {
- float:right;
-}
table.tree tr td.node {
width: 75%; |