File tree 4 files changed +10
-12
lines changed
4 files changed +10
-12
lines changed Original file line number Diff line number Diff line change @@ -97,6 +97,7 @@ locked = Locked
97
97
98
98
copy = Copy
99
99
copy_url = Copy URL
100
+ copy_hash = Copy hash
100
101
copy_content = Copy content
101
102
copy_branch = Copy branch name
102
103
copy_success = Copied!
@@ -1283,6 +1284,7 @@ commits.signed_by_untrusted_user = Signed by untrusted user
1283
1284
commits.signed_by_untrusted_user_unmatched = Signed by untrusted user who does not match committer
1284
1285
commits.gpg_key_id = GPG Key ID
1285
1286
commits.ssh_key_fingerprint = SSH Key Fingerprint
1287
+ commits.view_path=View at this point in history
1286
1288
1287
1289
commit.operations = Operations
1288
1290
commit.revert = Revert
Original file line number Diff line number Diff line change 4
4
<tr>
5
5
<th class="three wide">{{ctx.Locale.Tr "repo.commits.author"}}</th>
6
6
<th class="two wide sha">SHA1</th>
7
- <th class="nine wide message">{{ctx.Locale.Tr "repo.commits.message"}}</th>
7
+ <th class="eight wide message">{{ctx.Locale.Tr "repo.commits.message"}}</th>
8
8
<th class="two wide right aligned">{{ctx.Locale.Tr "repo.commits.date"}}</th>
9
+ <th class="one wide right aligned"></th>
9
10
</tr>
10
11
</thead>
11
12
<tbody class="commit-list">
25
26
{{end}}
26
27
</td>
27
28
<td class="sha gt-df">
28
- <button class="ui button copy-commit-sha gt-df gt-ac" data-clipboard-text="{{.ID}}">{{svg "octicon-copy" 14}}</button>
29
29
{{$class := "ui sha label"}}
30
30
{{if .Signature}}
31
31
{{$class = (print $class " isSigned")}}
76
76
{{else}}
77
77
<td class="text right aligned">{{TimeSince .Author.When ctx.Locale}}</td>
78
78
{{end}}
79
+ <td class="gt-pt-0 gt-pb-0">
80
+ <div class="gt-df gt-je">
81
+ <button class="btn interact-bg gt-p-3" data-tooltip-content="{{ctx.Locale.Tr "copy_hash"}}" data-clipboard-text="{{.ID}}">{{svg "octicon-copy"}}</button>
82
+ {{if $.FileName}}<a class="btn interact-bg gt-p-3" data-tooltip-content="{{ctx.Locale.Tr "repo.commits.view_path"}}" href="{{printf "%s/src/commit/%s/%s" $commitRepoLink (PathEscape .ID.String) $.FileName}}">{{svg "octicon-file-code"}}</a>{{end}}
83
+ </div>
84
+ </td>
79
85
</tr>
80
86
{{end}}
81
87
</tbody>
Original file line number Diff line number Diff line change @@ -1328,13 +1328,6 @@ img.ui.avatar,
1328
1328
display : inline-block; /* not sure whether it is still needed */
1329
1329
}
1330
1330
1331
- .ui .button .copy-commit-sha {
1332
- border : 1px solid var (--color-light-border );
1333
- margin-right : 3px ;
1334
- padding : 6px 6px 4px ;
1335
- background : var (--color-light );
1336
- }
1337
-
1338
1331
.ui .button .truncate {
1339
1332
display : inline-block;
1340
1333
max-width : 100% ;
Original file line number Diff line number Diff line change @@ -3051,9 +3051,6 @@ tbody.commit-list {
3051
3051
.commit-table th .sha {
3052
3052
display : none !important ;
3053
3053
}
3054
- .commit-table .commit-list .copy-commit-sha {
3055
- display : none !important ;
3056
- }
3057
3054
.comment-header {
3058
3055
flex-wrap : wrap;
3059
3056
}
You can’t perform that action at this time.
0 commit comments