diff options
author | skv-headless <skv-headless@yandex.ru> | 2014-02-25 17:54:30 +0400 |
---|---|---|
committer | skv-headless <skv-headless@yandex.ru> | 2014-02-25 18:23:23 +0400 |
commit | 2c28dbd2547d77054b0a080af6b0dfec674ad799 (patch) | |
tree | ac02f4d1536b1a59c8f38872eb08bfe57d224f20 /app/views/projects/commits/_commit.html.haml | |
parent | 5f31caa0ed88b0d779336d909dc7f48b9f86cd25 (diff) | |
download | gitlab-ce-2c28dbd2547d77054b0a080af6b0dfec674ad799.tar.gz |
commit description in commit list
Diffstat (limited to 'app/views/projects/commits/_commit.html.haml')
-rw-r--r-- | app/views/projects/commits/_commit.html.haml | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/app/views/projects/commits/_commit.html.haml b/app/views/projects/commits/_commit.html.haml index 9772d3ef2ef..a5e369e9366 100644 --- a/app/views/projects/commits/_commit.html.haml +++ b/app/views/projects/commits/_commit.html.haml @@ -1,9 +1,12 @@ %li.commit - .commit-row-title + .commit-row-title{"data-toggle" => "dropdown"} = link_to commit.short_id(8), project_commit_path(project, commit), class: "commit_short_id" %span.str-truncated = link_to_gfm commit.title, project_commit_path(project, commit.id), class: "commit-row-message" + - if commit.description? + %span.label-default.text-expander.js-details-target ... + = link_to "Browse Code ยป", project_tree_path(project, commit), class: "pull-right" .notes_count - notes = project.notes.for_commit_id(commit.id) @@ -12,6 +15,10 @@ %i.icon-comment = notes.count + - if commit.description? + .commit-row-description + = simple_format(commit.description) + .commit-row-info = commit_author_link(commit, avatar: true, size: 16) .committed_ago |