]> git.ipfire.org Git - pbs.git/commitdiff
Remove some unused files.
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 28 Oct 2012 19:38:50 +0000 (20:38 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 28 Oct 2012 19:38:50 +0000 (20:38 +0100)
data/templates/build-detail_old.html [deleted file]
data/templates/modules/build-table_old.html [deleted file]
data/templates/package-detail_old.html [deleted file]

diff --git a/data/templates/build-detail_old.html b/data/templates/build-detail_old.html
deleted file mode 100644 (file)
index 7ab1fa6..0000000
+++ /dev/null
@@ -1,151 +0,0 @@
-{% extends "base.html" %}
-
-{% block title %}{{ _("Build") }}: {{ build.name }}{% end block %}
-
-{% block body %}
-       {% if build.type == "binary" %}
-               <h1>{{ _("Build") }}: <a href="/package/{{ build.pkg.name }}/{{ build.pkg.epoch }}/{{ build.pkg.version }}/{{ build.pkg.release }}">{{ build.name }}</a></h1>
-       {% elif build.type == "source" %}
-               <h1>{{ _("Build") }}: {{ build.name }}</h1>
-       {% end %}
-
-       <table class="form form2">
-               <tr>
-                       <td class="col1">{{ _("ID") }}</td>
-                       <td class="col2">{{ build.uuid }}</td>
-               </tr>
-               <tr>
-                       <td class="col1">{{ _("State") }}</td>
-                       <td class="col2">{{ build.state }}</td>
-               </tr>
-
-               {% if build.type == "binary" %}
-                       <tr>
-                               <td class="col1">{{ _("Package") }}</td>
-                               <td class="col2">
-                                       <a href="/package/{{ build.pkg.name }}/{{ build.pkg.epoch }}/{{ build.pkg.version }}/{{ build.pkg.release }}">{{ build.pkg.friendly_name }}</a>
-                               </td>
-                       </tr>
-                       <tr>
-                               <td class="col1">{{ _("Source build") }}</td>
-                               <td class="col2">
-                                       <a href="/build/{{ build.source_build.uuid }}">{{ build.source_build.name }}</a>
-                               </td>
-                       </tr>
-                       <tr>
-                               <td class="col1">{{ _("Architecture") }}</td>
-                               <td class="col2">{{ build.arch }}</td>
-                       </tr>
-               {% end %}
-
-               <tr>
-                       <td class="col1">{{ _("Host") }}</td>
-                       {% if build.host %}
-                               <td class="col2">
-                                       <a href="/builder/{{ build.host.name }}">{{ build.host.name }}</a>
-                               </td>
-                       {% else %}
-                               <td class="col2">{{ _("No host assigned, yet.") }}</td>
-                       {% end %}
-               </tr>
-               <tr>
-                       <td class="col1">
-                               {{ _("Priority") }}
-                       </td>
-                       <td class="col2">
-                               {% if build.priority >= 2 %}
-                                       {{ _("Very high") }}
-                               {% elif build.priority == 1 %}
-                                       {{ _("High") }}
-                               {% elif build.priority == 0 %}
-                                       {{ _("Medium") }}
-                               {% elif build.priority == -1 %}
-                                       {{ _("Low") }}
-                               {% elif build.priority <= -2 %}
-                                       {{ _("Very low") }}
-                               {% end %}
-                       </td>
-               </tr>
-       </table>
-       <div style="clear: both;">&nbsp;</div>
-
-       {% if build.type == "source" %}
-               <h2>{{ _("Commit") }}: {{ escape(build.commit_subject) }}</h2>
-               <table class="form form2">
-                       {% if build.commit_body %}
-                               <tr>
-                                       <td colspan="2">
-                                               {{ escape(build.commit_body) }}
-                                       </td>
-                               </tr>
-                       {% end %}
-                       <tr>
-                               <td class="col1">{{ _("Author") }}</td>
-                               <td class="col2">{{ escape(build.commit_author) }}</td>
-                       </tr>
-                       <tr>
-                               <td class="col1">{{ _("Committer") }}</td>
-                               <td class="col2">{{ escape(build.commit_committer) }}</td>
-                       </tr>
-                       <tr>
-                               <td class="col1">{{ _("Date") }}</td>
-                               <td class="col2">{{ locale.format_date(build.commit_date or 0, full_format=True) }}</td>
-                       </tr>
-               </table>
-               <div style="clear: both;">&nbsp;</div>
-       {% end %}
-
-       <h3>{{ _("Time") }}</h3>
-
-       <table class="form form2">
-               <tr>
-                       <td class="col1">{{ _("Job added") }}</td>
-                       <td class="col2">{{ build.time_added }}</td>
-               </tr>
-               <tr>
-                       <td class="col1">{{ _("Job started") }}</td>
-                       <td class="col2">{{ build.time_started or _("Not started, yet.") }}</td>
-               </tr>
-               <tr>
-                       <td class="col1">{{ _("Job finished") }}</td>
-                       <td class="col2">{{ build.time_finished or _("Not finished, yet.") }}</td>
-               </tr>
-
-               {% if build.duration %}
-                       <tr>
-                               <td class="col1">{{ _("Duration") }}</td>
-                               <td class="col2">{{ build.duration }}</td>
-                       </tr>
-               {% end %}
-       </table>
-       <div style="clear: both;">&nbsp;</div>
-
-       {% if build.packagefiles %}
-               <h3>{{ _("Package files") }}</h3>
-               {{ modules.FilesTable(build.packagefiles) }}
-       {% end %}
-
-       {% if build.logfiles %}
-               <h3>{{ _("Logfiles") }}</h3>
-               {{ modules.FilesTable(build.logfiles) }}
-       {% end %}
-
-       <h3>{{ _("Log") }}</h3>
-       {{ modules.LogTable(build.log) }}
-{% end block %}
-
-{% block sidebar %}
-       <h1>{{ _("Actions") }}</h1>
-       <ul>
-               {% if build.state == "failed" %}
-                       <li><a href="/build/schedule/{{ build.uuid }}?type=rebuild">{{ _("Re-submit build") }}</a></li>
-                       <li><a href="?action=perm_failed">{{ _("Mark as permanently failed") }}</a></li>
-               {% end %}
-
-               {% if build.type == "binary" and build.state == "finished" %}
-                       <li><a href="/build/schedule/{{ build.uuid }}?type=test">{{ _("Schedule test build") }}</a></li>
-               {% end %}
-
-               <li><a href="/build/priority/{{ build.uuid }}">{{ _("Modify priority") }}</a></li>
-       </ul>
-{% end %}
diff --git a/data/templates/modules/build-table_old.html b/data/templates/modules/build-table_old.html
deleted file mode 100644 (file)
index d1e936c..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-<ul class="builds">
-       {% if builds %}
-               {% for build in builds %}
-                       <li>
-                               {% if build.type == "binary" %}
-                                       <a class="build {{ build.state }}"
-                                               href="/package/{{ build.pkg.name }}/{{ build.pkg.epoch }}/{{ build.pkg.version }}/{{ build.pkg.release }}"
-                                       >{{ build.pkg.friendly_name }}</a>.<a href="/build/{{ build.uuid }}">{{ build.arch }}</a>
-                               {% elif build.type == "source" %}
-                                       <a class="build {{ build.state }}" href="/build/{{ build.uuid }}">{{ build.name }}</a>
-                               {% else %}
-                                       {{ _("Unknown build type.") }}
-                               {% end %}
-                       </li>
-               {% end %}
-       {% else %}
-               <li>There are no builds to display.</li>
-       {% end %}
-</ul>
-<div style="clear: both;">&nbsp;</div>
diff --git a/data/templates/package-detail_old.html b/data/templates/package-detail_old.html
deleted file mode 100644 (file)
index e218bd9..0000000
+++ /dev/null
@@ -1,111 +0,0 @@
-{% extends "base.html" %}
-
-{% block title %}{{ _("Package") }}: {{ pkg.friendly_name }}{% end block %}
-
-{% block body %}
-       <h1>{{ _("Package") }}: <a href="/package/{{ pkg.name }}">{{ pkg.name }}</a>-{{ pkg.friendly_version }}</h1>
-
-       <p class="pkg-summary">{{ pkg.description }}</p>
-
-       <table class="form form2">
-               <tr>
-                       <td class="col1">{{ _("URL") }}</td>
-                       <td class="col2">
-                               <a href="{{ pkg.url }}" target="_blank">{{ pkg.url }}</a>
-                       </td>
-               </tr>
-               <tr>
-                       <td class="col1">{{ _("License") }}</td>
-                       <td class="col2">{{ pkg.license }}</td>
-               </tr>
-
-               {% if pkg.maintainer %}
-                       <tr>
-                               <td class="col1">{{ _("Maintainer") }}</td>
-                               <td class="col2">{{ escape(pkg.maintainer) }}</td>
-                       </tr>
-               {% end %}
-
-               <tr>
-                       <td class="col1">{{ _("Supported architectures") }}</td>
-                       <td class="col2">{{ locale.list(pkg.supported_arches) }}</td>
-               </tr>
-       </table>
-       <div style="clear: both;">&nbsp;</div>
-
-       <h2>{{ _("Comments") }}</h2>
-       <p>
-               {{ _("This package got a total credit count of %s credits.") % pkg.credits }}
-       </p>
-
-       {% if current_user %}
-               <p>
-                       <a id="comment-toggle" href="#">{{ _("Add comment") }}</a>
-                       <script>
-                               /* Initially hide the comment area and show it if the user clicks "add comment". */
-                               $(function() {
-                                       $(".add-comment").hide();
-                                       $("#comment-toggle").toggle(
-                                               function() { $(".add-comment").show(); },
-                                               function() { $(".add-comment").hide(); }
-                                       );
-                               });
-                       </script>
-               </p>
-               <div class="add-comment">
-                       <h4>{{ _("Add comment") }}</h4>
-                       <form method="post" action="">
-                               {{ xsrf_form_html() }}
-                               <input type="hidden" name="action" value="comment" />
-                               <table class="form form2">
-                                       <tr>
-                                               <td colspan="2">
-                                                       <textarea name="text" cols="90" rows="6"></textarea>
-                                               </td>
-                                       </tr>
-                                       <tr>
-                                               <td>
-                                                       {% if current_user.is_tester() or current_user.is_admin() %}
-                                                               {{ _("Vote") }}:
-                                                               <input name="vote" type="radio" value="none" selected="selected" />{{ _("Not tested") }}
-                                                               <input name="vote" type="radio" value="up" />{{ _("Works for me") }}
-                                                               <input name="vote" type="radio" value="down" />{{ _("Doesn't work for me") }}
-                                                       {% end %}
-                                               </td>
-                                               <td class="buttons">
-                                                       <input name="submit" type="submit" value="{{ _("Submit") }}" />
-                                               </td>
-                                       </tr>
-                               </table>
-                       </form>
-               </div>
-       {% else %}
-               <p>{{ _("You must be logged in to comment.") }}</p>
-       {% end %}
-       {{ modules.CommentsTable(pkg.comments) }}
-
-       {% if pkg.builds %}
-               <h2>{{ _("Build jobs") }}</h2>
-               {{ modules.BuildTable(pkg.builds) }}
-       {% end %}
-
-       {% if pkg.packagefiles %}
-               <h2>{{ _("Package files") }}</h2>
-               {{ modules.FilesTable(pkg.packagefiles) }}
-       {% end %}
-
-       {% if pkg.logfiles %}
-               <h2>{{ _("Logfiles") }}</h2>
-               {{ modules.FilesTable(pkg.logfiles) }}
-       {% end %}
-
-       <h2>{{ _("Log") }}</h2>
-       {{ modules.LogTable(pkg.log) }}
-{% end block %}
-
-{% block sidebar %}
-       <h1>{{ _("Actions") }}</h1>
-       <ul>
-               <a href="">{{ _("Package is broken") }}</a>
-       </ul>
-{% end block %}