Check if blob or tree and redirect to the correct one.
Add tests for redirects.
Merge branch 'redirect_betwee_tree_and_blob' into 'master'

Redirect between tree and blob

This checks if on requested non-existing tree path blob exists, redirects to blob path if the file exists, otherwise return not found.

See #1369

See merge request !953
Update highlight.js to 8.1

Also added support for less common languages. All languages from
http://highlightjs.org/download/ now supported

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Merge branch 'update-highlight-js' into 'master'

Update highlight.js to 8.1

Pack version including all supported languages. Yay for Haml, Clojure, Go and Erlang support!

Fixes #1411.

See merge request !956
Show browse file if we are browsing file history.
Check if blob is requested.
Differentiate between dirs, files and general code.
Move the links decision to helper.
Add tests to check for correct browse link name.
Active link based on controller rather than action.
Merge branch 'active_highlight' into 'master'

Active highlight

This will highlight active page regardless of the action we use.

See merge request !957
Merge branch 'browse_file' into 'master'

Browse file

Fixes #1335

See merge request !951
More entries to CHANGELOG

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>