diff options
Diffstat (limited to 'app/views/projects/diffs/viewers/_collapsed.html.haml')
-rw-r--r-- | app/views/projects/diffs/viewers/_collapsed.html.haml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/views/projects/diffs/viewers/_collapsed.html.haml b/app/views/projects/diffs/viewers/_collapsed.html.haml new file mode 100644 index 00000000000..94dcda38bd6 --- /dev/null +++ b/app/views/projects/diffs/viewers/_collapsed.html.haml @@ -0,0 +1,5 @@ +- diff_file = viewer.diff_file +- url = url_for(safe_params.merge(action: :diff_for_path, old_path: diff_file.old_path, new_path: diff_file.new_path, file_identifier: diff_file.file_identifier)) +.nothing-here-block.diff-collapsed{ data: { diff_for_path: url } } + = _("This diff is collapsed.") + %button.click-to-expand.btn.btn-link= _("Click to expand it.") |