[Pkg-debile-commits] [debile-web] 02/02: Remove dead code
Jon Severinsson
jonno-guest at moszumanska.debian.org
Thu Mar 13 17:48:32 UTC 2014
This is an automated email from the git hooks/post-receive script.
jonno-guest pushed a commit to branch master
in repository debile-web.
commit a1d4b3329cb94872e661392e2043c04d3d9e869e
Author: Jon Severinsson <jon at severinsson.net>
Date: Wed Mar 12 19:18:56 2014 +0100
Remove dead code
---
debileweb/blueprints/frontend.py | 22 ----------------------
templates/fred_build_fragment.html | 14 --------------
templates/package.html | 32 --------------------------------
3 files changed, 68 deletions(-)
diff --git a/debileweb/blueprints/frontend.py b/debileweb/blueprints/frontend.py
index 399cfca..48e7153 100644
--- a/debileweb/blueprints/frontend.py
+++ b/debileweb/blueprints/frontend.py
@@ -46,12 +46,6 @@ from consts import PREFIXES_DEFAULT
frontend = Blueprint('frontend', __name__, template_folder='templates')
- at frontend.app_template_filter('seconds_display')
-def seconds_display(time):
- td = timedelta(seconds=time)
- return naturaldelta(td)
-
-
@frontend.app_template_filter('ago')
def ago_display(when):
if when is None:
@@ -60,22 +54,6 @@ def ago_display(when):
return naturaltime(td)
- at frontend.app_template_filter('location')
-def location_display(obj):
- if obj is None:
- return ""
-
- fo = obj['file']
- po = obj['point']
-
- if po is None:
- return fo['givenpath']
-
- return "%s:%s" % (obj['file']['givenpath'],
- obj['point']['line'])
-
-
-
def get_packages_prefixes():
"""
returns the packages prefixes (a, b, ..., liba, libb, ..., y, z)
diff --git a/templates/fred_build_fragment.html b/templates/fred_build_fragment.html
deleted file mode 100644
index a4a8f0a..0000000
--- a/templates/fred_build_fragment.html
+++ /dev/null
@@ -1,14 +0,0 @@
- <table class = 'zebra'>
- <tr>
- <th>Source</th>
- <th>Version</th>
- <th>Dist</th>
- </tr>
-{% for build in builds %}
- <tr>
- <td>{{build.source}}</td>
- <td>{{build.version}}</td>
- <td>{{build.dist}}</td>
- </tr>
-{% endfor %}
- </table>
diff --git a/templates/package.html b/templates/package.html
deleted file mode 100644
index 3cbf55d..0000000
--- a/templates/package.html
+++ /dev/null
@@ -1,32 +0,0 @@
-{% extends "base.html" %}
-
-{% block title %}Package {{package_name}}{% endblock %}
-
-{% block content %}
-Package <i>{{package_name}}</i> summary
- <table>
- <tr>
- <th>Worker</th>
- <th>Version</th>
- <th>Status</th>
- <th>Results</th>
- </tr>
-{% for pkg in package %}
- <tr>
- <td>
- {{pkg.type}} ({{pkg.arch}}) {% if pkg.subtype != None %} - {{pkg.subtype}} {% endif %}
- </td>
- <td>
- {{pkg.Source.version}}
- </td>
- <td>
- </td>
- <td>
- </td>
-
- </tr>
-
-{% endfor %}
-</table>
-
-{% endblock %}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-debile/debile-web.git
More information about the Pkg-debile-commits
mailing list