5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-24 15:16:22 +00:00
panel/app/views/sites/fetch.haml

31 lines
932 B
Text
Raw Normal View History

.row.justify-content-center
2023-04-20 21:23:58 +00:00
.col-12.col-lg-8#pull
%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 }
%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
= link_to t('.merge.request'), site_pull_path(@site),
2019-09-12 16:55:20 +00:00
method: 'post', class: 'btn btn-lg'