add show_ignore_space_change_link option to show -...
...-ignore-space-change page easily
... | ... |
@@ -1,4 +1,5 @@ |
1 | 1 |
1.10 |
2 |
+ - add show_ignore_space_change_link option to show --ignore-space-change page easily |
|
2 | 3 |
- add --ignore-space-change feature in diff page by using w= query string |
3 | 4 |
for example, http://some.com/kimoto/gitprep_t/commit/3cf14ade5e28ee0cd83b9a3b1e1c332aed66df53?w= |
4 | 5 |
1.9.2 |
... | ... |
@@ -34,6 +34,9 @@ |
34 | 34 |
;;; default is "$ENV{HOME}/.ssh/authorized_keys" |
35 | 35 |
; authorized_keys_file=/home/gitprep/.ssh/authorized_keys |
36 | 36 |
|
37 |
+;;; Show ignore space change link, default to 0 |
|
38 |
+; show_ignore_space_change_link=1 |
|
39 |
+ |
|
37 | 40 |
[admin] |
38 | 41 |
;;; If you forget admin password, |
39 | 42 |
;;; set this value to 1 and access /reset-password page. |
... | ... |
@@ -217,6 +217,11 @@ |
217 | 217 |
<a class="btn" href="<%= url_for("/$user/$project/compare/$base_branch->{name}...$bname") %>"> |
218 | 218 |
Compare |
219 | 219 |
</a> |
220 |
+ % if (app->config->{basic}{show_ignore_space_change_link}) { |
|
221 |
+ (<a style="font-size:90%;color:#9999FF" href="<%= url_for("/$user/$project/compare/$base_branch->{name}...$bname?w=") %>"> |
|
222 |
+ ignore space |
|
223 |
+ </a>) |
|
224 |
+ % } |
|
220 | 225 |
</div> |
221 | 226 |
</div> |
222 | 227 |
</div> |
... | ... |
@@ -150,6 +150,11 @@ |
150 | 150 |
<a class="font-black" href="<%= url_for("/$user/$project/commit/$commit->{id}") %>"> |
151 | 151 |
<b><%= $commit->{title_short} %></b> |
152 | 152 |
</a> |
153 |
+ % if (app->config->{basic}{show_ignore_space_change_link}) { |
|
154 |
+ (<a class="font-black" style="font-size:90%;color:#9999FF" href="<%= url_for("/$user/$project/commit/$commit->{id}?w=") %>"> |
|
155 |
+ ignore space |
|
156 |
+ </a>) |
|
157 |
+ % } |
|
153 | 158 |
</div> |
154 | 159 |
<div class="text-right"> |
155 | 160 |
<a class="btn" style="width:90px;padding:0px 10px;color:#3a505b;font-size:12px" href="<%= url_for("/$user/$project/commit/$commit->{id}") %>"> |