File tree 5 files changed +18
-14
lines changed
5 files changed +18
-14
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ <h2 id="repo_name"></h2>
85
85
< div class ="commit ">
86
86
< div class ="commit-title " id ="commit_title "> </ div >
87
87
< div class ="commit-description " id ="commit_description ">
88
- < a href ="# " id ="permanent_link "> Copy permanent link</ a > < br >
88
+ < a href ="# " id ="permanent_link "> Copy permanent link</ a >
89
89
</ div >
90
90
</ div >
91
91
</ div >
Original file line number Diff line number Diff line change @@ -43,11 +43,12 @@ repo.addMerger()
43
43
. then ( c => {
44
44
let diff = document . createElement ( "a" ) ;
45
45
diff . textContent = "[diff]" ;
46
- diff . href = "../commit/?" + address + "/" + c ;
47
- document . getElementById ( "commit_title" ) . appendChild ( diff ) ;
48
- } ) ;
46
+ diff . href = "commit/?" + address + "/" + c ;
47
+ document . getElementById ( "commit_description" ) . appendChild ( diff ) ;
49
48
50
- document . getElementById ( "commit_description" ) . appendChild ( document . createTextNode ( repo . parseAuthor ( commit . content . committer ) ) ) ;
49
+ document . getElementById ( "commit_description" ) . appendChild ( document . createElement ( "br" ) ) ;
50
+ document . getElementById ( "commit_description" ) . appendChild ( document . createTextNode ( repo . parseAuthor ( commit . content . committer ) ) ) ;
51
+ } ) ;
51
52
52
53
return repo . getFiles ( head , "" ) ;
53
54
} )
Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ <h2 id="repo_name"></h2>
84
84
< div class ="commit ">
85
85
< div class ="commit-title " id ="commit_title "> </ div >
86
86
< div class ="commit-description " id ="commit_description ">
87
- < a href ="# " id ="permanent_link "> Copy permanent link</ a > < br >
87
+ < a href ="# " id ="permanent_link "> Copy permanent link</ a >
88
88
</ div >
89
89
</ div >
90
90
</ div >
Original file line number Diff line number Diff line change @@ -46,10 +46,11 @@ repo.addMerger()
46
46
let diff = document . createElement ( "a" ) ;
47
47
diff . textContent = "[diff]" ;
48
48
diff . href = "commit/?" + address + "/" + c ;
49
- document . getElementById ( "commit_title" ) . appendChild ( diff ) ;
50
- } ) ;
49
+ document . getElementById ( "commit_description" ) . appendChild ( diff ) ;
51
50
52
- document . getElementById ( "commit_description" ) . appendChild ( document . createTextNode ( repo . parseAuthor ( commit . content . committer ) ) ) ;
51
+ document . getElementById ( "commit_description" ) . appendChild ( document . createElement ( "br" ) ) ;
52
+ document . getElementById ( "commit_description" ) . appendChild ( document . createTextNode ( repo . parseAuthor ( commit . content . committer ) ) ) ;
53
+ } ) ;
53
54
54
55
return repo . getFiles ( head , path ) ;
55
56
} )
Original file line number Diff line number Diff line change @@ -93,11 +93,6 @@ repo.addMerger()
93
93
title . textContent = commit . content . message ;
94
94
node . appendChild ( title ) ;
95
95
96
- let diffLink = document . createElement ( "a" ) ;
97
- diffLink . innerHTML = "[diff]" ;
98
- diffLink . href = "../commit/?" + address + "/" + commit . id ;
99
- title . appendChild ( diffLink ) ;
100
-
101
96
let description = document . createElement ( "div" ) ;
102
97
description . className = "commit-description" ;
103
98
@@ -106,6 +101,13 @@ repo.addMerger()
106
101
commitLink . textContent = commit . id ;
107
102
description . appendChild ( commitLink ) ;
108
103
104
+ description . appendChild ( document . createTextNode ( " " ) ) ;
105
+
106
+ let diffLink = document . createElement ( "a" ) ;
107
+ diffLink . innerHTML = "[diff]" ;
108
+ diffLink . href = "../commit/?" + address + "/" + commit . id ;
109
+ description . appendChild ( diffLink ) ;
110
+
109
111
description . appendChild ( document . createElement ( "br" ) ) ;
110
112
111
113
description . appendChild ( document . createTextNode ( repo . parseAuthor ( commit . content . committer ) ) ) ;
You can’t perform that action at this time.
0 commit comments