]> git.ipfire.org Git - people/jschlag/pbs.git/commitdiff
source: Remove calling removed function num_commits
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 10 Oct 2017 12:29:44 +0000 (13:29 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 10 Oct 2017 12:29:44 +0000 (13:29 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/templates/distro-source-detail.html
src/templates/modules/source-table.html

index c2618e6b43b0511f54548c01d93bb4d084484212..d395f65e029056c7e1509c644a5ede6ae392c65d 100644 (file)
@@ -47,7 +47,7 @@
                                        </tr>
                                        <tr>
                                                <td>{{ _("Imported commits") }}</td>
-                                               <td>{{ source.num_commits }}</td>
+                                               <td>{{ len(source) }}</td>
                                        </tr>
                                </tbody>
                        </table>
index 2fbff25b0d6fee2821b61c64a59073010c195137..e44fa0ef8a4e7259e2203b1c19ce12d6a64d8a59 100644 (file)
@@ -14,7 +14,7 @@
                                        <br />{{ _("Branch: %s") % source.branch }}
                                </td>
                                <td>
-                                       {{ source.num_commits }}
+                                       {{ len(source) }}
                                </td>
                                <td>
                                        <a href="/distro/{{ distro.identifier }}/source/{{ source.identifier }}/{{ source.head_revision.revision }}">