OSDN Git Service

Design improved
authorDmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com>
Wed, 10 Oct 2012 09:41:15 +0000 (12:41 +0300)
committerValeriy Sizov <vsv2711@gmail.com>
Fri, 12 Oct 2012 17:07:24 +0000 (20:07 +0300)
app/assets/stylesheets/sections/editor.scss
app/views/tree/edit.html.haml

index f8e0fca..84f221b 100644 (file)
@@ -1,14 +1,14 @@
 .file-editor {
-  
   #editor{
     height: 500px;
-    width: 90%;
+    width: 100%;
     position: relative;
-    margin-bottom: 20px;
   }
-  textarea{
-    display: block;
-    width: 40%;
-    margin: 10px 0 10px 0;
+  .editor-commit-comment {
+    padding-top:20px;
+    textarea {
+      width: 50%;
+      margin-left: 20px;
+    }
   }
 }
index f9a1e6d..c65d8fd 100644 (file)
@@ -1,17 +1,20 @@
 .file-editor
-  .file_name
-    File: 
-  %span.file_name
-    = @tree.path.force_encoding('utf-8')
-    %br
-    = form_tag(project_tree_path(@project, @id), :method => :put) do
-      #editor
-        = @tree.data
+  = form_tag(project_tree_path(@project, @id), :method => :put) do
+    .file_holder
+      .file_title
+        %i.icon-file
+        = @tree.path.force_encoding('utf-8')
+      .file_content.code
+        #editor= @tree.data
+
+    .editor-commit-comment
+      = label_tag 'text-commit' do
+        %p.slead Commit message
+      = text_area_tag 'text_commit'
+    .form-actions
       = hidden_field_tag 'last_commit', @last_commit
       = hidden_field_tag 'content'
-      
-      = text_area_tag 'text_commit'
-      = submit_tag "Save"
+      = submit_tag "Save", class: 'btn save-btn'
 
 :javascript
   var editor = ace.edit("editor");