Commit af84ecdd37119026db116378b7e102b3f1252fd0

unify shortlog display

Commit diff

app/views/browse/_log.html.erb

 
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 "&#x2190; previous", log_path(:page => params[:page].to_i-1) -%> |
1414 <% 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 "&#x2190; previous", log_path(:page => params[:page].to_i-1) -%> |
20 <% end -%>
21 <%= link_to "next &#x2192;", log_path(:page => (params[:page].blank? ? 2 : params[:page].to_i+1)) -%>
22 </span>
23 </td>
24 </tr>
25</table>
15 <%= link_to "next &#x2192;", log_path(:page => (params[:page].blank? ? 2 : params[:page].to_i+1)) -%>
16 </span>
17</li>
18</ul>
toggle raw diff

public/stylesheets/base.css

 
545545 padding: 0 4px 2px 4px;
546546}
547547
548table.shortlog tr td, table.tree tr td {
549 padding: 2px 5px 4px 5px;
550}
551table.shortlog tr td.link_to_more {
548.link_to_more {
552549 border-top: 1px solid #aaa;
553550 padding: 2px;
554551}
555table.shortlog tr td.link_to_more span {
556 float:right;
557}
558552
559553table.tree tr td.node {
560554 width: 75%;
toggle raw diff