diff options
author | vsizov <vsv2711@gmail.com> | 2012-01-28 16:42:14 +0300 |
---|---|---|
committer | vsizov <vsv2711@gmail.com> | 2012-01-28 16:42:14 +0300 |
commit | 6572d96bb5468b9cdf17c34aec83224ad1840369 (patch) | |
tree | fb4abc227cf752647921eab2c222c2900accf41d /app | |
parent | d6a0b8f42881964b9e57ad1dde4918e74aea0ed0 (diff) | |
parent | 7d750cbf79c446f097eab5e7a35a9d0040c9d4b6 (diff) | |
download | gitlab-ce-6572d96bb5468b9cdf17c34aec83224ad1840369.tar.gz |
Merge branch 'master' of github.com:gitlabhq/gitlabhq
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/stylesheets/commits.css.scss | 4 | ||||
-rw-r--r-- | app/models/commit.rb | 10 | ||||
-rw-r--r-- | app/views/commits/_commits.html.haml | 11 | ||||
-rw-r--r-- | app/views/projects/empty.html.haml | 2 |
4 files changed, 23 insertions, 4 deletions
diff --git a/app/assets/stylesheets/commits.css.scss b/app/assets/stylesheets/commits.css.scss index b1fa9c1827c..a66d521f942 100644 --- a/app/assets/stylesheets/commits.css.scss +++ b/app/assets/stylesheets/commits.css.scss @@ -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 { diff --git a/app/models/commit.rb b/app/models/commit.rb index 695dfa5277e..7f06f4e68fa 100644 --- a/app/models/commit.rb +++ b/app/models/commit.rb @@ -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 diff --git a/app/views/commits/_commits.html.haml b/app/views/commits/_commits.html.haml index 108d1b4c4bf..f1537d1ced0 100644 --- a/app/views/commits/_commits.html.haml +++ b/app/views/commits/_commits.html.haml @@ -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 diff --git a/app/views/projects/empty.html.haml b/app/views/projects/empty.html.haml index f089c6ec46b..dda64ea77da 100644 --- a/app/views/projects/empty.html.haml +++ b/app/views/projects/empty.html.haml @@ -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. |