Better visibility of event commit links & commits ids

This commit is contained in:
randx 2012-07-28 00:27:54 +03:00
parent 9a709f76be
commit bc7897180d
6 changed files with 23 additions and 9 deletions

View file

@ -337,6 +337,15 @@ p.time {
padding: 15px 5px;
&:last-child { border:none }
.wll:hover { background:none }
.event_commits {
margin-top: 5px;
li.commit {
padding:5px;
border:none;
}
}
}
.ico {

View file

@ -18,7 +18,8 @@ a {
}
&.lined {
text-decoration:underlined;
text-decoration:underline;
&:hover { text-decoration:underline; }
}
&.gray {

View file

@ -199,4 +199,11 @@
background:#FCEEC1;
color:$style_color;
}
.commit_short_id {
float:left;
@extend .lined;
min-width:65px;
font-family: 'Menlo', 'Liberation Mono', 'Consolas', 'Courier New', 'andale mono','lucida console',monospace;
}
}

View file

@ -32,15 +32,12 @@
p {
padding-top:0;
padding-bottom:2px;
}
img.avatar {
width:32px;
margin-top:4px;
}
.row_title {
padding:0px;
padding-bottom:2px;
}
}
}

View file

@ -3,7 +3,7 @@
%p
%strong= link_to "Browse Code »", tree_project_ref_path(@project, commit.id), :class => "right"
%p
%code.left= link_to commit.short_id, project_commit_path(@project, :id => commit.id)
= link_to commit.short_id(8), project_commit_path(@project, :id => commit.id), :class => "commit_short_id"
%strong.cgray= commit.author_name
–
= image_tag gravatar_icon(commit.author_email), :class => "avatar", :width => 16

View file

@ -1,9 +1,9 @@
- commit = CommitDecorator.decorate(commit)
%li.wll.commit
%p
%code.left= link_to commit.short_id, project_commit_path(project, :id => commit.id)
%strong.cgray= commit.author_name
= link_to commit.short_id(8), project_commit_path(project, :id => commit.id), :class => "commit_short_id"
%strong.cdark= commit.author_name
–
= image_tag gravatar_icon(commit.author_email), :class => "avatar", :width => 16
= link_to truncate(commit.title, :length => 50), project_commit_path(project, :id => commit.id), :class => "row_title" rescue "--broken encoding"
= truncate(commit.title, :length => 50) rescue "--broken encoding"