lib/milestoner/templates/milestones/_commit.adoc.erb in milestoner-18.5.0 vs lib/milestoner/templates/milestones/_commit.adoc.erb in milestoner-18.6.0

- old
+ new

@@ -1,40 +1,26 @@ -.<%= commit.emoji %> <%= commit.subject %> - <%= render :profile, name: commit.author.name, url: commit.profile_url(commit.author) %> +.<%= commit.emoji %> <%= commit.subject %> - <%= render(:profile, user: commit.author).strip %> [%collapsible] ==== *Message* -<% if commit.body_lines && commit.body_lines.any? %> -<%= commit.body_lines.join "\n" %> -<% else %> -None. -<% end %> +<%= scope(:content, content: Array(commit.body_lines).join("\n")).call %> -<% unless commit.notes.empty? %> *Notes* -_Notes are detected but can't be rendered at the moment. Support will be added in the next Milestoner version._ -<% end %> +<%= scope(:content, content: commit.safe_notes).call %> *Author* -<%= render :avatar, name: commit.author.name, url: commit.avatar_url(commit.author) %> <%= render :profile, name: commit.author.name, url: commit.profile_url(commit.author) %> +<%= render :user, user: commit.author %> -<% if commit.collaborators.any? %> *Collaborators* -<% commit.collaborators.each do |collaborator| %> -* <%= render :avatar, name: collaborator.name, url: commit.avatar_url(collaborator) %> <%= render :profile, name: collaborator.name, url: commit.profile_url(collaborator) %> -<% end %> -<% end %> +<%= scope(:users, users: commit.collaborators).call %> -<% if commit.signers.any? %> *Signers* -<% commit.signers.each do |signer| %> -* <%= render :avatar, name: signer.name, url: commit.avatar_url(signer) %> <%= render :profile, name: signer.name, url: commit.profile_url(signer) %> -<% end %> -<% end %> +<%= scope(:users, users: commit.signers).call %> *Details* * Milestone: <%= commit.tag.capitalize %> * Signature: <%= commit.signature %>