Showing 2 changed files with 9 additions and 4 deletions
+6 -1
lib/Gitprep/Git.pm
... ...
@@ -810,7 +810,12 @@ sub latest_commit_log {
810 810
     $commit_log->{commit} = $1;
811 811
     $commit_log->{author} = $2;
812 812
     $commit_log->{author_date} = $3;
813
-    $commit_log->{comment} = substr($4, 0, 60) . '...';
813
+    my $comment = $4;
814
+    my $comment_short
815
+      = length $comment > 60
816
+      ? substr($comment, 0, 60) . '...'
817
+      : $comment;
818
+    $commit_log->{comment} = $comment_short;
814 819
   }
815 820
   
816 821
   $commit_log->{author_date} =~ s/,.*$//;
+3 -3
templates/include/tree.html.ep
... ...
@@ -115,7 +115,7 @@
115 115
         % my $type = $tree->{type};
116 116
         % my $name = $tree->{name};
117 117
         
118
-        <div class="span2">
118
+        <div class="span3" style="width:150px">
119 119
           % my $child_dir = defined $dir && length $dir ? join('/', $dir, $name) : $name;
120 120
           % if ($type eq 'blob') {
121 121
             % my $file = defined $dir && $dir ne '' ? "$dir/$name" : $name;
... ...
@@ -130,10 +130,10 @@
130 130
             </a>
131 131
           % }
132 132
         </div>
133
-        <div class="span2">
133
+        <div class="span2" style="width:80px">
134 134
           <%= $tree->{author_date} %>
135 135
         </div>
136
-        <div class="span7 offset1-mini">
136
+        <div class="span6" style="width:650px">
137 137
           <a class="font-black" href="<%= url_for("/$user/$project/commit/$tree->{commit}") %>">
138 138
             <%= $tree->{comment} %>
139 139
           </a>