76aad9b76e
Make the following changes to deal with new behavior in Rails 4.1.2: * Use nested resources to avoid slashes in arguments to path helpers.
18 lines
607 B
Text
18 lines
607 B
Text
- commit = update
|
|
%tr
|
|
%td
|
|
= link_to namespace_project_commits_path(@project.namespace, @project, commit.head.name) do
|
|
%strong
|
|
= commit.head.name
|
|
- if @project.root_ref?(commit.head.name)
|
|
%span.label default
|
|
|
|
%td
|
|
%div
|
|
= link_to namespace_project_commits_path(@project.namespace, @project, commit.id) do
|
|
%code= commit.short_id
|
|
= image_tag avatar_icon(commit.author_email), class: "", width: 16, alt: ''
|
|
= gfm escape_once(truncate(commit.title, length: 40))
|
|
%td
|
|
%span.pull-right.cgray
|
|
= time_ago_with_tooltip(commit.committed_date)
|