9920551536
This commit alters views for the following models to use the markdown cache if present: * AbuseReport * Appearance * ApplicationSetting * BroadcastMessage * Group * Issue * Label * MergeRequest * Milestone * Project At the same time, calls to `escape_once` have been moved into the `single_line` Banzai pipeline, so they can't be missed out by accident and the work is done at save, rather than render, time.
18 lines
647 B
Text
18 lines
647 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: ''
|
|
= markdown(truncate(commit.title, length: 40), pipeline: :single_line, author: commit.author)
|
|
%td
|
|
%span.pull-right.cgray
|
|
= time_ago_with_tooltip(commit.committed_date)
|