-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
link to file from its history #27354
Changes from all commits
59b901b
2340028
925ad52
70e82d7
4ba1f7b
41fe333
672393f
4b97760
a024ef1
56bfb59
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,8 +4,9 @@ | |
<tr> | ||
<th class="three wide">{{ctx.Locale.Tr "repo.commits.author"}}</th> | ||
<th class="two wide sha">SHA1</th> | ||
<th class="nine wide message">{{ctx.Locale.Tr "repo.commits.message"}}</th> | ||
<th class="eight wide message">{{ctx.Locale.Tr "repo.commits.message"}}</th> | ||
<th class="two wide right aligned">{{ctx.Locale.Tr "repo.commits.date"}}</th> | ||
<th class="one wide right aligned"></th> | ||
</tr> | ||
</thead> | ||
<tbody class="commit-list"> | ||
|
@@ -25,7 +26,6 @@ | |
{{end}} | ||
</td> | ||
<td class="sha gt-df"> | ||
<button class="ui button copy-commit-sha gt-df gt-ac" data-clipboard-text="{{.ID}}">{{svg "octicon-copy" 14}}</button> | ||
{{$class := "ui sha label"}} | ||
{{if .Signature}} | ||
{{$class = (print $class " isSigned")}} | ||
|
@@ -76,6 +76,12 @@ | |
{{else}} | ||
<td class="text right aligned">{{TimeSince .Author.When ctx.Locale}}</td> | ||
{{end}} | ||
<td class="gt-pt-0 gt-pb-0"> | ||
<div class="gt-df gt-je"> | ||
<button class="btn interact-bg gt-p-3" data-tooltip-content="{{ctx.Locale.Tr "copy_hash"}}" data-clipboard-text="{{.ID}}">{{svg "octicon-copy"}}</button> | ||
{{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}} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, likely There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. -> Improve file history UI and fix URL escaping bug #27531 |
||
</div> | ||
</td> | ||
</tr> | ||
{{end}} | ||
</tbody> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If there is a ini linter, I would make it lint for spaces around
=
😆