Commit 1b1c6ebf authored by Lin Jen-Shin's avatar Lin Jen-Shin

Fix the template

parent 98525212
...@@ -26,8 +26,7 @@ ...@@ -26,8 +26,7 @@
had had
= failed.size = failed.size
failed failed
= 'job'.plural(failed.size) = 'job'.pluralize(failed.size)
.
- failed.each do |job| - failed.each do |job|
.p .p
......
...@@ -5,7 +5,7 @@ Commit Message: <%= @pipeline.git_commit_message %> ...@@ -5,7 +5,7 @@ Commit Message: <%= @pipeline.git_commit_message %>
Commit Author: <%= @pipeline.git_author_name %> Commit Author: <%= @pipeline.git_author_name %>
Pusher: <%= @pipeline.user.try(:name) %> Pusher: <%= @pipeline.user.try(:name) %>
<% failed = @pipeline.statuses.latest.failed %> <% failed = @pipeline.statuses.latest.failed %>
Pipeline #<%= @pipeline.id %> had <%= failed.size %> failed <%= 'job'.plural(failed.size) %>. Pipeline #<%= @pipeline.id %> had <%= failed.size %> failed <%= 'job'.pluralize(failed.size) %>.
<% failed.each do |job| %> <% failed.each do |job| %>
ID: <%= job.id %> ID: <%= job.id %>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment