2012-02-29 01:30:22 +00:00
|
|
|
%h3= t("layout.projects.files_in_project")
|
|
|
|
.files
|
2012-05-02 10:18:07 +01:00
|
|
|
.l= render 'whereami'
|
|
|
|
= render 'fork'
|
2012-02-29 01:30:22 +00:00
|
|
|
.both
|
|
|
|
|
2012-03-21 19:55:14 +00:00
|
|
|
= form_tag blob_path(@project, @treeish, @path), :name => 'blob-editor', :method => :put do
|
|
|
|
.file= text_area_tag :content, @blob.data, :id => 'code'
|
2012-02-27 17:40:46 +00:00
|
|
|
|
|
|
|
.both
|
2012-02-29 16:27:32 +00:00
|
|
|
= t("layout.enter_commit_message")
|
2012-03-21 19:55:14 +00:00
|
|
|
= text_area_tag :message, "Updated #{@blob.name}", :class => 'commit-message'
|
2012-02-27 17:40:46 +00:00
|
|
|
|
|
|
|
%br
|
|
|
|
%br
|
|
|
|
= submit_tag t("layout.save"), :title => t("layout.save")
|
|
|
|
= t("layout.or")
|
2012-03-21 19:55:14 +00:00
|
|
|
= link_to t("layout.cancel"), blob_path(@project, @treeish, @path), :class => 'button'
|
2012-02-08 17:51:30 +00:00
|
|
|
|
|
|
|
:javascript
|
2012-02-09 00:35:07 +00:00
|
|
|
$(function() {
|
2012-03-22 16:16:07 +00:00
|
|
|
var editor = CodeMirror.fromTextArea(document.getElementById('code'), {
|
|
|
|
lineNumbers: true,
|
|
|
|
mode: '#{@blob.raw_mime_type.content_type}'
|
|
|
|
});
|
2012-03-22 14:53:06 +00:00
|
|
|
});
|