commit restyle

This commit is contained in:
gitlabhq 2011-11-21 02:16:10 -05:00
parent 3f35cccfbd
commit 46bebac983
4 changed files with 43 additions and 39 deletions

View file

@ -28,17 +28,7 @@
/** File stat **/ /** File stat **/
.file_stats { .file_stats {
margin-bottom:10px;
@include round-borders-all(4px);
span { span {
border-top: 1px solid #eaeaea;
padding:5px 5px;
display:block;
&:first-child {
border-top:none;
}
img { img {
width:18px; width:18px;
float:left; float:left;

View file

@ -1,4 +1,5 @@
.file_stats= render "commits/diff_head" .file_stats
= render "commits/diff_head"
- @commit.diffs.each do |diff| - @commit.diffs.each do |diff|
- next if diff.diff.empty? - next if diff.diff.empty?

View file

@ -1,4 +1,9 @@
%table
%thead
%th Files
- @commit.diffs.each do |diff| - @commit.diffs.each do |diff|
%tr
%td
- if diff.deleted_file - if diff.deleted_file
%span.removed_file %span.removed_file
%a{:href => "##{diff.a_path}"} %a{:href => "##{diff.a_path}"}

View file

@ -1,7 +1,18 @@
%h3 - content_for(:body_class, "project-page commits-page")
= "[ #{@commit.author_name} ] #{truncate(@commit.safe_message, :length => 70)}"
-#%a.right.button{:href => "#"} Download
-#-if can? current_user, :admin_project, @project
%a.right.button.blue{:href => "#"} EDIT
%h2.icon
%span
%d
= "#{truncate(@commit.safe_message, :length => 50)}"
.right
= link_to 'Browse Code', tree_project_ref_path(@project, @commit.id), :class => "button"
-#= link_to 'Back', project_commits_path(@project), :class => "button" -#= link_to 'Back', project_commits_path(@project), :class => "button"
%table.round-borders %table.round-borders
%thead
%th{:colspan => 2} Details
%tr %tr
%td ID %td ID
%td= @commit.id %td= @commit.id
@ -16,9 +27,6 @@
%td %td
%pre.commit_message %pre.commit_message
= preserve @commit.safe_message = preserve @commit.safe_message
%tr
%td Tree
%td= link_to 'Browse Code', tree_project_ref_path(@project, @commit.id)
.clear .clear
%br %br