Showing 2 changed files with 4 additions and 32 deletions
+4 -4
templates/main/branches.html.ep
... ...
@@ -23,10 +23,10 @@
23 23
   $default_branch->{name} = 'master';
24 24
   $default_branch->{commit} = $git->parse_commit($project, $default_branch->{name});
25 25
   
26
-  use D;d $default_branch;
27
-
28 26
   # No merged branches
29 27
   my $branches  = $git->no_merged_branches($project);
28
+
29
+  use D;d $branches;
30 30
 %>
31 31
 
32 32
 % layout 'new_common';
... ...
@@ -120,7 +120,7 @@
120 120
       <tr class="default">
121 121
         <td class="left">
122 122
           <div class="name"><%= $default_branch->{name} %></div>
123
-          <div class="last_updated">Last updated <%= $default_branch->{commit}{age_string_age} %> by <%= $default_branch->{commit}{author_name} %></div>
123
+          <div class="last_updated">Last updated <%= $default_branch->{commit}{age_string} %> by <%= $default_branch->{commit}{author_name} %></div>
124 124
         </td>
125 125
         <td>
126 126
           
... ...
@@ -141,7 +141,7 @@
141 141
                 <%= $name %>
142 142
               </a>
143 143
             </div>
144
-            <div class="last_updated">Last updated <%= $default_branch->{commit}{age_string_age} %> by <%= $default_branch->{commit}{author_name} %></div>
144
+            <div class="last_updated">Last updated <%= $branch->{commit}{age_string} %> by <%= $branch->{commit}{author_name} %></div>
145 145
           </td>
146 146
           <td>
147 147
             
-28
templates/main/new_tags.html.ep
... ...
@@ -1,28 +0,0 @@
1
-<%
2
-  # API
3
-  my $api = Gitprep::API->new($self);
4
-
5
-  my $user = param('user');
6
-  my $repository = param('repository');
7
-
8
-  my $root_ns = $api->root_ns(config->{root});
9
-  
10
-  # Parameters
11
-  my $project_ns = "$root_ns/$user/$repository.git";
12
-  my $project = "/$project_ns";
13
-  my $home_ns = $api->dirname($project_ns);
14
-  my $home = "/$home_ns";
15
-  
16
-  # Git
17
-  my $git = $self->app->git;
18
-  
19
-  # Ref names
20
-  my $tags  = $git->tags($project);
21
-%>
22
-
23
-% layout 'common';
24
-  %= include '/include/header', title => 'Tags', project => $project;
25
-  <div class="header">
26
-    <a class="title" href="<%= url_for('tags', project => $project_ns) %>">Tags</a>
27
-  </div>
28
-  %= include '/include/tags', home => $home, project_ns => $project_ns, tags => $tags;