rosa-build/app/views/projects/git/blobs/_show.html.haml

16 lines
387 B
Plaintext
Raw Normal View History

%h3= t("layout.projects.files_in_project")
.files
.l= render 'whereami'
= render 'fork'
.both
.file
.top= render 'top'
.data= render "render_as_#{@blob.render_as}"
:javascript
$(document).ready(function() {
var text = $('#code').text().replace(/&/gi, '&');
CodeMirror.runMode(text, "#{@blob.raw_mime_type.content_type}", document.getElementById("output"));
});