| |
@@ -214,7 +214,7 @@
|
| |
<div class="commit_list" id="commit_list">
|
| |
<table>
|
| |
{% for commit in diff_commits %}
|
| |
- <tr>
|
| |
+ <tr class="highlight_commit" id="highlight_commit">
|
| |
<td class="commitid">{{ commit.oid.hex|short }}</td>
|
| |
<td>
|
| |
{% if pull_request and pull_request.status and pull_request.project_from.is_fork %}
|
| |
@@ -241,7 +241,7 @@
|
| |
{{ commit.commit_time|humanize }}</td>
|
| |
</tr>
|
| |
{% else %}
|
| |
- <tr><td class="error"> No commits found </td></tr>
|
| |
+ <tr class="highlight_commit" id="highlight_commit"><td class="error"> No commits found </td></tr>
|
| |
{% endfor %}
|
| |
</table>
|
| |
</div>
|
| |
@@ -256,7 +256,7 @@
|
| |
{% if diff %}
|
| |
{% for patch in diff %}
|
| |
<section class="commit_diff">
|
| |
- <header>
|
| |
+ <header class="highlight_diff" id="highlight_diff">
|
| |
<h3>
|
| |
{%- if patch.new_file_path == patch.old_file_path -%}
|
| |
{{ patch.new_file_path }}
|
| |
@@ -518,14 +518,20 @@
|
| |
|
| |
highlight_comment = function() {
|
| |
var _hash = window.location.hash;
|
| |
+ var _hash_dup = window.location.hash.substring(1);
|
| |
if (_hash != cur_hash) {
|
| |
$( cur_hash ).css(
|
| |
"background", "linear-gradient(to bottom, #ededed 0%, #fff 100%)"
|
| |
);
|
| |
};
|
| |
cur_hash = _hash;
|
| |
- if ( _hash ) {
|
| |
- $( _hash ).css(
|
| |
+ if ( _hash_dup == 'request_diff' ) {
|
| |
+ $( #highlight_diff ).css(
|
| |
+ "background", "linear-gradient(to bottom, #eded98 0%, #fff 100%)"
|
| |
+ );
|
| |
+ };
|
| |
+ if ( _hash_dup == 'commit_list' ) {
|
| |
+ $( #highlight_commit ).css(
|
| |
"background", "linear-gradient(to bottom, #eded98 0%, #fff 100%)"
|
| |
);
|
| |
};
|
| |