Merge branch 'master' of github.com:gitlabhq/gitlabhq

This commit is contained in:
vsizov 2012-01-28 16:42:14 +03:00
commit 6572d96bb5
4 changed files with 23 additions and 4 deletions

View file

@ -121,8 +121,8 @@ pre.commit_message {
/** COMMIT BLOCK **/
.commit-title{display: block;}
.commit-title{margin-bottom: 10px}
.commit-author{color: #999; font-weight: normal; font-style: italic;}
.commit-author strong{font-weight: bold; font-style: normal;}
.commit-author, .commit-committer{display: block;color: #999; font-weight: normal; font-style: italic;}
.commit-author strong, .commit-committer strong{font-weight: bold; font-style: normal;}
/** bordered list **/
ul.bordered-list {

View file

@ -5,10 +5,12 @@ class Commit
attr_accessor :refs
delegate :message,
:authored_date,
:committed_date,
:parents,
:sha,
:date,
:committer,
:author,
:message,
:diffs,
@ -37,6 +39,14 @@ class Commit
author.name
end
def committer_name
committer.name
end
def committer_email
committer.email
end
def prev_commit
parents.first
end

View file

@ -19,6 +19,15 @@
%strong
= truncate(commit.safe_message, :length => 70)
%span.commit-author
Authored by
 
%strong= commit.author_name
= time_ago_in_words(commit.committed_date)
= time_ago_in_words(commit.authored_date)
ago
- if commit.author_name != commit.committer_name or commit.author_email != commit.committer_email or commit.authored_date != commit.committed_date
%span.commit-committer
Committed by
 
%strong= commit.committer_name
= time_ago_in_words(commit.committed_date)
ago

View file

@ -1,6 +1,6 @@
- if current_user.require_ssh_key?
%ul.errors_holder
%li You have no ssh keys added yo tour profile.
%li You have no ssh keys added to your profile.
%li You wont be able to pull/push repository.
%li Visit profile → keys and add public key of every machine you want to use for work with gitlabhq.