OSDN Git Service

commits notes under diff. tab removed
authorDmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com>
Sat, 5 Nov 2011 12:45:52 +0000 (14:45 +0200)
committerDmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com>
Sat, 5 Nov 2011 12:45:52 +0000 (14:45 +0200)
app/assets/stylesheets/projects.css.scss
app/views/commits/show.html.haml

index 766138e..0e1ad93 100644 (file)
@@ -52,7 +52,8 @@
     background: #eee;
   }
   .diff_file_content {
-    overflow-x: scroll;
+    overflow:auto;
+    overflow-y:hidden;
     background:#fff;
     color:#333;
     font-size: 12px;
@@ -174,9 +175,9 @@ a {
   .old_line, .new_line {
     background:#ECECEC;
     color:#777;
-    width:15px;
+    width:30px;
     float:left;
-    padding: 0px 10px;
+    padding: 0px 5px;
     border-right: 1px solid #ccc;
   }
 }
index 3bd9145..b42b23d 100644 (file)
@@ -1,5 +1,5 @@
 %h3
-  = "[ #{@commit.committer} ]  #{truncate(@commit.safe_message)}"
+  = "[ #{@commit.author_name} ]  #{truncate(@commit.safe_message, :length => 70)}"
 -#= link_to 'Back', project_commits_path(@project), :class => "button"
 %table.round-borders
   %tr
@@ -9,11 +9,8 @@
     %td Author
     %td= @commit.author_name
   %tr
-    %td Commiter
-    %td= @commit.committer
-  %tr
     %td Commited Date
-    %td= @commit.committed_date
+    %td= @commit.committed_date.stamp("21 Aug 2011, 11:15pm")
   %tr
     %td Message
     %td
     %td= link_to 'Browse Code', tree_project_path(@project, :commit_id => @commit.id)
 .clear
 
-#tabs
-  %ul
-    %li
-      %a{ :href => "#tabs-1" } Diff
-    %li
-      %a{ :href => "#tabs-2" } Comments
-      %span{ :class => "notes_count" }= @notes.count
-  %hr
-  #tabs-1
-    = render "commits/diff"
-  #tabs-2
-    = render "notes/notes"
+%br
 
-:javascript
-  $(function() { $( "#tabs" ).tabs(); });
+= render "commits/diff"
+= render "notes/notes"