mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
Changed name from inline to unified
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
<i class="fa fa-retweet"></i>
|
||||
{{.i18n.Tr "repo.diff.stats_desc" .Diff.NumFiles .Diff.TotalAddition .Diff.TotalDeletion | Str2html}}
|
||||
<div class="ui right">
|
||||
<a class="ui tiny basic toggle button" href="?style={{if .Style}}inline{{else}}split{{end}}">{{ if .Style }}{{.i18n.Tr "repo.diff.show_inline_view"}}{{else}}{{.i18n.Tr "repo.diff.show_split_view"}}{{end}}</a>
|
||||
<a class="ui tiny basic toggle button" href="?style={{if .IsSplitStyle}}unified{{else}}split{{end}}">{{ if .IsSplitStyle }}{{.i18n.Tr "repo.diff.show_unified_view"}}{{else}}{{.i18n.Tr "repo.diff.show_split_view"}}{{end}}</a>
|
||||
<a class="ui tiny basic toggle button" data-target="#diff-files">{{.i18n.Tr "repo.diff.show_diff_stats"}}</a>
|
||||
</div>
|
||||
</div>
|
||||
@@ -33,9 +33,9 @@
|
||||
</ol>
|
||||
</div>
|
||||
|
||||
{{if .Style}}
|
||||
{{if .IsSplitStyle}}
|
||||
{{ template "repo/diff_box_split" . }}
|
||||
{{else}}
|
||||
{{ template "repo/diff_box_inline" . }}
|
||||
{{ template "repo/diff_box_unified" . }}
|
||||
{{end}}
|
||||
{{end}}
|
||||
|
@@ -81,10 +81,6 @@
|
||||
prev.children().eq(2).html($(this).children().eq(2).html());
|
||||
prev.children().eq(3).addClass('add-code');
|
||||
prev.children().eq(2).addClass('add-code');
|
||||
// prev.children().eq(2).attr('style', 'background-color: #eaffea !important');
|
||||
// prev.children().eq(2).children().eq(0).attr('style', 'background-color: #eaffea !important');
|
||||
// prev.children().eq(3).attr('style', 'background-color: #eaffea !important');
|
||||
// prev.children().eq(3).children().eq(0).attr('style', 'background-color: #eaffea !important');
|
||||
$(this).remove();
|
||||
}
|
||||
});
|
||||
|
@@ -57,15 +57,6 @@
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<script>
|
||||
(function() {
|
||||
$('tr.del-code').each(function() {
|
||||
if($(this).next().hasClass('add-code')) {
|
||||
// $($(this).children()[3]).replaceWith($(this).next().children()[3]);
|
||||
}
|
||||
});
|
||||
}());
|
||||
</script>
|
||||
{{end}}
|
||||
{{end}}
|
||||
</div>
|
Reference in New Issue
Block a user