]> git.ipfire.org Git - pbs.git/commitdiff
web: Drop old repository table
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 24 Jun 2022 14:13:00 +0000 (14:13 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 24 Jun 2022 14:13:00 +0000 (14:13 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Makefile.am
src/templates/modules/repository-table.html [deleted file]
src/web/__init__.py
src/web/ui_modules.py

index ad18b3e135d8882d323cf99a8455c6ccd7b64b9d..0ed857629e8fd6d5d1b864ee3bc83bc03f245f24 100644 (file)
@@ -286,7 +286,6 @@ dist_templates_modules_DATA = \
        src/templates/modules/packages-table.html \
        src/templates/modules/package-table-detail.html \
        src/templates/modules/repo-actions-table.html \
-       src/templates/modules/repository-table.html \
        src/templates/modules/source-table.html \
        src/templates/modules/text.html \
        src/templates/modules/updates-table.html \
diff --git a/src/templates/modules/repository-table.html b/src/templates/modules/repository-table.html
deleted file mode 100644 (file)
index 6a6c815..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-<div class="table-responsive">
-       <table class="table table-striped table-hover">
-               <thead>
-                       <tr>
-                               <th>{{ _("Name") }}</th>
-                               <th>{{ _("No. of builds") }}</th>
-                               <th>{{ _("Enabled for builds") }}</th>
-                       </tr>
-               </thead>
-               <tbody>
-                       {% for repo in repos %}
-                               <tr>
-                                       <td>
-                                               <a href="/distro/{{ distro.slug }}/repo/{{ repo.name }}">{{ repo.name }}</a>
-                                               <br />{{ repo.summary or _("N/A") }}
-                                       </td>
-                                       <td>
-                                               {{ len(repo) }}
-                                       </td>
-                                       <td>
-                                               {% if repo.enabled_for_builds %}
-                                                       {{ _("Yes") }}
-                                               {% else %}
-                                                       {{ _("No") }}
-                                               {% end %}
-                                       </td>
-                               </tr>
-                       {% end %}
-               </tbody>
-       </table>
-</div>
index 5a40f4d5ca09e0ce1b16b00e5719a36e008aaa55..937168d02c39692e91a903f013d4b195e3b6474c 100644 (file)
@@ -78,7 +78,6 @@ class Application(tornado.web.Application):
                                "PackageTable2"      : ui_modules.PackageTable2Module,
                                "PackageHeader"      : ui_modules.PackageHeaderModule,
                                "PackageFilesTable"  : ui_modules.PackageFilesTableModule,
-                               "RepositoryTable"    : ui_modules.RepositoryTableModule,
                                "RepoActionsTable"   : ui_modules.RepoActionsTableModule,
                                "SourceTable"        : ui_modules.SourceTableModule,
                                "UpdatesTable"       : ui_modules.UpdatesTableModule,
index 292e82fc81c69ac0380cfbacf5fcfa183023f7ee..c823acde1faca0c7eafab83c2c0aa989bbb1beb1 100644 (file)
@@ -297,12 +297,6 @@ class JobsListModule(UIModule):
                        show_arch_only=show_arch_only, show_packages=show_packages)
 
 
-class RepositoryTableModule(UIModule):
-       def render(self, distro, repos):
-               return self.render_string("modules/repository-table.html",
-                       distro=distro, repos=repos)
-
-
 class SourceTableModule(UIModule):
        def render(self, distro, sources):
                return self.render_string("modules/source-table.html",