Skip to content

Commit

Permalink
Add anchor for each revision
Browse files Browse the repository at this point in the history
  • Loading branch information
takonomura committed Apr 11, 2018
1 parent 3ae5d45 commit f393740
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/views/kuroko2/job_definition_revisions/index.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
style= Diffy::CSS

- @revisions.each.with_index do |revision, i|
.box
.box id="revision-#{revision.id}"
.box-header
.row
.col-md-9
Expand All @@ -19,5 +19,6 @@ style= Diffy::CSS
- else
h2.box-title Unknown User
.col-md-3.right-button.text-right
= revision.changed_at
- if revision.changed_at?
= link_to revision.changed_at, anchor: "revision-#{revision.id}"
.box-body= revision.html_diff(@revisions[i+1])

0 comments on commit f393740

Please sign in to comment.