1
0
Fork 0
forked from forgejo/forgejo

Expandable commit bodies (#2980)

* Initial working state of expandable commit bodies

* Fix all commits having showing button for multiline commits

* Refactor checking multiline messages method

* Force newlines with <br> in commit body

* Show multiple lines in the list view of repositories

* Fixed proper newlines and minor refactor

Use <pre> instead of <p>, this is so we can use \n instead of having to manually place <br> into the HTML. Makes it easier to display commit bodies.

* Fix commit list messages jumping around

* Fix indentation in view_list.tmpl

* Use vertical-align: baseline instead of top

* Refactor commit button toggle function

* Remove RenderCommitBodyLink function

* Add comments

* Add newline at the end of _repository.less

* Fix long commit bodies not properly wrapping inside <pre>

* Don't split on double newlines

* Show the commit body in commit view

* Update stylesheets

* Add/fix comments and run make fmt

* Fix spaces not being tabs
This commit is contained in:
Sondre Nilsen 2017-11-30 06:08:40 +01:00 committed by Lunny Xiao
parent 4cf90aa865
commit 86ee41ec03
7 changed files with 53 additions and 5 deletions

View file

@ -2016,3 +2016,7 @@ function initFilterBranchTagDropdown(selector) {
});
});
}
$(".commit-button").click(function() {
$(this).parent().find('.commit-body').toggle();
});