Add proper text formatting to commit.view

- Add check for null files for success and danger bars
- Add period to sentences without trailing space