2019-07-16 19:47:44 +00:00
|
|
|
.row.justify-content-center
|
2023-04-20 21:23:58 +00:00
|
|
|
.col-12.col-lg-8#pull
|
2019-07-16 19:47:44 +00:00
|
|
|
%h1= t('.title')
|
|
|
|
%p.lead= sanitize_markdown t('.help.fetch'), tags: %w[em strong a]
|
|
|
|
|
|
|
|
%h2= t('.toc')
|
|
|
|
%ul.toc
|
|
|
|
- @commits.each do |commit|
|
|
|
|
%li= link_to commit.summary, "##{commit.oid}"
|
|
|
|
|
|
|
|
- @commits.each do |commit|
|
|
|
|
.row.justify-content-center
|
2023-04-20 21:23:58 +00:00
|
|
|
.col-12.col-lg-8{ id: commit.oid }
|
2019-07-16 19:47:44 +00:00
|
|
|
%h1= commit.summary
|
|
|
|
%p.lead= render 'layouts/time', time: commit.time
|
|
|
|
|
|
|
|
-#
|
|
|
|
No hay forma de obtener el cuerpo del commit separado del
|
|
|
|
resumen, cortamos por el primer salto de línea doble y obtenemos
|
|
|
|
todo lo demás
|
|
|
|
= sanitize_markdown commit.message.split("\n\n", 2).last,
|
|
|
|
tags: %w[p a h1 h2 h3 h4 h5 h6 ol ul li strong em]
|
|
|
|
|
|
|
|
%hr
|
|
|
|
|
|
|
|
- unless @commits.empty?
|
|
|
|
.row.justify-content-center
|
2023-04-20 21:23:58 +00:00
|
|
|
.col-12.col-lg-8
|
2019-07-16 19:47:44 +00:00
|
|
|
= link_to t('.merge.request'), site_pull_path(@site),
|
2019-09-12 16:55:20 +00:00
|
|
|
method: 'post', class: 'btn btn-lg'
|