Author
|
zPlus <zplus@peers.community>
2022-08-09 15:59:48
|
Committer
|
zPlus <zplus@peers.community>
2022-08-09 15:59:48
|
Commit
|
ea6af13
(patch)
|
Tree
|
9de04a7
|
Parent(s)
|
|
Replace diffstat links with anchors.
Remove direct link from diffstat to blob, and instead replace it with
anchors to diffs on the same page.
commits diff:
d448d3c..ea6af13
1 file changed,
2 insertions,
2 deletions
—
download
Diffstat
Diff options
+2/-2
M templates/repository/commit.html
72
|
72
|
|
<tr>
|
73
|
73
|
|
<td class="filemode">{{ patch.delta.new_file.mode|filemode }}</td>
|
74
|
74
|
|
<td class="path">
|
75
|
|
- |
<a href="{{ url('tree_path', repository=repository[:-4], revision=commit.id, tree_path=patch.delta.new_file.path) }}">{{ patch.delta.new_file.path }}</a>
|
|
75
|
+ |
<a href="#{{ (patch.delta.new_file.id|string)[:7] }}">{{ patch.delta.new_file.path }}</a>
|
76
|
76
|
|
</td>
|
77
|
77
|
|
<td class="lines">{{ patch.line_stats[1] + patch.line_stats[2] }}</td>
|
78
|
78
|
|
<td class="histogram">
|
158
|
158
|
|
|
159
|
159
|
|
{% for patch in diff %}
|
160
|
160
|
|
|
161
|
|
- |
<details class="diff_view" {{ 'open' if defaults.DIFF_EXPAND }}>
|
|
161
|
+ |
<details class="diff_view" id="{{ (patch.delta.new_file.id|string)[:7] }}" {{ 'open' if defaults.DIFF_EXPAND }}>
|
162
|
162
|
|
|
163
|
163
|
|
{# The following status values are defined in the git_delta_t enum
|
164
|
164
|
|
# in libgit2. See https://github.com/libgit2/libgit2/blob/main/include/git2/diff.h
|