diff options
-rw-r--r-- | app/views/admin/projects/show.html.haml | 2 | ||||
-rw-r--r-- | app/views/commits/_commit.html.haml | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/views/admin/projects/show.html.haml b/app/views/admin/projects/show.html.haml index fd57f50..bddf50f 100644 --- a/app/views/admin/projects/show.html.haml +++ b/app/views/admin/projects/show.html.haml @@ -32,7 +32,7 @@ %strong= @project.public %p Last build: - - if @project.last_commit + - if @project.last_commit_date = time_ago_in_words @project.last_commit_date %br %fieldset diff --git a/app/views/commits/_commit.html.haml b/app/views/commits/_commit.html.haml index 70861ac..0284771 100644 --- a/app/views/commits/_commit.html.haml +++ b/app/views/commits/_commit.html.haml @@ -12,7 +12,7 @@ %td.build-branch - unless @ref %span - = link_to commit.ref, project_path(@project, ref: commit.ref) + = link_to truncate(commit.ref, length: 25), project_path(@project, ref: commit.ref) %td.duration - if commit.duration > 0 |