1 |
commit: 5e84cbca6ca8f525703c062f7e824f2c60ed4bc7 |
2 |
Author: Magnus Granberg <zorry <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun May 30 23:16:54 2021 +0000 |
4 |
Commit: Magnus Granberg <zorry <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Sep 24 02:22:49 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/tinderbox-cluster-www.git/commit/?id=5e84cbca |
7 |
|
8 |
Restart |
9 |
|
10 |
Signed-off-by: Magnus Granberg <zorry <AT> gentoo.org> |
11 |
|
12 |
.gitignore | 8 - |
13 |
htdoc/index.html | 8 - |
14 |
python/gosbs/__init__.py | 0 |
15 |
python/gosbs/settings.py.conf | 144 ------- |
16 |
python/gosbs/urls.py | 9 - |
17 |
python/gosbs/wsgi.py | 16 - |
18 |
python/gosbs_auth/__init__.py | 0 |
19 |
python/gosbs_auth/admin.py | 3 - |
20 |
python/gosbs_auth/apps.py | 5 - |
21 |
python/gosbs_auth/migrations/__init__.py | 0 |
22 |
python/gosbs_auth/models.py | 3 - |
23 |
python/gosbs_auth/tests.py | 3 - |
24 |
python/gosbs_auth/urls.py | 11 - |
25 |
python/gosbs_auth/views.py | 3 - |
26 |
python/manage.py | 11 - |
27 |
python/packages/__init__.py | 0 |
28 |
python/packages/admin.py | 3 - |
29 |
python/packages/apps.py | 5 - |
30 |
python/packages/migrations/__init__.py | 0 |
31 |
python/packages/models.py | 188 -------- |
32 |
python/packages/tests.py | 3 - |
33 |
python/packages/urls.py | 7 - |
34 |
python/packages/views.py | 3 - |
35 |
python/projects/__init__.py | 0 |
36 |
python/projects/admin.py | 3 - |
37 |
python/projects/apps.py | 5 - |
38 |
python/projects/forms.py | 7 - |
39 |
python/projects/migrations/__init__.py | 0 |
40 |
python/projects/models.py | 53 --- |
41 |
python/projects/tests.py | 3 - |
42 |
python/projects/urls.py | 11 - |
43 |
python/projects/views.py | 86 ---- |
44 |
python/templates/includes/layout/footer.html | 38 -- |
45 |
.../templates/includes/layout/footer_sitemap.html | 12 - |
46 |
python/templates/includes/layout/head.html | 25 -- |
47 |
python/templates/includes/layout/header.html | 90 ---- |
48 |
python/templates/includes/layout/sponsor.html | 9 - |
49 |
python/templates/layout/base.html | 34 -- |
50 |
.../templates/pages/packages/category/index.html | 33 -- |
51 |
.../pages/packages/ebuilds/ebuild/index.html | 47 -- |
52 |
python/templates/pages/packages/ebuilds/index.html | 30 -- |
53 |
python/templates/pages/packages/index.html | 28 -- |
54 |
python/templates/pages/projects/add/index.html | 8 - |
55 |
python/templates/pages/projects/detail/index.html | 4 - |
56 |
python/templates/pages/projects/index.html | 19 - |
57 |
python/templates/pages/projects/repos/index.html | 31 -- |
58 |
python/templates/pages/www/index.html | 49 --- |
59 |
python/templates/registration/bugzillauser.html | 10 - |
60 |
python/templates/registration/logged_out.html | 5 - |
61 |
python/templates/registration/login.html | 12 - |
62 |
.../registration/password_change_form.html | 13 - |
63 |
python/www/__init__.py | 0 |
64 |
python/www/admin.py | 7 - |
65 |
python/www/apps.py | 5 - |
66 |
python/www/migrations/0001_initial.py | 64 --- |
67 |
python/www/migrations/__init__.py | 0 |
68 |
python/www/models.py | 74 ---- |
69 |
python/www/router.py | 31 -- |
70 |
python/www/tests.py | 3 - |
71 |
python/www/urls.py | 7 - |
72 |
python/www/utils.py | 34 -- |
73 |
python/www/views.py | 19 - |
74 |
sql/gosbs-www.sql | 475 --------------------- |
75 |
static/foo.txt | 0 |
76 |
64 files changed, 1817 deletions(-) |
77 |
|
78 |
diff --git a/.gitignore b/.gitignore |
79 |
deleted file mode 100644 |
80 |
index 7be3859..0000000 |
81 |
--- a/.gitignore |
82 |
+++ /dev/null |
83 |
@@ -1,8 +0,0 @@ |
84 |
-# Backup files |
85 |
-*~ |
86 |
-__pycache__ |
87 |
-# log dir |
88 |
-static/logs |
89 |
-# Python compiled files |
90 |
-*.pyc |
91 |
-python/gosbs/settings.py |
92 |
|
93 |
diff --git a/htdoc/index.html b/htdoc/index.html |
94 |
deleted file mode 100644 |
95 |
index c217ab3..0000000 |
96 |
--- a/htdoc/index.html |
97 |
+++ /dev/null |
98 |
@@ -1,8 +0,0 @@ |
99 |
-<html> |
100 |
- <head> |
101 |
- <title></title> |
102 |
- <meta content=""> |
103 |
- <style></style> |
104 |
- </head> |
105 |
- <body></body> |
106 |
-</html> |
107 |
\ No newline at end of file |
108 |
|
109 |
diff --git a/python/gosbs/__init__.py b/python/gosbs/__init__.py |
110 |
deleted file mode 100644 |
111 |
index e69de29..0000000 |
112 |
|
113 |
diff --git a/python/gosbs/settings.py.conf b/python/gosbs/settings.py.conf |
114 |
deleted file mode 100644 |
115 |
index a2e4330..0000000 |
116 |
--- a/python/gosbs/settings.py.conf |
117 |
+++ /dev/null |
118 |
@@ -1,144 +0,0 @@ |
119 |
-""" |
120 |
-Django settings for gosbs_main project. |
121 |
- |
122 |
-Generated by 'django-admin startproject' using Django 2.2.2. |
123 |
- |
124 |
-For more information on this file, see |
125 |
-https://docs.djangoproject.com/en/2.2/topics/settings/ |
126 |
- |
127 |
-For the full list of settings and their values, see |
128 |
-https://docs.djangoproject.com/en/2.2/ref/settings/ |
129 |
-""" |
130 |
- |
131 |
-import os |
132 |
- |
133 |
-# Build paths inside the project like this: os.path.join(BASE_DIR, ...) |
134 |
-BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) |
135 |
- |
136 |
- |
137 |
-# Quick-start development settings - unsuitable for production |
138 |
-# See https://docs.djangoproject.com/en/2.2/howto/deployment/checklist/ |
139 |
- |
140 |
-# SECURITY WARNING: keep the secret key used in production secret! |
141 |
-SECRET_KEY = 'r*^^p)w%5h+tc#87!4!d@e196lf$a_&rz)^!*pziw!&5#jjb$a' |
142 |
- |
143 |
-# SECURITY WARNING: don't run with debug turned on in production! |
144 |
-DEBUG = True |
145 |
- |
146 |
-ALLOWED_HOSTS = [] |
147 |
- |
148 |
- |
149 |
-# Application definition |
150 |
- |
151 |
-INSTALLED_APPS = [ |
152 |
- 'django.contrib.admin', |
153 |
- 'django.contrib.auth', |
154 |
- 'django.contrib.contenttypes', |
155 |
- 'django.contrib.sessions', |
156 |
- 'django.contrib.messages', |
157 |
- 'django.contrib.staticfiles', |
158 |
- 'www.apps.WwwConfig', |
159 |
- 'gosbs_auth.apps.AuthConfig', |
160 |
- 'packages.apps.PackagesConfig', |
161 |
- 'projects.apps.ProjectsConfig', |
162 |
-] |
163 |
- |
164 |
-MIDDLEWARE = [ |
165 |
- 'django.middleware.security.SecurityMiddleware', |
166 |
- 'django.contrib.sessions.middleware.SessionMiddleware', |
167 |
- 'django.middleware.common.CommonMiddleware', |
168 |
- 'django.middleware.csrf.CsrfViewMiddleware', |
169 |
- 'django.contrib.auth.middleware.AuthenticationMiddleware', |
170 |
- 'django.contrib.messages.middleware.MessageMiddleware', |
171 |
- 'django.middleware.clickjacking.XFrameOptionsMiddleware', |
172 |
-] |
173 |
- |
174 |
-ROOT_URLCONF = 'gosbs.urls' |
175 |
- |
176 |
-TEMPLATES = [ |
177 |
- { |
178 |
- 'BACKEND': 'django.template.backends.django.DjangoTemplates', |
179 |
- 'DIRS': [os.path.join(BASE_DIR, 'templates')], |
180 |
- 'APP_DIRS': True, |
181 |
- 'OPTIONS': { |
182 |
- 'context_processors': [ |
183 |
- 'django.template.context_processors.debug', |
184 |
- 'django.template.context_processors.request', |
185 |
- 'django.contrib.auth.context_processors.auth', |
186 |
- 'django.contrib.messages.context_processors.messages', |
187 |
- ], |
188 |
- }, |
189 |
- }, |
190 |
-] |
191 |
- |
192 |
-WSGI_APPLICATION = 'gosbs.wsgi.application' |
193 |
- |
194 |
- |
195 |
-# Database |
196 |
-# https://docs.djangoproject.com/en/2.2/ref/settings/#databases |
197 |
- |
198 |
-DATABASES = { |
199 |
- 'default': { |
200 |
- 'ENGINE': 'django.db.backends.mysql', |
201 |
- 'NAME': 'gosbs-www', |
202 |
- 'USER': 'gosbs-www', |
203 |
- 'PASSWORD': 'X', |
204 |
- 'HOST': '192.168.1.X', |
205 |
- 'PORT': '', |
206 |
- 'OPTIONS' : { |
207 |
- 'init_command': "SET sql_mode='STRICT_TRANS_TABLES'", |
208 |
- 'isolation_level': "read committed", |
209 |
- }, |
210 |
- }, |
211 |
- 'gosbs': { |
212 |
- 'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'. |
213 |
- 'NAME': 'gosbs', # Or path to database file if using sqlite3. |
214 |
- 'USER': 'gosbs', # Not used with sqlite3. |
215 |
- 'PASSWORD': 'X', # Not used with sqlite3. |
216 |
- 'HOST': '192.168.1.X', # Set to empty string for localhost. Not used with sqlite3. |
217 |
- 'PORT': '', # Set to empty string for default. Not used with sqlite3. |
218 |
- 'OPTIONS' : { |
219 |
- 'init_command': "SET sql_mode='STRICT_TRANS_TABLES'", |
220 |
- 'isolation_level': "read committed", |
221 |
- }, |
222 |
- } |
223 |
-} |
224 |
-DATABASE_ROUTERS = ['www.router.GosbsRouter'] |
225 |
- |
226 |
-# Password validation |
227 |
-# https://docs.djangoproject.com/en/2.2/ref/settings/#auth-password-validators |
228 |
- |
229 |
-AUTH_PASSWORD_VALIDATORS = [ |
230 |
- { |
231 |
- 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator', |
232 |
- }, |
233 |
- { |
234 |
- 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator', |
235 |
- }, |
236 |
- { |
237 |
- 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator', |
238 |
- }, |
239 |
- { |
240 |
- 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator', |
241 |
- }, |
242 |
-] |
243 |
- |
244 |
- |
245 |
-# Internationalization |
246 |
-# https://docs.djangoproject.com/en/2.2/topics/i18n/ |
247 |
- |
248 |
-LANGUAGE_CODE = 'en-us' |
249 |
- |
250 |
-TIME_ZONE = 'Europe/Stockholm' |
251 |
- |
252 |
-USE_I18N = True |
253 |
- |
254 |
-USE_L10N = True |
255 |
- |
256 |
-USE_TZ = True |
257 |
- |
258 |
- |
259 |
-# Static files (CSS, JavaScript, Images) |
260 |
-# https://docs.djangoproject.com/en/2.2/howto/static-files/ |
261 |
- |
262 |
-STATIC_URL = '/static/' |
263 |
|
264 |
diff --git a/python/gosbs/urls.py b/python/gosbs/urls.py |
265 |
deleted file mode 100644 |
266 |
index f87286f..0000000 |
267 |
--- a/python/gosbs/urls.py |
268 |
+++ /dev/null |
269 |
@@ -1,9 +0,0 @@ |
270 |
-from django.contrib import admin |
271 |
-from django.urls import include, path |
272 |
- |
273 |
-urlpatterns = [ |
274 |
- path('www/', include('www.urls')), |
275 |
- path('auth/', include('gosbs_auth.urls')), |
276 |
- path('projects/', include('projects.urls', namespace="projects")), |
277 |
- path('admin/', admin.site.urls), |
278 |
-] |
279 |
|
280 |
diff --git a/python/gosbs/wsgi.py b/python/gosbs/wsgi.py |
281 |
deleted file mode 100644 |
282 |
index 4d2fab7..0000000 |
283 |
--- a/python/gosbs/wsgi.py |
284 |
+++ /dev/null |
285 |
@@ -1,16 +0,0 @@ |
286 |
-""" |
287 |
-WSGI config for gosbs_main project. |
288 |
- |
289 |
-It exposes the WSGI callable as a module-level variable named ``application``. |
290 |
- |
291 |
-For more information on this file, see |
292 |
-https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/ |
293 |
-""" |
294 |
- |
295 |
-import os |
296 |
- |
297 |
-from django.core.wsgi import get_wsgi_application |
298 |
- |
299 |
-os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'gosbs.settings') |
300 |
- |
301 |
-application = get_wsgi_application() |
302 |
|
303 |
diff --git a/python/gosbs_auth/__init__.py b/python/gosbs_auth/__init__.py |
304 |
deleted file mode 100644 |
305 |
index e69de29..0000000 |
306 |
|
307 |
diff --git a/python/gosbs_auth/admin.py b/python/gosbs_auth/admin.py |
308 |
deleted file mode 100644 |
309 |
index 8c38f3f..0000000 |
310 |
--- a/python/gosbs_auth/admin.py |
311 |
+++ /dev/null |
312 |
@@ -1,3 +0,0 @@ |
313 |
-from django.contrib import admin |
314 |
- |
315 |
-# Register your models here. |
316 |
|
317 |
diff --git a/python/gosbs_auth/apps.py b/python/gosbs_auth/apps.py |
318 |
deleted file mode 100644 |
319 |
index d6b5700..0000000 |
320 |
--- a/python/gosbs_auth/apps.py |
321 |
+++ /dev/null |
322 |
@@ -1,5 +0,0 @@ |
323 |
-from django.apps import AppConfig |
324 |
- |
325 |
- |
326 |
-class AuthConfig(AppConfig): |
327 |
- name = 'gosbs_auth' |
328 |
|
329 |
diff --git a/python/gosbs_auth/migrations/__init__.py b/python/gosbs_auth/migrations/__init__.py |
330 |
deleted file mode 100644 |
331 |
index e69de29..0000000 |
332 |
|
333 |
diff --git a/python/gosbs_auth/models.py b/python/gosbs_auth/models.py |
334 |
deleted file mode 100644 |
335 |
index 71a8362..0000000 |
336 |
--- a/python/gosbs_auth/models.py |
337 |
+++ /dev/null |
338 |
@@ -1,3 +0,0 @@ |
339 |
-from django.db import models |
340 |
- |
341 |
-# Create your models here. |
342 |
|
343 |
diff --git a/python/gosbs_auth/tests.py b/python/gosbs_auth/tests.py |
344 |
deleted file mode 100644 |
345 |
index 7ce503c..0000000 |
346 |
--- a/python/gosbs_auth/tests.py |
347 |
+++ /dev/null |
348 |
@@ -1,3 +0,0 @@ |
349 |
-from django.test import TestCase |
350 |
- |
351 |
-# Create your tests here. |
352 |
|
353 |
diff --git a/python/gosbs_auth/urls.py b/python/gosbs_auth/urls.py |
354 |
deleted file mode 100644 |
355 |
index 090f9bc..0000000 |
356 |
--- a/python/gosbs_auth/urls.py |
357 |
+++ /dev/null |
358 |
@@ -1,11 +0,0 @@ |
359 |
-from django.urls import path |
360 |
- |
361 |
-from django.contrib.auth import views as auth_views |
362 |
- |
363 |
-urlpatterns = [ |
364 |
- path('login/', auth_views.LoginView.as_view()), |
365 |
- path('logout/', auth_views.LogoutView.as_view(next_page = '/www/')), |
366 |
- path('password_change/', auth_views.PasswordChangeView.as_view()), |
367 |
- path('password_change/done', auth_views.PasswordChangeDoneView.as_view()), |
368 |
- #path('password_reset/', auth_views.PasswordResetView.as_()), |
369 |
-] |
370 |
|
371 |
diff --git a/python/gosbs_auth/views.py b/python/gosbs_auth/views.py |
372 |
deleted file mode 100644 |
373 |
index 91ea44a..0000000 |
374 |
--- a/python/gosbs_auth/views.py |
375 |
+++ /dev/null |
376 |
@@ -1,3 +0,0 @@ |
377 |
-from django.shortcuts import render |
378 |
- |
379 |
-# Create your views here. |
380 |
|
381 |
diff --git a/python/manage.py b/python/manage.py |
382 |
deleted file mode 100644 |
383 |
index 211c4ab..0000000 |
384 |
--- a/python/manage.py |
385 |
+++ /dev/null |
386 |
@@ -1,11 +0,0 @@ |
387 |
-#!/usr/bin/env python |
388 |
-# |
389 |
-# Copyright 1998-2015 Gentoo Foundation |
390 |
-# Distributed under the terms of the GNU General Public License v2 |
391 |
-import os |
392 |
-import sys |
393 |
- |
394 |
-if __name__ == "__main__": |
395 |
- os.environ.setdefault("DJANGO_SETTINGS_MODULE", "gosbs.settings") |
396 |
- from django.core.management import execute_from_command_line |
397 |
- execute_from_command_line(sys.argv) |
398 |
|
399 |
diff --git a/python/packages/__init__.py b/python/packages/__init__.py |
400 |
deleted file mode 100644 |
401 |
index e69de29..0000000 |
402 |
|
403 |
diff --git a/python/packages/admin.py b/python/packages/admin.py |
404 |
deleted file mode 100644 |
405 |
index 8c38f3f..0000000 |
406 |
--- a/python/packages/admin.py |
407 |
+++ /dev/null |
408 |
@@ -1,3 +0,0 @@ |
409 |
-from django.contrib import admin |
410 |
- |
411 |
-# Register your models here. |
412 |
|
413 |
diff --git a/python/packages/apps.py b/python/packages/apps.py |
414 |
deleted file mode 100644 |
415 |
index 8bc7b4d..0000000 |
416 |
--- a/python/packages/apps.py |
417 |
+++ /dev/null |
418 |
@@ -1,5 +0,0 @@ |
419 |
-from django.apps import AppConfig |
420 |
- |
421 |
- |
422 |
-class PackagesConfig(AppConfig): |
423 |
- name = 'packages' |
424 |
|
425 |
diff --git a/python/packages/migrations/__init__.py b/python/packages/migrations/__init__.py |
426 |
deleted file mode 100644 |
427 |
index e69de29..0000000 |
428 |
|
429 |
diff --git a/python/packages/models.py b/python/packages/models.py |
430 |
deleted file mode 100644 |
431 |
index 943ffe5..0000000 |
432 |
--- a/python/packages/models.py |
433 |
+++ /dev/null |
434 |
@@ -1,188 +0,0 @@ |
435 |
-import uuid |
436 |
-from django.db import models |
437 |
- |
438 |
-StatusEnum = models.TextChoices('StatusEnum', 'failed completed in-progress waiting') |
439 |
- |
440 |
-class Repos(models.Model): |
441 |
- RepoType = models.TextChoices('RepoType', 'project ebuild') |
442 |
- uuid = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False, db_column='uuid') |
443 |
- name = models.CharField(max_length=255) |
444 |
- status = models.CharField(max_length=255, choices=StatusEnum.choices, default='waiting', blank=True) |
445 |
- description = models.TextField() |
446 |
- src_url = models.URLField() |
447 |
- auto = models.BooleanField(default=False) |
448 |
- repo_type = models.CharField(max_length=255, choices=RepoType.choices, default='ebuild', blank=True) |
449 |
- created_at = models.DateTimeField(auto_now_add=True) |
450 |
- updated_at = models.DateTimeField(auto_now=True) |
451 |
- deleted_at = models.DateTimeField(auto_now=True) |
452 |
- deleted = models.BooleanField(default=False) |
453 |
- |
454 |
- class Meta: |
455 |
- db_table = 'repos' |
456 |
- def __str__(self): |
457 |
- return '%s %s %s %s %s %s %s %s %s %s %s %s %s' % (self.uuid, self.name, self.status, self.mirror_status, self.local_status, self.description, self.src_url, self.auto, self.repo_type, self.created_at, self.updated_at, self.deleted_at, self.deleted) |
458 |
- |
459 |
- def soft_delete(self): |
460 |
- self.deleted = True |
461 |
- self.save() |
462 |
- |
463 |
-class Categories(models.Model): |
464 |
- uuid = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False) |
465 |
- name = models.CharField(max_length=255) |
466 |
- status = models.CharField(max_length=255, choices=StatusEnum.choices, default='waiting', blank=True) |
467 |
- created_at = models.DateTimeField(auto_now_add=True) |
468 |
- updated_at = models.DateTimeField(auto_now=True) |
469 |
- deleted_at = models.DateTimeField(auto_now=True) |
470 |
- deleted = models.BooleanField(default=False) |
471 |
- class Meta: |
472 |
- db_table = 'categories' |
473 |
- def __str__(self): |
474 |
- return '%s %s %s %s' % (self.uuid, self.name, self.status, self.deleted) |
475 |
- |
476 |
- def soft_delete(self): |
477 |
- self.deleted = True |
478 |
- self.save() |
479 |
-class CategoriesMetadata(models.Model): |
480 |
- id = models.IntegerField(primary_key=True) |
481 |
- category_uuid = models.ForeignKey(Categories, on_delete=models.CASCADE) |
482 |
- description = models.CharField(max_length=200) |
483 |
- checksum = models.CharField(max_length=255) |
484 |
- class Meta: |
485 |
- db_table = 'categories_metadata' |
486 |
- def __str__(self): |
487 |
- return '%s %s %s %s %s %s %s %s %s %s' % (self.id, self.uuid, self.description, self.checksum) |
488 |
- |
489 |
-class Packages(models.Model): |
490 |
- uuid = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False) |
491 |
- name = models.CharField(max_length=255) |
492 |
- status = models.CharField(max_length=255, choices=StatusEnum.choices, default='waiting', blank=True) |
493 |
- category_uuid = models.ForeignKey(Categories, on_delete=models.CASCADE) |
494 |
- repo_uuid = models.ForeignKey(Repos, on_delete=models.CASCADE) |
495 |
- created_at = models.DateTimeField(auto_now_add=True) |
496 |
- updated_at = models.DateTimeField(auto_now=True) |
497 |
- deleted_at = models.DateTimeField(auto_now=True) |
498 |
- deleted = models.BooleanField(default=False) |
499 |
- class Meta: |
500 |
- db_table = 'packages' |
501 |
- def __str__(self): |
502 |
- return '%s %s %s %s %s %s' % (self.uuid, self.name, self.status, self.category_uuid, self.repo_uuid, self.deleted) |
503 |
- |
504 |
- def soft_delete(self): |
505 |
- self.deleted = True |
506 |
- self.save() |
507 |
- |
508 |
-class PackagesMetadata(models.Model): |
509 |
- id = models.IntegerField(primary_key=True) |
510 |
- package_uuid = models.ForeignKey(Packages, on_delete=models.CASCADE) |
511 |
- gitlog = models.TextField() |
512 |
- descriptions = models.TextField() |
513 |
- checksum = models.CharField(max_length=255) |
514 |
- class Meta: |
515 |
- db_table = 'packages_metadata' |
516 |
- def __str__(self): |
517 |
- return '%s %s %s %s' % (self.id, self.package_uuid, self.gitlog, self.descriptions, self.checksum) |
518 |
- |
519 |
-class Emails(models.Model): |
520 |
- id = models.IntegerField(primary_key=True) |
521 |
- email = models.CharField(max_length=150) |
522 |
- class Meta: |
523 |
- db_table = 'emails' |
524 |
- def __str__(self): |
525 |
- return '%s %s' % (self.id, self.email) |
526 |
- |
527 |
-class PackagesEmails(models.Model): |
528 |
- id = models.IntegerField(primary_key=True) |
529 |
- package_uuid = models.ForeignKey(Packages, on_delete=models.CASCADE) |
530 |
- email_id = models.ForeignKey(Emails, on_delete=models.CASCADE) |
531 |
- class Meta: |
532 |
- db_table = 'packages_emails' |
533 |
- def __str__(self): |
534 |
- return '%s %s %s %s' % (self.id, self.package_uuid, self.email_id) |
535 |
- |
536 |
-class Ebuilds(models.Model): |
537 |
- uuid = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False) |
538 |
- version = models.CharField(max_length=20) |
539 |
- package_uuid = models.ForeignKey(Packages, on_delete=models.CASCADE) |
540 |
- checksum = models.CharField(max_length=100) |
541 |
- status = models.CharField(max_length=255, choices=StatusEnum.choices, default='waiting', blank=True) |
542 |
- created_at = models.DateTimeField(auto_now_add=True) |
543 |
- updated_at = models.DateTimeField(auto_now=True) |
544 |
- deleted_at = models.DateTimeField(auto_now=True) |
545 |
- deleted = models.BooleanField(default=False) |
546 |
- class Meta: |
547 |
- db_table = 'ebuilds' |
548 |
- def __str__(self): |
549 |
- return '%s %s %s %s %s %s %s' % (self.uuid, self.version, self.package_uuid, self.checksum, self.status self.deleted) |
550 |
- |
551 |
- def soft_delete(self): |
552 |
- self.deleted = True |
553 |
- self.save() |
554 |
- |
555 |
-class EbuildsMetadata(models.Model): |
556 |
- id = models.IntegerField(primary_key=True) |
557 |
- ebuild_uuid = models.ForeignKey(Ebuilds, on_delete=models.CASCADE) |
558 |
- commit = models.CharField(max_length=30) |
559 |
- commit_msg = models.CharField(max_length=200) |
560 |
- description = models.CharField(max_length=200) |
561 |
- slot = models.CharField(max_length=10) |
562 |
- homepage = models.CharField(max_length=200) |
563 |
- license = models.CharField(max_length=200) |
564 |
- class Meta: |
565 |
- db_table = 'ebuilds_metadata' |
566 |
- def __str__(self): |
567 |
- return '%s %s %s %s %s %s %s %s' % (self.id, self.uuid, self.commit, self.commit_msg, self.description, self.slot, self.homepage, self.license) |
568 |
- |
569 |
-class Uses(models.Model): |
570 |
- id = models.IntegerField(primary_key=True) |
571 |
- flag = models.CharField(max_length=150) |
572 |
- description = models.CharField(max_length=200) |
573 |
- class Meta: |
574 |
- db_table = 'uses' |
575 |
- def __str__(self): |
576 |
- return '%s %s %s' % (self.id, self.flag, self.description) |
577 |
- |
578 |
-class Keywords(models.Model): |
579 |
- id = models.IntegerField(primary_key=True) |
580 |
- keyword = models.CharField(max_length=45) |
581 |
- class Meta: |
582 |
- db_table = 'keywords' |
583 |
- def __str__(self): |
584 |
- return '%s %s %s' % (self.id, self.keyword) |
585 |
- |
586 |
-class Restrictions(models.Model): |
587 |
- id = models.IntegerField(primary_key=True) |
588 |
- restriction = models.CharField(max_length=150) |
589 |
- class Meta: |
590 |
- db_table = 'restrictions' |
591 |
- def __str__(self): |
592 |
- return '%s %s %s' % (self.id, self.restriction) |
593 |
- |
594 |
-class EbuildsKeywords(models.Model): |
595 |
- KeywordEnum = models.TextChoices('KeywordEnum', 'stable unstable negative') |
596 |
- id = models.IntegerField(primary_key=True) |
597 |
- ebuild_uuid = models.ForeignKey(Ebuilds) |
598 |
- keyword_id = models.ForeignKey(Keywords) |
599 |
- status = models.CharField(max_length=24 blank=True, choices=KeywordEnum.choices) |
600 |
- class Meta: |
601 |
- db_table = 'ebuilds_keywords' |
602 |
- def __str__(self): |
603 |
- return '%s %s %s' % (self.ebuild_uuid, self.keyword_id, self.status) |
604 |
- |
605 |
-class EbuildsIuse(models.Model): |
606 |
- id = models.IntegerField(primary_key=True) |
607 |
- ebuild_uuid = models.ForeignKey(Ebuilds) |
608 |
- use_id = models.ForeignKey(Uses) |
609 |
- status =models.BooleanField(default=False) |
610 |
- class Meta: |
611 |
- db_table = 'ebuilds_iuse' |
612 |
- def __str__(self): |
613 |
- return '%s %s %s %s' % (self.id, self.ebuild_uuid, self.use_id, self.status) |
614 |
- |
615 |
-class EbuildsRestrictions(models.Model): |
616 |
- id = models.IntegerField(primary_key=True) |
617 |
- ebuild_uuid = models.ForeignKey(Ebuilds) |
618 |
- restriction_id = models.ForeignKey(Restrictions) |
619 |
- class Meta: |
620 |
- db_table = 'ebuilds_restrictions' |
621 |
- def __str__(self): |
622 |
- return '%s %s' % (self.ebuild_uuid, self.restriction_id) |
623 |
|
624 |
diff --git a/python/packages/tests.py b/python/packages/tests.py |
625 |
deleted file mode 100644 |
626 |
index 7ce503c..0000000 |
627 |
--- a/python/packages/tests.py |
628 |
+++ /dev/null |
629 |
@@ -1,3 +0,0 @@ |
630 |
-from django.test import TestCase |
631 |
- |
632 |
-# Create your tests here. |
633 |
|
634 |
diff --git a/python/packages/urls.py b/python/packages/urls.py |
635 |
deleted file mode 100644 |
636 |
index 88a9cac..0000000 |
637 |
--- a/python/packages/urls.py |
638 |
+++ /dev/null |
639 |
@@ -1,7 +0,0 @@ |
640 |
-from django.urls import path |
641 |
- |
642 |
-from . import views |
643 |
- |
644 |
-urlpatterns = [ |
645 |
- path('', views.index, name='index'), |
646 |
-] |
647 |
|
648 |
diff --git a/python/packages/views.py b/python/packages/views.py |
649 |
deleted file mode 100644 |
650 |
index 91ea44a..0000000 |
651 |
--- a/python/packages/views.py |
652 |
+++ /dev/null |
653 |
@@ -1,3 +0,0 @@ |
654 |
-from django.shortcuts import render |
655 |
- |
656 |
-# Create your views here. |
657 |
|
658 |
diff --git a/python/projects/__init__.py b/python/projects/__init__.py |
659 |
deleted file mode 100644 |
660 |
index e69de29..0000000 |
661 |
|
662 |
diff --git a/python/projects/admin.py b/python/projects/admin.py |
663 |
deleted file mode 100644 |
664 |
index 8c38f3f..0000000 |
665 |
--- a/python/projects/admin.py |
666 |
+++ /dev/null |
667 |
@@ -1,3 +0,0 @@ |
668 |
-from django.contrib import admin |
669 |
- |
670 |
-# Register your models here. |
671 |
|
672 |
diff --git a/python/projects/apps.py b/python/projects/apps.py |
673 |
deleted file mode 100644 |
674 |
index 3ef44de..0000000 |
675 |
--- a/python/projects/apps.py |
676 |
+++ /dev/null |
677 |
@@ -1,5 +0,0 @@ |
678 |
-from django.apps import AppConfig |
679 |
- |
680 |
- |
681 |
-class ProjectsConfig(AppConfig): |
682 |
- name = 'projects' |
683 |
|
684 |
diff --git a/python/projects/forms.py b/python/projects/forms.py |
685 |
deleted file mode 100644 |
686 |
index 7c96ffe..0000000 |
687 |
--- a/python/projects/forms.py |
688 |
+++ /dev/null |
689 |
@@ -1,7 +0,0 @@ |
690 |
-from django import forms |
691 |
-from .models import Projects |
692 |
- |
693 |
-class NewProjectForm(forms.ModelForm): |
694 |
- class Meta: |
695 |
- model = Projects |
696 |
- fields = ['name', 'title', 'description', 'text', 'active', 'status', 'public'] |
697 |
|
698 |
diff --git a/python/projects/migrations/__init__.py b/python/projects/migrations/__init__.py |
699 |
deleted file mode 100644 |
700 |
index e69de29..0000000 |
701 |
|
702 |
diff --git a/python/projects/models.py b/python/projects/models.py |
703 |
deleted file mode 100644 |
704 |
index 5d58109..0000000 |
705 |
--- a/python/projects/models.py |
706 |
+++ /dev/null |
707 |
@@ -1,53 +0,0 @@ |
708 |
-import uuid |
709 |
-from django.db import models |
710 |
-from packages.models import Repos |
711 |
- |
712 |
-StatusEnum = models.TextChoices('StatusEnum', 'failed completed in-progress waiting') |
713 |
- |
714 |
-class Projects(models.Model): |
715 |
- uuid = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False) |
716 |
- name = models.CharField(max_length=255) |
717 |
- active = models.BooleanField(default=False) |
718 |
- auto = models.BooleanField(default=False) |
719 |
- created_at = models.DateTimeField(auto_now_add=True) |
720 |
- updated_at = models.DateTimeField(auto_now=True) |
721 |
- deleted_at = models.DateTimeField(auto_now=True) |
722 |
- deleted = models.BooleanField(default=False) |
723 |
- |
724 |
- class Meta: |
725 |
- db_table = 'projects' |
726 |
- def __str__(self): |
727 |
- return '%s %s %s %s %s' % (self.uuid, self.name, self.active, self.auto, self.deleted) |
728 |
- |
729 |
- def soft_delete(self): |
730 |
- self.deleted = True |
731 |
- self.save() |
732 |
- |
733 |
-class ProjectsMetadata(models.Model): |
734 |
- id = models.IntegerField(primary_key=True) |
735 |
- title = models.CharField(max_length=255) |
736 |
- description = models.TextField() |
737 |
- project_uuid = models.ForeignKey(Projects, on_delete=models.CASCADE) |
738 |
- project_repos_uuid = models.ForeignKey(Repos, on_delete=models.CASCADE) |
739 |
- project_profile = models.CharField(max_length=255) |
740 |
- project_profile_repos_uuid = models.ForeignKey(Repos, on_delete=models.CASCADE) |
741 |
- class Meta: |
742 |
- db_table = 'projects_metadata' |
743 |
- def __str__(self): |
744 |
- return '%s %s %s %s %s %s %s' % (self.id, self.title, self.description, self.project_uuid, self.project_repos_uuid, self.project_profile, self.project_profile_repos_uuid) |
745 |
- |
746 |
-class ProjectsRepos(models.Model): |
747 |
- id = models.IntegerField(primary_key=True) |
748 |
- project_uuid = models.ForeignKey(Projects, on_delete=models.CASCADE) |
749 |
- repo_uuid = models.ForeignKey(Repos, on_delete=models.CASCADE) |
750 |
- test = models.BooleanField(default=False) |
751 |
- repoman = models.BooleanField(default=False) |
752 |
- qa = models.BooleanField(default=False) |
753 |
- build = models.BooleanField(default=False) |
754 |
- auto = models.BooleanField(default=False) |
755 |
- depclean = models.BooleanField(default=False) |
756 |
- |
757 |
- class Meta: |
758 |
- db_table = 'projects_repos' |
759 |
- def __str__(self): |
760 |
- return '%s %s %s %s' % (self.id, self.project_uuid, self.repo_uuid, self.test, self.repoman, self.qa, self.build, self.auto, self.depclean) |
761 |
|
762 |
diff --git a/python/projects/tests.py b/python/projects/tests.py |
763 |
deleted file mode 100644 |
764 |
index 7ce503c..0000000 |
765 |
--- a/python/projects/tests.py |
766 |
+++ /dev/null |
767 |
@@ -1,3 +0,0 @@ |
768 |
-from django.test import TestCase |
769 |
- |
770 |
-# Create your tests here. |
771 |
|
772 |
diff --git a/python/projects/urls.py b/python/projects/urls.py |
773 |
deleted file mode 100644 |
774 |
index a6abd09..0000000 |
775 |
--- a/python/projects/urls.py |
776 |
+++ /dev/null |
777 |
@@ -1,11 +0,0 @@ |
778 |
-from django.urls import path |
779 |
- |
780 |
-from . import views |
781 |
- |
782 |
-app_name = 'projects' |
783 |
-urlpatterns = [ |
784 |
- path('', views.index, name='index'), |
785 |
- path('add/', views.add, name='add'), |
786 |
- path('<uuid:project_uuid>/detail/', views.detail, name='detail'), |
787 |
- path('<uuid:project_uuid>/repos/', views.repos, name='repos'), |
788 |
-] |
789 |
|
790 |
diff --git a/python/projects/views.py b/python/projects/views.py |
791 |
deleted file mode 100644 |
792 |
index 522da80..0000000 |
793 |
--- a/python/projects/views.py |
794 |
+++ /dev/null |
795 |
@@ -1,86 +0,0 @@ |
796 |
-from django.shortcuts import render |
797 |
-from django.http import HttpResponseRedirect |
798 |
- |
799 |
-from www.utils import default_siteinfo |
800 |
-from .models import Projects |
801 |
-from .forms import NewProjectForm |
802 |
- |
803 |
-def index(request): |
804 |
- menyrequest = 'projects' |
805 |
- siteinfo = default_siteinfo(request, menyrequest) |
806 |
- for meny in siteinfo['submenys']: |
807 |
- if meny.title == 'Add': |
808 |
- meny.view = True |
809 |
- else: |
810 |
- meny.view = False |
811 |
- siteinfo['subactivemeny'] = False |
812 |
- siteinfo['Projects'] = Projects.objects.all() |
813 |
- htmlrequest = 'pages/' + menyrequest + '/index.html' |
814 |
- return render(request, htmlrequest, siteinfo) |
815 |
- |
816 |
-def detail(request, project_uuid): |
817 |
- menyrequest = 'projects' |
818 |
- submenyrequest = 'detail' |
819 |
- siteinfo = default_siteinfo(request, menyrequest) |
820 |
- for meny in siteinfo['submenys']: |
821 |
- if meny.title == 'Add': |
822 |
- meny.view = True |
823 |
- if meny.title == 'Edit': |
824 |
- meny.view = True |
825 |
- siteinfo['subactivemeny'] = submenyrequest |
826 |
- siteinfo['Projects'] = Projects.objects.get(uuid = project_uuid) |
827 |
- htmlrequest = 'pages/' + menyrequest + '/' + submenyrequest + '/index.html' |
828 |
- return render(request, htmlrequest, siteinfo) |
829 |
- |
830 |
-def add(request): |
831 |
- if request.method == 'POST': |
832 |
- # create a form instance and populate it with data from the request: |
833 |
- form = NewProjectForm(request.POST) |
834 |
- # check whether it's valid: |
835 |
- if form.is_valid(): |
836 |
- # process the data in form.cleaned_data as required |
837 |
- # ... |
838 |
- # redirect to a new URL: |
839 |
- a = form.save() |
840 |
- project = Projects.objects.get(name=a.name) |
841 |
- print(project) |
842 |
- detail(request, project.uuid) |
843 |
- else: |
844 |
- menyrequest = 'projects' |
845 |
- submenyrequest = 'add' |
846 |
- siteinfo = default_siteinfo(request, menyrequest) |
847 |
- siteinfo['Form'] = NewProjectForm() |
848 |
- for meny in siteinfo['submenys']: |
849 |
- if meny.title == 'Add': |
850 |
- meny.view = True |
851 |
- if meny.title == 'Edit': |
852 |
- meny.view = False |
853 |
- siteinfo['subactivemeny'] = submenyrequest |
854 |
- htmlrequest = 'pages/' + menyrequest + '/' + submenyrequest + '/index.html' |
855 |
- return render(request, htmlrequest, siteinfo) |
856 |
- |
857 |
-def repos(request, project_uuid): |
858 |
- menyrequest = 'projects' |
859 |
- submenyrequest = 'repos' |
860 |
- siteinfo = default_siteinfo(request, menyrequest) |
861 |
- for meny in siteinfo['subpages']: |
862 |
- if meny.title == 'Add': |
863 |
- meny.view = True |
864 |
- if meny.title == 'Edit': |
865 |
- meny.view = True |
866 |
- siteinfo['subactivemeny'] = submenyrequest |
867 |
- siteinfo['Project'] = Projects.objects.filter(uuid = project_uuid) |
868 |
- siteinfo['Projects_repos_e'] = ProjectsRepos.objects.filter(project__uuid = project_uuid).filter(repo__type ='ebuild') |
869 |
- siteinfo['Projects_repos_p'] = ProjectsRepos.objects.filter(project__uuid = project_uuid).filter(repo__type ='project') |
870 |
- htmlrequest = 'pages/' + menyrequest + '/' + submenyrequest + '/index.html' |
871 |
- return render(request, htmlrequest, siteinfo) |
872 |
- |
873 |
-def requests(request, project_uuid): |
874 |
- menyrequest = 'projects' |
875 |
- submenyrequest = 'requests' |
876 |
- siteinfo = default_siteinfo(request, menyrequest) |
877 |
- |
878 |
-def users(request, project_uuid): |
879 |
- menyrequest = 'projects' |
880 |
- submenyrequest = 'users' |
881 |
- siteinfo = default_siteinfo(request, menyrequest) |
882 |
|
883 |
diff --git a/python/templates/includes/layout/footer.html b/python/templates/includes/layout/footer.html |
884 |
deleted file mode 100644 |
885 |
index a6860e6..0000000 |
886 |
--- a/python/templates/includes/layout/footer.html |
887 |
+++ /dev/null |
888 |
@@ -1,38 +0,0 @@ |
889 |
-<footer> |
890 |
- <div class="container"> |
891 |
- <div class="row"> |
892 |
- <div class="col-xs-12 col-md-offset-2 col-md-7"> |
893 |
- {% if page.footer %}{{ page.footer }}{% endif %} |
894 |
- </div> |
895 |
- <div class="col-xs-12 col-md-3"> |
896 |
- <h3 class="footerhead">Questions or comments?</h3> |
897 |
- Please feel free to <a href="{{ contact.PageId.nav1 }}/{{ contact.nav2}}/">contact us</a>. |
898 |
- </div> |
899 |
- </div> |
900 |
- </div> |
901 |
- <div class="container-sitemap"> |
902 |
- <div class="container"> |
903 |
- {% include "includes/layout/footer_sitemap.html" %} |
904 |
- </div> |
905 |
- </div> |
906 |
- <div class="container"> |
907 |
- <div class="row"> |
908 |
- <div class="col-xs-3 col-md-2"> |
909 |
- <ul class="footerlinks three-icons"> |
910 |
- <li><a href="http://twitter.com/gentoo" title="@Gentoo on Twitter"><span class="fa fa-twitter fa-fw"></span></a></li> |
911 |
- <li><a href="https://plus.google.com/+Gentoo" title="+Gentoo on Google+"><span class="fa fa-google-plus fa-fw"></span></a></li> |
912 |
- <li><a href="https://www.facebook.com/gentoo.org" title="Gentoo on Facebook"><span class="fa fa-facebook fa-fw"></span></a></li> |
913 |
- </ul> |
914 |
- </div> |
915 |
- <div class="col-xs-9 col-md-9"> |
916 |
- <strong>© 2001-{% now "Y" %} Gentoo Foundation, Inc.</strong><br> |
917 |
- <small> |
918 |
- Gentoo is a trademark of the Gentoo Foundation, Inc. |
919 |
- The contents of this document, unless otherwise expressly stated, are licensed under the |
920 |
- <a href="http://creativecommons.org/licenses/by-sa/3.0/" rel="license">CC-BY-SA-3.0</a> license. |
921 |
- The <a href="/inside-gentoo/foundation/name-logo-guidelines.html">Gentoo Name and Logo Usage Guidelines</a> apply. |
922 |
- </small> |
923 |
- </div> |
924 |
- </div> |
925 |
- </div> |
926 |
-</footer> |
927 |
\ No newline at end of file |
928 |
|
929 |
diff --git a/python/templates/includes/layout/footer_sitemap.html b/python/templates/includes/layout/footer_sitemap.html |
930 |
deleted file mode 100644 |
931 |
index 3923ce3..0000000 |
932 |
--- a/python/templates/includes/layout/footer_sitemap.html |
933 |
+++ /dev/null |
934 |
@@ -1,12 +0,0 @@ |
935 |
-<div class="row row-sitemap hidden-xs"> |
936 |
- {% for page in pages %} |
937 |
- {% if page.nav1 != 'donate' %} |
938 |
- <div class="col-xs-12 col-sm-4 col-md-2"> |
939 |
- <h3 class="footerhead"><a href="{{ page.url }}">{{ page.nav_title }}</a></h3> |
940 |
- <ul class="sitemap"> |
941 |
- {% include "includes/navigation/sitemap_secondary" %} |
942 |
- </ul> |
943 |
- {% endif %} |
944 |
- </div> |
945 |
- {% endfor %} |
946 |
-</div> |
947 |
\ No newline at end of file |
948 |
|
949 |
diff --git a/python/templates/includes/layout/head.html b/python/templates/includes/layout/head.html |
950 |
deleted file mode 100644 |
951 |
index 7f17fd8..0000000 |
952 |
--- a/python/templates/includes/layout/head.html |
953 |
+++ /dev/null |
954 |
@@ -1,25 +0,0 @@ |
955 |
-<head> |
956 |
- <title>{% if page.title %}{{ page.title }} – {{ site.title }}{% else %}{{ site.title }}{% endif %}</title> |
957 |
- {% if page.description %}<meta name="description" content="{{ page.description }}">{% endif %} |
958 |
- <meta charset="utf-8"> |
959 |
- <meta name="theme-color" content="#54487a"> |
960 |
- <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
961 |
- <meta http-equiv="X-UA-Compatible" content="IE=edge"> |
962 |
- <meta property="og:title" content="{% if page.title %}{{ page.title }} – {{ site.title }}{% else %}{{ site.title }}{% endif %}"> |
963 |
- <meta property="og:image" content="https://www.gentoo.org/assets/img/logo/gentoo-g.png"> |
964 |
- <meta property="og:description" content="{% if page.description %}{{ page.description }}{% else %}{{ site.description }}{% endif %}"> |
965 |
- <meta name="twitter:image" content="https://www.gentoo.org/assets/img/logo/gentoo-g.png"> |
966 |
- <link rel="apple-touch-icon" href="https://www.gentoo.org/assets/img/logo/icon-192.png"> |
967 |
- <link rel="icon" sizes="192x192" href="https://www.gentoo.org/assets/img/logo/icon-192.png"> |
968 |
- <link href="https://assets.gentoo.org/tyrian/bootstrap.min.css" rel="stylesheet" media="screen"> |
969 |
- <link href="https://assets.gentoo.org/tyrian/tyrian.min.css" rel="stylesheet" media="screen"> |
970 |
- <link href="https://assets/css/screen.css" rel="stylesheet" media="screen"> |
971 |
- |
972 |
- <link rel="icon" href="https://www.gentoo.org/favicon.ico" type="image/x-icon"> |
973 |
- <link rel="search" type="application/opensearchdescription+xml" href="https://www.gentoo.org/search/www-gentoo-org.xml" title="Gentoo Website"> |
974 |
- <link rel="search" type="application/opensearchdescription+xml" href="https://www.gentoo.org/search/forums-gentoo-org.xml" title="Gentoo Forums"> |
975 |
- <link rel="search" type="application/opensearchdescription+xml" href="https://www.gentoo.org/search/bugs-gentoo-org.xml" title="Gentoo Bugzilla"> |
976 |
- <link rel="search" type="application/opensearchdescription+xml" href="https://www.gentoo.org/search/packages-gentoo-org.xml" title="Gentoo Packages"> |
977 |
- <link rel="search" type="application/opensearchdescription+xml" href="https://www.gentoo.org/search/archives-gentoo-org.xml" title="Gentoo List Archives"> |
978 |
- <link rel="alternate" type="application/atom+xml" title="Gentoo Linux news" href="https://www.gentoo.org/feeds/news.xml"> |
979 |
-</head> |
980 |
|
981 |
diff --git a/python/templates/includes/layout/header.html b/python/templates/includes/layout/header.html |
982 |
deleted file mode 100644 |
983 |
index 63cba60..0000000 |
984 |
--- a/python/templates/includes/layout/header.html |
985 |
+++ /dev/null |
986 |
@@ -1,90 +0,0 @@ |
987 |
-<header> |
988 |
- <div class="site-title"> |
989 |
- <div class="container"> |
990 |
- <div class="row"> |
991 |
- <div class="site-title-buttons"> |
992 |
- <div class="btn-group btn-group-sm"> |
993 |
- <a href="https://get.gentoo.org/" role="button" class="btn get-gentoo"><span class="fa fa-fw fa-download"></span> <strong>Get Gentoo!</strong></a> |
994 |
- <div class="btn-group btn-group-sm"> |
995 |
- <a class="btn gentoo-org-sites dropdown-toggle" data-toggle="dropdown" data-target="#" href="#"> |
996 |
- <span class="fa fa-fw fa-map-o"></span> <span class="hidden-xs">gentoo.org sites</span> <span class="caret"></span> |
997 |
- </a> |
998 |
- <ul class="dropdown-menu dropdown-menu-right"> |
999 |
- <li><a href="https://www.gentoo.org/" title="Main Gentoo website"><span class="fa fa-home fa-fw"></span> gentoo.org</a></li> |
1000 |
- <li><a href="https://wiki.gentoo.org/" title="Find and contribute documentation"><span class="fa fa-file-text-o fa-fw"></span> Wiki</a></li> |
1001 |
- <li><a href="https://bugs.gentoo.org/" title="Report issues and find common issues"><span class="fa fa-bug fa-fw"></span> Bugs</a></li> |
1002 |
- <li><a href="https://forums.gentoo.org/" title="Discuss with the community"><span class="fa fa-comments-o fa-fw"></span> Forums</a></li> |
1003 |
- <li><a href="https://packages.gentoo.org/" title="Find software for your Gentoo"><span class="fa fa-hdd-o fa-fw"></span> Packages</a></li> |
1004 |
- <li class="divider"></li> |
1005 |
- <li><a href="https://planet.gentoo.org/" title="Find out what's going on in the developer community"><span class="fa fa-rss fa-fw"></span> Planet</a></li> |
1006 |
- <li><a href="https://archives.gentoo.org/" title="Read up on past discussions"><span class="fa fa-archive fa-fw"></span> Archives</a></li> |
1007 |
- <li><a href="https://gitweb.gentoo.org/" title="Browse our source code in Gitweb"><span class="fa fa-code fa-fw"></span> Gitweb</a></li> |
1008 |
- <li><a href="https://sources.gentoo.org/" title="Browse our source code in CVS"><span class="fa fa-code fa-fw"></span> CVS sources</a></li> |
1009 |
- <li class="divider"></li> |
1010 |
- <li><a href="https://infra-status.gentoo.org/" title="Get updates on the services provided by Gentoo"><span class="fa fa-server fa-fw"></span> Infra status</a></li> |
1011 |
- </ul> |
1012 |
- </div> |
1013 |
- </div> |
1014 |
- </div> |
1015 |
- <div class="logo"> |
1016 |
- <a href="/" title="Back to the homepage" class="site-logo"> |
1017 |
- <object data="https://assets.gentoo.org/tyrian/site-logo.svg" type="image/svg+xml"> |
1018 |
- <img src="https://assets.gentoo.org/tyrian/site-logo.png" alt="Gentoo Linux logo"> |
1019 |
- </object> |
1020 |
- </a> |
1021 |
- |
1022 |
- </div> |
1023 |
- </div> |
1024 |
- </div> |
1025 |
- </div> |
1026 |
- <nav class="tyrian-navbar" role="navigation"> |
1027 |
- <div class="container"> |
1028 |
- <div class="row"> |
1029 |
- <div class="navbar-header"> |
1030 |
- <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-main-collapse"> |
1031 |
- <span class="sr-only">Toggle navigation</span> |
1032 |
- <span class="icon-bar"></span> |
1033 |
- <span class="icon-bar"></span> |
1034 |
- <span class="icon-bar"></span> |
1035 |
- </button> |
1036 |
- </div> |
1037 |
- <div class="collapse navbar-collapse navbar-main-collapse"> |
1038 |
- <ul class="nav navbar-nav"> |
1039 |
- {% include "includes/navigation/primary" %} |
1040 |
- </ul> |
1041 |
- <ul class="nav navbar-nav navbar-right"> |
1042 |
- <li class=""><a href="http://www.gentoo.org/donate/"><span class="fa fa-heart" style="color:#d9534f;"></span> Donate</a></li> |
1043 |
- </ul> |
1044 |
- <ul class="nav navbar-nav navbar-right"> |
1045 |
- <li class=""><span class="" style="color:#d9534f;"></span> |
1046 |
- {% if user.is_authenticated %} |
1047 |
- Welcome, {{ user.username }}. Thanks for logging in. |
1048 |
- {% endif %} |
1049 |
- </li> |
1050 |
- </ul> |
1051 |
- </div> |
1052 |
- </div> |
1053 |
- </div> |
1054 |
- </nav> |
1055 |
- {% if subpages %} |
1056 |
- <nav class="navbar navbar-grey navbar-stick" role="navigation"> |
1057 |
- <div class="container"> |
1058 |
- <div class="row"> |
1059 |
- <div class="navbar-header"> |
1060 |
- <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-secondary-collapse"> |
1061 |
- <span class="sr-only">Toggle secondary navigation</span> |
1062 |
- <span class="icon-bar"></span> |
1063 |
- <span class="icon-bar"></span> |
1064 |
- <span class="icon-bar"></span> |
1065 |
- </button> |
1066 |
- </div> |
1067 |
- <div class="collapse navbar-collapse navbar-secondary-collapse"> |
1068 |
- <ul class="nav navbar-nav"> |
1069 |
- {% include "includes/navigation/secondary" %} |
1070 |
- </ul> |
1071 |
- </div> |
1072 |
- </div> |
1073 |
- </div> |
1074 |
- </nav> |
1075 |
- {% endif %} |
1076 |
-</header> |
1077 |
|
1078 |
diff --git a/python/templates/includes/layout/sponsor.html b/python/templates/includes/layout/sponsor.html |
1079 |
deleted file mode 100644 |
1080 |
index 9ebd19a..0000000 |
1081 |
--- a/python/templates/includes/layout/sponsor.html |
1082 |
+++ /dev/null |
1083 |
@@ -1,9 +0,0 @@ |
1084 |
-<div class="row sponsor"> |
1085 |
-{% for sponsor in sponsors %} |
1086 |
-<div class="col-xs-12 col-md-2 col-md-offset-2 sponsorlogo"> |
1087 |
-<!-- sponsor{name:{{ sponsor.name }},weight:{{ sponsor.weight }}} --> |
1088 |
-<a href="{{ sponsor.link }}" title="{{ sponsor.title }}"> |
1089 |
-<img src="https://www.gentoo.org/assets/img/sponsors/ads/{{ sponsor.img }}" alt="{{ sponsor.alt }}"> |
1090 |
-</a></div> |
1091 |
-{% endfor %} |
1092 |
-</div> |
1093 |
|
1094 |
diff --git a/python/templates/layout/base.html b/python/templates/layout/base.html |
1095 |
deleted file mode 100644 |
1096 |
index bc31ee4..0000000 |
1097 |
--- a/python/templates/layout/base.html |
1098 |
+++ /dev/null |
1099 |
@@ -1,34 +0,0 @@ |
1100 |
-<!DOCTYPE html> |
1101 |
-<html> |
1102 |
- {% include "includes/layout/head.html" %} |
1103 |
- <body class=""> |
1104 |
- {% include "includes/layout/header.html" %} |
1105 |
- |
1106 |
- <div class="container"> |
1107 |
- <div class="row"> |
1108 |
- <div id="content" class="col-md-12"> |
1109 |
- {% block content %}{% endblock %} |
1110 |
- {% include "includes/layout/sponsor.html" %} |
1111 |
- </div> |
1112 |
- </div> |
1113 |
- </div> |
1114 |
- |
1115 |
- {% include "includes/layout/footer.html" %} |
1116 |
- |
1117 |
- <script type="text/javascript"> |
1118 |
- var _paq = _paq || []; |
1119 |
- _paq.push(["disableCookies"]); |
1120 |
- _paq.push(['trackPageView']); |
1121 |
- (function() { |
1122 |
- var u="//piwik.gentoo.org/"; |
1123 |
- _paq.push(['setTrackerUrl', u+'piwik.php']); |
1124 |
- _paq.push(['setSiteId', 7]); |
1125 |
- var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; |
1126 |
- g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s); |
1127 |
- })(); |
1128 |
- </script> |
1129 |
- <noscript><p><img src="//piwik.gentoo.org/piwik.php?idsite=7" style="border:0;" alt="" /></p></noscript> |
1130 |
- <script src="https://assets.gentoo.org/tyrian/jquery.min.js"></script> |
1131 |
- <script src="https://assets.gentoo.org/tyrian/bootstrap.min.js"></script> |
1132 |
- </body> |
1133 |
-</html> |
1134 |
|
1135 |
diff --git a/python/templates/pages/packages/category/index.html b/python/templates/pages/packages/category/index.html |
1136 |
deleted file mode 100644 |
1137 |
index 2538f88..0000000 |
1138 |
--- a/python/templates/pages/packages/category/index.html |
1139 |
+++ /dev/null |
1140 |
@@ -1,33 +0,0 @@ |
1141 |
-{% extends "layout/base.html" %} |
1142 |
-{% block content %} |
1143 |
-<div class="row"> |
1144 |
- <h2>Packages in {{ C.Category }}</h2> |
1145 |
- <div class="col-xs-12 col-md-5"> |
1146 |
- {% for PM in PM_tmp %} |
1147 |
- <table class="table table-striped frontpage-table"> |
1148 |
- <tr> |
1149 |
- <td class="frontpage-table-package-atom"> |
1150 |
- <a href="/package/{{ PM.PackageId }}/" title="{{ C.Category }}/{{ PM.Package }}">{{ C.Category }}/{{ PM.Package }}</a> |
1151 |
- <p title="{{ PM.Commitlog }}">Commit Log</p> |
1152 |
- </td> |
1153 |
- <td> |
1154 |
- <p title="{{ PM.Descriptions }}">{{ PM.Descriptions }}</p> |
1155 |
- <p title="{% for P in PM.Ebuilds %}{{ PM.Package }}/{{ P }}{% endfor %}">Versions |
1156 |
- {% if PM.Repoman %} |
1157 |
- <a class="btn btn-warning btn-xs" href="/repoman/{{PM.PackageId }}/">Repoman</a> |
1158 |
- {% endif %} |
1159 |
- </p> |
1160 |
- </td> |
1161 |
- </tr> |
1162 |
- </table> |
1163 |
- {% if forloop.last %} |
1164 |
- </div> |
1165 |
- {% else %} |
1166 |
- {% if forloop.counter|divisibleby:"2" %} |
1167 |
- </div><div class="col-xs-12 col-md-5"> |
1168 |
- {% endif %} |
1169 |
- {% endif %} |
1170 |
- {% endfor %} |
1171 |
-</div> |
1172 |
- |
1173 |
-{% endblock %} |
1174 |
\ No newline at end of file |
1175 |
|
1176 |
diff --git a/python/templates/pages/packages/ebuilds/ebuild/index.html b/python/templates/pages/packages/ebuilds/ebuild/index.html |
1177 |
deleted file mode 100644 |
1178 |
index e000a53..0000000 |
1179 |
--- a/python/templates/pages/packages/ebuilds/ebuild/index.html |
1180 |
+++ /dev/null |
1181 |
@@ -1,47 +0,0 @@ |
1182 |
-{% extends "layout/base.html" %} |
1183 |
-{% block content %} |
1184 |
-<div class="row"> |
1185 |
- <div class="col-xs-12 col-md-9"> |
1186 |
- <h2>{{ E.PackageId.CategoryId.Category }}/{{ E.PackageId.Package }}</h2> |
1187 |
- <table class="table table-striped frontpage-table"> |
1188 |
- {% for EM in EM_tmp %} |
1189 |
- <tr> |
1190 |
- <td class="frontpage-table-package-atom"> |
1191 |
- <p" title="{{ E.PackageId.CategoryId.Category }}/{{ E.PackageId.Package }}-{{ E.EbuildId.Version }}::{{ E.PackageId.RepoId.Repo }}">{{ E.PackageId.Package }}-{{ E.Version }}::{{ E.PackageId.RepoId.Repo }}</p> |
1192 |
- <a class="btn btn-default btn-xs" href="/buildpackage/{{ E.EbuildId.EbuildId }}/">Build</a> |
1193 |
- {% for BL in BL_tmp %} |
1194 |
- {% if BL.Fail %} |
1195 |
- <a class="btn btn-danger btn-xs" href="/buildlog/{{ BL.BuildLogId }}/">Fail</a> |
1196 |
- {% else %} |
1197 |
- <a class="btn btn-success btn-xs" href="/buildlog/{{ BL.BuildLogId }}/">Success</a> |
1198 |
- {% endif %} |
1199 |
- {% endfor %} |
1200 |
- </td> |
1201 |
- <td> |
1202 |
- {% for K in EK_tmp %} |
1203 |
- {% if K.EbuildId.EbuildId == E.EbuildId and K.KeywordId.Keyword != '*' %} |
1204 |
- {% if K.Status == 'Stable' %}<span class="label label-success">{{ K.KeywordId.Keyword }}</span>{% endif %} |
1205 |
- {% if K.Status == 'Unstable' %}<span class="label label-warning">{{ K.KeywordId.Keyword }}</span>{% endif %} |
1206 |
- {% if K.Status == 'Negative' %}{{ K.KeywordId.Keyword }}{% endif %} |
1207 |
- {% endif %} |
1208 |
- {% endfor %} |
1209 |
- <p> |
1210 |
- {% for U in EU_tmp %} |
1211 |
- {% if U.Status %} |
1212 |
- <span class="label label-info">{{ U.UseId.Flag }}</span> |
1213 |
- {% else %} |
1214 |
- <span class="label label-default">{{ U.UseId.Flag }}</span> |
1215 |
- {% endif %} |
1216 |
- {% endfor %} |
1217 |
- </p><p> |
1218 |
- {% for R in ER_tmp %} |
1219 |
- <span class="label label-warning">{{ R.RestrictionId.Restriction }}</span> |
1220 |
- {% endfor %} |
1221 |
- </p> |
1222 |
- </td> |
1223 |
- </tr> |
1224 |
- {% endfor %} |
1225 |
- </table> |
1226 |
- </div> |
1227 |
-</div> |
1228 |
-{% endblock %} |
1229 |
\ No newline at end of file |
1230 |
|
1231 |
diff --git a/python/templates/pages/packages/ebuilds/index.html b/python/templates/pages/packages/ebuilds/index.html |
1232 |
deleted file mode 100644 |
1233 |
index 630b524..0000000 |
1234 |
--- a/python/templates/pages/packages/ebuilds/index.html |
1235 |
+++ /dev/null |
1236 |
@@ -1,30 +0,0 @@ |
1237 |
-{% extends "layout/base.html" %} |
1238 |
-{% block content %} |
1239 |
-<div class="row"> |
1240 |
- <div class="col-xs-12 col-md-9"> |
1241 |
- <h2>{{ P.PackageId.CategoryId.Category }}/{{ P.PackageId.Package }}</h2> |
1242 |
- <p>Commit log</p> |
1243 |
- <p>{{ P.Gitlog|linebreaksbr }}</p> |
1244 |
- <table class="table table-striped frontpage-table"> |
1245 |
- {% for E in EM_tmp %} |
1246 |
- <tr> |
1247 |
- <td class="frontpage-table-package-atom"> |
1248 |
- <a href="/ebuild/{{ E.EbuildId.EbuildId }}/" title="{{ P.PackageId.CategoryId.Category }}/{{ P.PackageId.Package }}-{{ E.EbuildId.Version }}::{{ E.EbuildId.PackageId.RepoId.Repo }}">{{ P.PackageId.Package }}-{{ E.EbuildId.Version }}::{{ E.EbuildId.PackageId.RepoId.Repo }}</a></td> |
1249 |
- <td> |
1250 |
- {% for K in EK_tmp %} |
1251 |
- {% if K.EbuildId.EbuildId == E.EbuildId.EbuildId and K.KeywordId.Keyword != '*' %} |
1252 |
- {% if K.Status == 'Stable' %}<span class="label label-success">{{ K.KeywordId.Keyword }}</span>{% endif %} |
1253 |
- {% if K.Status == 'Unstable' %}<span class="label label-warning">{{ K.KeywordId.Keyword }}</span>{% endif %} |
1254 |
- {% if K.Status == 'Negative' %}{{ K.KeywordId.Keyword }}{% endif %} |
1255 |
- {% endif %} |
1256 |
- {% endfor %} |
1257 |
- </td> |
1258 |
- </tr> |
1259 |
- {% endfor %} |
1260 |
- </table> |
1261 |
- </div> |
1262 |
- {% if PR %} |
1263 |
- <a class="btn btn-warning btn-xs" href="/repoman/{{P.PackageId.PackageId }}/">Repoman</a> |
1264 |
- {% endif %} |
1265 |
-</div> |
1266 |
-{% endblock %} |
1267 |
\ No newline at end of file |
1268 |
|
1269 |
diff --git a/python/templates/pages/packages/index.html b/python/templates/pages/packages/index.html |
1270 |
deleted file mode 100644 |
1271 |
index 7139c87..0000000 |
1272 |
--- a/python/templates/pages/packages/index.html |
1273 |
+++ /dev/null |
1274 |
@@ -1,28 +0,0 @@ |
1275 |
-{% extends "layout/base.html" %} |
1276 |
-{% block content %} |
1277 |
-<div class="row"> |
1278 |
-<h2>Categories</h2> |
1279 |
- <div class="col-xs-8 col-md-4"> |
1280 |
- {% for CM in CM_tmp %} |
1281 |
- <table class="table table-striped frontpage-table"> |
1282 |
- <tr> |
1283 |
- <td class="frontpage-table-package-atom"> |
1284 |
- <a href="/categories/{{ CM.CategoryId }}/" title="{{ CM.Category }}">{{CM.Category }}</a> |
1285 |
- </td> |
1286 |
- <td> |
1287 |
- <p title="{{ CM.Descriptions }}">{{ CM.Descriptions }}</p> |
1288 |
- <p title="{% for P in CM.Packages %}{{ CM.Category}}/{{ P }}{% endfor %}">Packages</p> |
1289 |
- </td> |
1290 |
- </tr> |
1291 |
- </table> |
1292 |
- {% if forloop.last %} |
1293 |
- </div> |
1294 |
- {% else %} |
1295 |
- {% if forloop.counter|divisibleby:"2" %} |
1296 |
- </div><div class="col-xs-8 col-md-4"> |
1297 |
- {% endif %} |
1298 |
- {% endif %} |
1299 |
- {% endfor %} |
1300 |
-</div> |
1301 |
- |
1302 |
-{% endblock %} |
1303 |
\ No newline at end of file |
1304 |
|
1305 |
diff --git a/python/templates/pages/projects/add/index.html b/python/templates/pages/projects/add/index.html |
1306 |
deleted file mode 100644 |
1307 |
index ec46b8d..0000000 |
1308 |
--- a/python/templates/pages/projects/add/index.html |
1309 |
+++ /dev/null |
1310 |
@@ -1,8 +0,0 @@ |
1311 |
-{% extends "layout/base.html" %} |
1312 |
-{% block content %} |
1313 |
-<form action="{{ Project.uuid }}" method="post"> |
1314 |
- {% csrf_token %} |
1315 |
- {{ Form }} |
1316 |
- <input type="submit" value="Submit"> |
1317 |
-</form> |
1318 |
-{% endblock %} |
1319 |
|
1320 |
diff --git a/python/templates/pages/projects/detail/index.html b/python/templates/pages/projects/detail/index.html |
1321 |
deleted file mode 100644 |
1322 |
index afee9d5..0000000 |
1323 |
--- a/python/templates/pages/projects/detail/index.html |
1324 |
+++ /dev/null |
1325 |
@@ -1,4 +0,0 @@ |
1326 |
-{% extends "layout/base.html" %} |
1327 |
-{% block content %} |
1328 |
-<p>Hej</p> |
1329 |
-{% endblock %} |
1330 |
|
1331 |
diff --git a/python/templates/pages/projects/index.html b/python/templates/pages/projects/index.html |
1332 |
deleted file mode 100644 |
1333 |
index 2edf849..0000000 |
1334 |
--- a/python/templates/pages/projects/index.html |
1335 |
+++ /dev/null |
1336 |
@@ -1,19 +0,0 @@ |
1337 |
-{% extends "layout/base.html" %} |
1338 |
-{% block content %} |
1339 |
-<div class="panel panel-default"> |
1340 |
- <div class="table-responsive"> |
1341 |
- <table class="table table-striped"> |
1342 |
- <table class="table table-striped frontpage-table"> |
1343 |
- {% for project in Projects %} |
1344 |
- <tr> |
1345 |
- <td class="frontpage-table-project-atom"><a href="{% url 'projects:detail' project.uuid %}" title="{{ project.title }}">{{ project.title }}</a></td> |
1346 |
- <td><p title="{{ project.description }}">{{ project.description }}</p> |
1347 |
- <td class="text-right"> |
1348 |
- </td></td> |
1349 |
- </tr> |
1350 |
- {% endfor %} |
1351 |
-</table> |
1352 |
- </table> |
1353 |
- </div> |
1354 |
-</div> |
1355 |
-{% endblock %} |
1356 |
|
1357 |
diff --git a/python/templates/pages/projects/repos/index.html b/python/templates/pages/projects/repos/index.html |
1358 |
deleted file mode 100644 |
1359 |
index bc349da..0000000 |
1360 |
--- a/python/templates/pages/projects/repos/index.html |
1361 |
+++ /dev/null |
1362 |
@@ -1,31 +0,0 @@ |
1363 |
-{% extends "layout/base.html" %} |
1364 |
-{% block content %} |
1365 |
-<div class="panel panel-default"> |
1366 |
- <div class="table-responsive"> |
1367 |
- <table class="table table-striped"> |
1368 |
- <table class="table table-striped frontpage-table"> |
1369 |
- {% for project in Projects %} |
1370 |
- <tr> |
1371 |
- <td class="frontpage-table-project-atom"><a href="{% url 'projects:detail' project.uuid %}" title="{{ project.title }}">{{ project.title }}</a></td> |
1372 |
- <td><p title="{{ project.description }}">{{ project.description }}</p> |
1373 |
- <td class="text-right"> |
1374 |
- </td></td> |
1375 |
- </tr> |
1376 |
- {% endfor %} |
1377 |
-</table> |
1378 |
- </table> |
1379 |
-<table class="table table-striped"> |
1380 |
- <table class="table table-striped frontpage-table"> |
1381 |
- {% for project in Projects %} |
1382 |
- <tr> |
1383 |
- <td class="frontpage-table-project-atom"><a href="{% url 'projects:detail' project.uuid %}" title="{{ project.title }}">{{ project.title }}</a></td> |
1384 |
- <td><p title="{{ project.description }}">{{ project.description }}</p> |
1385 |
- <td class="text-right"> |
1386 |
- </td></td> |
1387 |
- </tr> |
1388 |
- {% endfor %} |
1389 |
-</table> |
1390 |
- </table> |
1391 |
- </div> |
1392 |
-</div> |
1393 |
-{% endblock %} |
1394 |
|
1395 |
diff --git a/python/templates/pages/www/index.html b/python/templates/pages/www/index.html |
1396 |
deleted file mode 100644 |
1397 |
index a8fdf61..0000000 |
1398 |
--- a/python/templates/pages/www/index.html |
1399 |
+++ /dev/null |
1400 |
@@ -1,49 +0,0 @@ |
1401 |
-{% extends "layout/base.html" %} |
1402 |
-{% block content %} |
1403 |
-{% include "includes/container/start" %} |
1404 |
-<div class="row"> |
1405 |
- <div class="col-xs-12 col-sm-8 col-md-9"> |
1406 |
- <p> |
1407 |
- Welcome to Gentoo . |
1408 |
- </p> |
1409 |
- </div> |
1410 |
- <div class="col-xs-12 col-sm-4 col-md-3 buttons"> |
1411 |
- <a href="/get-started/about/" class="btn btn-default btn-block">Learn more</a> |
1412 |
- <a href="/get-started/" class="btn btn-primary btn-block"><i class="fa fa-fw fa-rocket"></i> Get started now</a> |
1413 |
- </div> |
1414 |
-</div> |
1415 |
-{% include "includes/container/end" %} |
1416 |
-<section id="news"> |
1417 |
-{% include "includes/frontpage/news" %} |
1418 |
-</section> |
1419 |
- |
1420 |
-<div class="news-more"> |
1421 |
- <a href="/news" class="btn btn-xs">All news items <span class="fa fa-fw fa-chevron-right"></span></a> |
1422 |
-<hr> |
1423 |
-</div> |
1424 |
- |
1425 |
-<div class="row"> |
1426 |
- <div class="col-xs-12 col-md-6"> |
1427 |
- <h2>New Packages <small>more at the <a href="/new_packages/">New Packages</a></small></h2> |
1428 |
- {% include "includes/frontpage/new_packages" %} |
1429 |
- </div> |
1430 |
- <div class="col-xs-12 col-md-6"> |
1431 |
- <h2>New Logs <small>more at the <a href="/new_logs/">New Logs</a></small></h2> |
1432 |
- {% include "includes/frontpage/new_logs" %} |
1433 |
- </div> |
1434 |
-</div> |
1435 |
- |
1436 |
-<div class="row"> |
1437 |
- <div class="col-xs-12 col-md-6"> |
1438 |
- <h2>New Build Requests <small>more at the <a href="/new_build_req">New Build Requests</a></small></h2> |
1439 |
- {% include "includes/frontpage/new_build_req" %} |
1440 |
- </div> |
1441 |
- <div class="col-xs-12 col-md-6"> |
1442 |
- <h2>New Repoman or QA's <small>on the <a href="/new/repomanqa/">New Repoman or QA's</a></small></h2> |
1443 |
- {% include "includes/frontpage/new_repoman_qa" %} |
1444 |
- </div> |
1445 |
-</div> |
1446 |
- |
1447 |
-<hr> |
1448 |
- |
1449 |
-{% endblock %} |
1450 |
|
1451 |
diff --git a/python/templates/registration/bugzillauser.html b/python/templates/registration/bugzillauser.html |
1452 |
deleted file mode 100644 |
1453 |
index d05d6ad..0000000 |
1454 |
--- a/python/templates/registration/bugzillauser.html |
1455 |
+++ /dev/null |
1456 |
@@ -1,10 +0,0 @@ |
1457 |
-{% extends 'layout/base.html' %} |
1458 |
-{% block title %}Bugzilla accounts{% endblock %} |
1459 |
-{% block content %} |
1460 |
- <h2>Bugzilla accounts</h2> |
1461 |
- <form method="post"> |
1462 |
- {% csrf_token %} |
1463 |
- {{ form }} |
1464 |
- <button type="submit">Submit</button> |
1465 |
- </form> |
1466 |
-{% endblock %} |
1467 |
|
1468 |
diff --git a/python/templates/registration/logged_out.html b/python/templates/registration/logged_out.html |
1469 |
deleted file mode 100644 |
1470 |
index 94c6a0d..0000000 |
1471 |
--- a/python/templates/registration/logged_out.html |
1472 |
+++ /dev/null |
1473 |
@@ -1,5 +0,0 @@ |
1474 |
-{% extends "layout/base.html" %} |
1475 |
-{% block body_block %} |
1476 |
-<h1>Logged Out</h1> |
1477 |
- <p>You are now logged out.</p> |
1478 |
-{% endblock %} |
1479 |
|
1480 |
diff --git a/python/templates/registration/login.html b/python/templates/registration/login.html |
1481 |
deleted file mode 100644 |
1482 |
index 9503420..0000000 |
1483 |
--- a/python/templates/registration/login.html |
1484 |
+++ /dev/null |
1485 |
@@ -1,12 +0,0 @@ |
1486 |
-{% extends 'layout/base.html' %} |
1487 |
- |
1488 |
-{% block title %}Login{% endblock %} |
1489 |
- |
1490 |
-{% block content %} |
1491 |
- <h2>Login</h2> |
1492 |
- <form method="post"> |
1493 |
- {% csrf_token %} |
1494 |
- {{ form.as_p }} |
1495 |
- <button type="submit">Login</button> |
1496 |
- </form> |
1497 |
-{% endblock %} |
1498 |
|
1499 |
diff --git a/python/templates/registration/password_change_form.html b/python/templates/registration/password_change_form.html |
1500 |
deleted file mode 100644 |
1501 |
index 7761fe4..0000000 |
1502 |
--- a/python/templates/registration/password_change_form.html |
1503 |
+++ /dev/null |
1504 |
@@ -1,13 +0,0 @@ |
1505 |
-{% extends 'layout/base.html' %} |
1506 |
- |
1507 |
-{% block title %}Change you password{% endblock %} |
1508 |
- |
1509 |
-{% block content %} |
1510 |
- <h1>Change you password</h1> |
1511 |
- <p>Use the form below to change your password.</p> |
1512 |
- <form action="." method="post"> |
1513 |
- {{ form.as_p }} |
1514 |
- <p><input type="submit" value="Change"></p> |
1515 |
- {% csrf_token %} |
1516 |
- </form> |
1517 |
-{% endblock %} |
1518 |
|
1519 |
diff --git a/python/www/__init__.py b/python/www/__init__.py |
1520 |
deleted file mode 100644 |
1521 |
index e69de29..0000000 |
1522 |
|
1523 |
diff --git a/python/www/admin.py b/python/www/admin.py |
1524 |
deleted file mode 100644 |
1525 |
index 168b0b2..0000000 |
1526 |
--- a/python/www/admin.py |
1527 |
+++ /dev/null |
1528 |
@@ -1,7 +0,0 @@ |
1529 |
-from django.contrib import admin |
1530 |
- |
1531 |
-from .models import SiteSettings, Menys, SubMenys |
1532 |
- |
1533 |
-admin.site.register(SiteSettings) |
1534 |
-admin.site.register(Menys) |
1535 |
-admin.site.register(SubMenys) |
1536 |
|
1537 |
diff --git a/python/www/apps.py b/python/www/apps.py |
1538 |
deleted file mode 100644 |
1539 |
index 872e206..0000000 |
1540 |
--- a/python/www/apps.py |
1541 |
+++ /dev/null |
1542 |
@@ -1,5 +0,0 @@ |
1543 |
-from django.apps import AppConfig |
1544 |
- |
1545 |
- |
1546 |
-class WwwConfig(AppConfig): |
1547 |
- name = 'www' |
1548 |
|
1549 |
diff --git a/python/www/migrations/0001_initial.py b/python/www/migrations/0001_initial.py |
1550 |
deleted file mode 100644 |
1551 |
index 14da8b2..0000000 |
1552 |
--- a/python/www/migrations/0001_initial.py |
1553 |
+++ /dev/null |
1554 |
@@ -1,64 +0,0 @@ |
1555 |
-# Generated by Django 2.2.2 on 2019-07-12 22:17 |
1556 |
- |
1557 |
-from django.db import migrations, models |
1558 |
-import django.db.models.deletion |
1559 |
- |
1560 |
- |
1561 |
-class Migration(migrations.Migration): |
1562 |
- |
1563 |
- initial = True |
1564 |
- |
1565 |
- dependencies = [ |
1566 |
- ] |
1567 |
- |
1568 |
- operations = [ |
1569 |
- migrations.CreateModel( |
1570 |
- name='Pages', |
1571 |
- fields=[ |
1572 |
- ('PageId', models.IntegerField(db_column='page_id', primary_key=True, serialize=False)), |
1573 |
- ('nav_title', models.CharField(max_length=200)), |
1574 |
- ('title', models.CharField(max_length=200)), |
1575 |
- ('description', models.CharField(max_length=200)), |
1576 |
- ('nav1', models.CharField(max_length=100)), |
1577 |
- ('nav1_show', models.BooleanField(default=False)), |
1578 |
- ('nav1_weight', models.IntegerField(default=0)), |
1579 |
- ('url', models.CharField(max_length=200)), |
1580 |
- ('SubMenu', models.BooleanField(db_column='sub_menu', default=False)), |
1581 |
- ], |
1582 |
- options={ |
1583 |
- 'db_table': 'pages', |
1584 |
- }, |
1585 |
- ), |
1586 |
- migrations.CreateModel( |
1587 |
- name='SiteSettings', |
1588 |
- fields=[ |
1589 |
- ('SiteId', models.IntegerField(db_column='site_id', primary_key=True, serialize=False)), |
1590 |
- ('site', models.CharField(max_length=20)), |
1591 |
- ('title', models.CharField(max_length=50)), |
1592 |
- ('email', models.CharField(max_length=50)), |
1593 |
- ('description', models.CharField(max_length=100)), |
1594 |
- ('url', models.CharField(max_length=50)), |
1595 |
- ('contact', models.CharField(max_length=50)), |
1596 |
- ], |
1597 |
- options={ |
1598 |
- 'db_table': 'site_settings', |
1599 |
- }, |
1600 |
- ), |
1601 |
- migrations.CreateModel( |
1602 |
- name='SubPages', |
1603 |
- fields=[ |
1604 |
- ('SubPageId', models.IntegerField(db_column='sub_page_id', primary_key=True, serialize=False)), |
1605 |
- ('nav_title', models.CharField(max_length=200)), |
1606 |
- ('title', models.CharField(max_length=200)), |
1607 |
- ('description', models.CharField(max_length=200)), |
1608 |
- ('nav2', models.CharField(max_length=100)), |
1609 |
- ('nav2_show', models.BooleanField(default=False)), |
1610 |
- ('nav2_weight', models.IntegerField(default=0)), |
1611 |
- ('url', models.CharField(max_length=200)), |
1612 |
- ('PageId', models.ForeignKey(db_column='page_id', on_delete=django.db.models.deletion.CASCADE, to='www.Pages')), |
1613 |
- ], |
1614 |
- options={ |
1615 |
- 'db_table': 'sub_pages', |
1616 |
- }, |
1617 |
- ), |
1618 |
- ] |
1619 |
|
1620 |
diff --git a/python/www/migrations/__init__.py b/python/www/migrations/__init__.py |
1621 |
deleted file mode 100644 |
1622 |
index e69de29..0000000 |
1623 |
|
1624 |
diff --git a/python/www/models.py b/python/www/models.py |
1625 |
deleted file mode 100644 |
1626 |
index 85dbc35..0000000 |
1627 |
--- a/python/www/models.py |
1628 |
+++ /dev/null |
1629 |
@@ -1,74 +0,0 @@ |
1630 |
-# Copyright 1998-2019 Gentoo Foundation |
1631 |
-# Distributed under the terms of the GNU General Public License v2 |
1632 |
- |
1633 |
-from django.db import models |
1634 |
- |
1635 |
-class SiteSettings(models.Model): |
1636 |
- id = models.IntegerField(primary_key=True) |
1637 |
- site = models.CharField(max_length=20) |
1638 |
- title = models.CharField(max_length=50) |
1639 |
- email = models.CharField(max_length=50) |
1640 |
- description = models.CharField(max_length=100) |
1641 |
- url = models.CharField(max_length=50) |
1642 |
- contact = models.CharField(max_length=50) |
1643 |
- class Meta: |
1644 |
- db_table = 'site_settings' |
1645 |
- def __str__(self): |
1646 |
- return '%s %s %s %s %s %s %s' % (self.id, self.site, self.title, self.email, self.description, self.url, self.contact) |
1647 |
- |
1648 |
-class Menys(models.Model): |
1649 |
- id = models.IntegerField(primary_key=True) |
1650 |
- title = models.CharField(max_length=200) |
1651 |
- description = models.CharField(max_length=200) |
1652 |
- name = models.CharField(max_length=100) |
1653 |
- view = models.BooleanField(default=False) |
1654 |
- sort = models.IntegerField(default=0) |
1655 |
- url = models.CharField(max_length=200) |
1656 |
- arg = models.CharField(max_length=50, blank=True) |
1657 |
- access = models.BooleanField(default=False) |
1658 |
- sub = models.BooleanField(default=False) |
1659 |
- class Meta: |
1660 |
- db_table = 'menys' |
1661 |
- def __str__(self): |
1662 |
- return '%s %s %s %s %s %s %s %s %s %s' % (self.id, self.title, self.description, self.name, self.view, self.sort, self.url, self.arg, self.access, self.sub) |
1663 |
- |
1664 |
-class SubMenys(models.Model): |
1665 |
- id = models.IntegerField(primary_key=True) |
1666 |
- title = models.CharField(max_length=200) |
1667 |
- description = models.CharField(max_length=200) |
1668 |
- MenyId = models.ForeignKey(Menys, on_delete=models.CASCADE, db_column='meny_id') |
1669 |
- name = models.CharField(max_length=100) |
1670 |
- view = models.BooleanField(default=False) |
1671 |
- sort = models.IntegerField(default=0) |
1672 |
- url = models.CharField(max_length=200) |
1673 |
- arg = models.CharField(max_length=50, blank=True) |
1674 |
- access = models.BooleanField(default=False) |
1675 |
- class Meta: |
1676 |
- db_table = 'sub_menys' |
1677 |
- def __str__(self): |
1678 |
- return '%s %s %s %s %s %s %s %s %s %s' % (self.id, self.title, self.description, self.MenyId, self.name, self.view, self.sort, self.url, self.arg, self.access) |
1679 |
- |
1680 |
-class Posts(models.Model): |
1681 |
- id = models.IntegerField(primary_key=True) |
1682 |
- title = models.CharField(max_length=200) |
1683 |
- url = models.CharField(max_length=200) |
1684 |
- text = models.TextField() |
1685 |
- created_at = models.DateTimeField(auto_now_add=True) |
1686 |
- class Meta: |
1687 |
- db_table='posts' |
1688 |
- def __str__(self): |
1689 |
- return '%s %s %s %s %s' % (self.id, self.title, self.url, self.text, self.created_at) |
1690 |
- |
1691 |
-class Sponsors(models.Model): |
1692 |
- id = models.IntegerField(primary_key=True) |
1693 |
- name = models.CharField(max_length=200) |
1694 |
- img = models.CharField(max_length=200) |
1695 |
- link = models.CharField(max_length=200) |
1696 |
- title = models.CharField(max_length=200) |
1697 |
- alt = models.CharField(max_length=200) |
1698 |
- weight = models.IntegerField(default=0) |
1699 |
- active = models.BooleanField(default=False) |
1700 |
- class Meta: |
1701 |
- db_table = 'sponsors' |
1702 |
- def __str__(self): |
1703 |
- return '%s %s %s %s %s %s %s' % (self.id, self.name, self.img, self.link, self.alt, self.weight, self.active) |
1704 |
|
1705 |
diff --git a/python/www/router.py b/python/www/router.py |
1706 |
deleted file mode 100644 |
1707 |
index aab4cf9..0000000 |
1708 |
--- a/python/www/router.py |
1709 |
+++ /dev/null |
1710 |
@@ -1,31 +0,0 @@ |
1711 |
-# Copyright 1998-2015 Gentoo Foundation |
1712 |
-# Distributed under the terms of the GNU General Public License v2 |
1713 |
- |
1714 |
-class GosbsRouter(object): |
1715 |
- def db_for_read(self, model, **hints): |
1716 |
- "Point all operations on zobcs models to 'zobcs'" |
1717 |
- if model._meta.app_label == 'www': |
1718 |
- return 'default' |
1719 |
- return 'gosbs' |
1720 |
- |
1721 |
- def db_for_write(self, model, **hints): |
1722 |
- "Point all operations on zobcs models to 'zobcs'" |
1723 |
- if model._meta.app_label == 'www': |
1724 |
- return 'default' |
1725 |
- return 'gosbs' |
1726 |
- |
1727 |
- def allow_relation(self, obj1, obj2, **hints): |
1728 |
- "Allow any relation if a both models in zobcs app" |
1729 |
- if obj1._meta.app_label == 'www' and obj2._meta.app_label == 'www': |
1730 |
- return True |
1731 |
- # Allow if neither is zobcs app |
1732 |
- elif 'www' not in [obj1._meta.app_label, obj2._meta.app_label]: |
1733 |
- return True |
1734 |
- return False |
1735 |
- |
1736 |
- def allow_migrate(self, db, app_label, model_name=None, **hints): |
1737 |
- if db == 'gosbs': |
1738 |
- return app_label == 'gosbs' |
1739 |
- elif app_label == 'gosbs': |
1740 |
- return False |
1741 |
- return True |
1742 |
|
1743 |
diff --git a/python/www/tests.py b/python/www/tests.py |
1744 |
deleted file mode 100644 |
1745 |
index 7ce503c..0000000 |
1746 |
--- a/python/www/tests.py |
1747 |
+++ /dev/null |
1748 |
@@ -1,3 +0,0 @@ |
1749 |
-from django.test import TestCase |
1750 |
- |
1751 |
-# Create your tests here. |
1752 |
|
1753 |
diff --git a/python/www/urls.py b/python/www/urls.py |
1754 |
deleted file mode 100644 |
1755 |
index 88a9cac..0000000 |
1756 |
--- a/python/www/urls.py |
1757 |
+++ /dev/null |
1758 |
@@ -1,7 +0,0 @@ |
1759 |
-from django.urls import path |
1760 |
- |
1761 |
-from . import views |
1762 |
- |
1763 |
-urlpatterns = [ |
1764 |
- path('', views.index, name='index'), |
1765 |
-] |
1766 |
|
1767 |
diff --git a/python/www/utils.py b/python/www/utils.py |
1768 |
deleted file mode 100644 |
1769 |
index 6bc36f3..0000000 |
1770 |
--- a/python/www/utils.py |
1771 |
+++ /dev/null |
1772 |
@@ -1,34 +0,0 @@ |
1773 |
-# Copyright 1998-2019 Gentoo Foundation |
1774 |
-# Distributed under the terms of the GNU General Public License v2 |
1775 |
- |
1776 |
-from django.shortcuts import get_object_or_404 |
1777 |
-from www.models import SiteSettings, Menys, SubMenys, Sponsors |
1778 |
- |
1779 |
-def default_siteinfo(request, menyrequest): |
1780 |
- siteinfo = {} |
1781 |
- siteinfo['site'] = get_object_or_404(SiteSettings) |
1782 |
- activemeny = get_object_or_404(Menys, name = menyrequest) |
1783 |
- menys = Menys.objects.all().order_by('sort') |
1784 |
- #contact = get_object_or_404(SubPages, nav2 = 'contact') |
1785 |
- for meny in menys: |
1786 |
- if meny.title == 'Login' and request.user.is_authenticated: |
1787 |
- meny.show = False |
1788 |
- if meny.title == 'User' and request.user.is_authenticated: |
1789 |
- meny.show = True |
1790 |
- if meny.arg == '': |
1791 |
- meny.arg = False |
1792 |
- siteinfo['activemeny'] = activemeny |
1793 |
- siteinfo['menys'] = menys |
1794 |
- #siteinfo['contact'] = contact |
1795 |
- siteinfo['sponsors'] = Sponsors.objects.all() |
1796 |
- if activemeny.sub: |
1797 |
- submenys = SubMenys.objects.filter(MenyId = activemeny.id).order_by('sort') |
1798 |
- for submeny in submenys: |
1799 |
- if submeny.arg == '': |
1800 |
- submeny.arg = False |
1801 |
- siteinfo['submenys'] = submenys |
1802 |
- siteinfo['subactivemeny'] = False |
1803 |
- else: |
1804 |
- siteinfo['submenys'] = [] |
1805 |
- siteinfo['subactivemeny'] = False |
1806 |
- return siteinfo |
1807 |
|
1808 |
diff --git a/python/www/views.py b/python/www/views.py |
1809 |
deleted file mode 100644 |
1810 |
index 9a1ace4..0000000 |
1811 |
--- a/python/www/views.py |
1812 |
+++ /dev/null |
1813 |
@@ -1,19 +0,0 @@ |
1814 |
-# Copyright 1998-2019 Gentoo Foundation |
1815 |
-# Distributed under the terms of the GNU General Public License v2 |
1816 |
- |
1817 |
-from django.http import HttpResponse |
1818 |
-from django.shortcuts import render |
1819 |
-from django.conf import settings |
1820 |
- |
1821 |
-from .utils import default_siteinfo |
1822 |
-from .models import Posts, Sponsors |
1823 |
- |
1824 |
-def index(request): |
1825 |
- menyrequest = 'www' |
1826 |
- siteinfo = default_siteinfo(request, menyrequest) |
1827 |
- siteinfo['posts'] = Posts.objects.all()[:2] |
1828 |
- siteinfo['class_include'] = 'hero-section emergehdr' |
1829 |
- #siteinfo['EM'] = EbuildsMetadata.objects.filter(uuid__deleted = False).order_by('-uuid__created_at')[:10] |
1830 |
- #siteinfo['BL'] = BuildLogs.objects.order_by('-created_at')[:10] |
1831 |
- htmlrequest = 'pages/' + menyrequest + '/index.html' |
1832 |
- return render(request, htmlrequest, siteinfo) |
1833 |
|
1834 |
diff --git a/sql/gosbs-www.sql b/sql/gosbs-www.sql |
1835 |
deleted file mode 100644 |
1836 |
index 4bc9b21..0000000 |
1837 |
--- a/sql/gosbs-www.sql |
1838 |
+++ /dev/null |
1839 |
@@ -1,475 +0,0 @@ |
1840 |
--- phpMyAdmin SQL Dump |
1841 |
--- version 4.7.7 |
1842 |
--- https://www.phpmyadmin.net/ |
1843 |
--- |
1844 |
--- Värd: localhost |
1845 |
--- Tid vid skapande: 05 apr 2020 kl 16:56 |
1846 |
--- Serverversion: 10.2.22-MariaDB |
1847 |
--- PHP-version: 7.2.12 |
1848 |
- |
1849 |
-SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; |
1850 |
-SET AUTOCOMMIT = 0; |
1851 |
-START TRANSACTION; |
1852 |
-SET time_zone = "+00:00"; |
1853 |
- |
1854 |
- |
1855 |
-/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; |
1856 |
-/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; |
1857 |
-/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; |
1858 |
-/*!40101 SET NAMES utf8mb4 */; |
1859 |
- |
1860 |
--- |
1861 |
--- Databas: `gosbs-www` |
1862 |
--- |
1863 |
- |
1864 |
--- -------------------------------------------------------- |
1865 |
- |
1866 |
--- |
1867 |
--- Tabellstruktur `auth_group` |
1868 |
--- |
1869 |
- |
1870 |
-CREATE TABLE `auth_group` ( |
1871 |
- `id` int(11) NOT NULL, |
1872 |
- `name` varchar(150) NOT NULL |
1873 |
-) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
1874 |
- |
1875 |
--- -------------------------------------------------------- |
1876 |
- |
1877 |
--- |
1878 |
--- Tabellstruktur `auth_group_permissions` |
1879 |
--- |
1880 |
- |
1881 |
-CREATE TABLE `auth_group_permissions` ( |
1882 |
- `id` int(11) NOT NULL, |
1883 |
- `group_id` int(11) NOT NULL, |
1884 |
- `permission_id` int(11) NOT NULL |
1885 |
-) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
1886 |
- |
1887 |
--- -------------------------------------------------------- |
1888 |
- |
1889 |
--- |
1890 |
--- Tabellstruktur `auth_permission` |
1891 |
--- |
1892 |
- |
1893 |
-CREATE TABLE `auth_permission` ( |
1894 |
- `id` int(11) NOT NULL, |
1895 |
- `name` varchar(255) NOT NULL, |
1896 |
- `content_type_id` int(11) NOT NULL, |
1897 |
- `codename` varchar(100) NOT NULL |
1898 |
-) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
1899 |
- |
1900 |
--- -------------------------------------------------------- |
1901 |
- |
1902 |
--- |
1903 |
--- Tabellstruktur `auth_user` |
1904 |
--- |
1905 |
- |
1906 |
-CREATE TABLE `auth_user` ( |
1907 |
- `id` int(11) NOT NULL, |
1908 |
- `password` varchar(128) NOT NULL, |
1909 |
- `last_login` datetime(6) DEFAULT NULL, |
1910 |
- `is_superuser` tinyint(1) NOT NULL, |
1911 |
- `username` varchar(150) NOT NULL, |
1912 |
- `first_name` varchar(30) NOT NULL, |
1913 |
- `last_name` varchar(150) NOT NULL, |
1914 |
- `email` varchar(254) NOT NULL, |
1915 |
- `is_staff` tinyint(1) NOT NULL, |
1916 |
- `is_active` tinyint(1) NOT NULL, |
1917 |
- `date_joined` datetime(6) NOT NULL |
1918 |
-) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
1919 |
- |
1920 |
--- -------------------------------------------------------- |
1921 |
- |
1922 |
--- |
1923 |
--- Tabellstruktur `auth_user_groups` |
1924 |
--- |
1925 |
- |
1926 |
-CREATE TABLE `auth_user_groups` ( |
1927 |
- `id` int(11) NOT NULL, |
1928 |
- `user_id` int(11) NOT NULL, |
1929 |
- `group_id` int(11) NOT NULL |
1930 |
-) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
1931 |
- |
1932 |
--- -------------------------------------------------------- |
1933 |
- |
1934 |
--- |
1935 |
--- Tabellstruktur `auth_user_user_permissions` |
1936 |
--- |
1937 |
- |
1938 |
-CREATE TABLE `auth_user_user_permissions` ( |
1939 |
- `id` int(11) NOT NULL, |
1940 |
- `user_id` int(11) NOT NULL, |
1941 |
- `permission_id` int(11) NOT NULL |
1942 |
-) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
1943 |
- |
1944 |
--- -------------------------------------------------------- |
1945 |
- |
1946 |
--- |
1947 |
--- Tabellstruktur `django_admin_log` |
1948 |
--- |
1949 |
- |
1950 |
-CREATE TABLE `django_admin_log` ( |
1951 |
- `id` int(11) NOT NULL, |
1952 |
- `action_time` datetime(6) NOT NULL, |
1953 |
- `object_id` longtext DEFAULT NULL, |
1954 |
- `object_repr` varchar(200) NOT NULL, |
1955 |
- `action_flag` smallint(5) UNSIGNED NOT NULL, |
1956 |
- `change_message` longtext NOT NULL, |
1957 |
- `content_type_id` int(11) DEFAULT NULL, |
1958 |
- `user_id` int(11) NOT NULL |
1959 |
-) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
1960 |
- |
1961 |
--- -------------------------------------------------------- |
1962 |
- |
1963 |
--- |
1964 |
--- Tabellstruktur `django_content_type` |
1965 |
--- |
1966 |
- |
1967 |
-CREATE TABLE `django_content_type` ( |
1968 |
- `id` int(11) NOT NULL, |
1969 |
- `app_label` varchar(100) NOT NULL, |
1970 |
- `model` varchar(100) NOT NULL |
1971 |
-) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
1972 |
- |
1973 |
--- -------------------------------------------------------- |
1974 |
- |
1975 |
--- |
1976 |
--- Tabellstruktur `django_migrations` |
1977 |
--- |
1978 |
- |
1979 |
-CREATE TABLE `django_migrations` ( |
1980 |
- `id` int(11) NOT NULL, |
1981 |
- `app` varchar(255) NOT NULL, |
1982 |
- `name` varchar(255) NOT NULL, |
1983 |
- `applied` datetime(6) NOT NULL |
1984 |
-) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
1985 |
- |
1986 |
--- -------------------------------------------------------- |
1987 |
- |
1988 |
--- |
1989 |
--- Tabellstruktur `django_session` |
1990 |
--- |
1991 |
- |
1992 |
-CREATE TABLE `django_session` ( |
1993 |
- `session_key` varchar(40) NOT NULL, |
1994 |
- `session_data` longtext NOT NULL, |
1995 |
- `expire_date` datetime(6) NOT NULL |
1996 |
-) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
1997 |
- |
1998 |
--- -------------------------------------------------------- |
1999 |
- |
2000 |
--- |
2001 |
--- Tabellstruktur `pages` |
2002 |
--- |
2003 |
- |
2004 |
-CREATE TABLE `pages` ( |
2005 |
- `id` int(11) NOT NULL, |
2006 |
- `title` varchar(200) NOT NULL, |
2007 |
- `description` varchar(200) NOT NULL, |
2008 |
- `name` varchar(100) NOT NULL, |
2009 |
- `view` tinyint(1) NOT NULL, |
2010 |
- `sort` int(11) NOT NULL, |
2011 |
- `url` varchar(200) NOT NULL, |
2012 |
- `arg` varchar(50) NOT NULL, |
2013 |
- `access` tinyint(1) NOT NULL, |
2014 |
- `sub` tinyint(1) NOT NULL |
2015 |
-) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
2016 |
- |
2017 |
--- -------------------------------------------------------- |
2018 |
- |
2019 |
--- |
2020 |
--- Tabellstruktur `posts` |
2021 |
--- |
2022 |
- |
2023 |
-CREATE TABLE `posts` ( |
2024 |
- `id` int(11) NOT NULL, |
2025 |
- `title` varchar(200) NOT NULL, |
2026 |
- `url` varchar(200) NOT NULL, |
2027 |
- `text` text NOT NULL, |
2028 |
- `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE current_timestamp() |
2029 |
-) ENGINE=MyISAM DEFAULT CHARSET=utf8; |
2030 |
- |
2031 |
--- -------------------------------------------------------- |
2032 |
- |
2033 |
--- |
2034 |
--- Tabellstruktur `site_settings` |
2035 |
--- |
2036 |
- |
2037 |
-CREATE TABLE `site_settings` ( |
2038 |
- `id` int(11) NOT NULL, |
2039 |
- `site` varchar(20) NOT NULL, |
2040 |
- `title` varchar(50) NOT NULL, |
2041 |
- `email` varchar(50) NOT NULL, |
2042 |
- `description` varchar(100) NOT NULL, |
2043 |
- `url` varchar(50) NOT NULL, |
2044 |
- `contact` varchar(50) NOT NULL |
2045 |
-) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
2046 |
- |
2047 |
--- -------------------------------------------------------- |
2048 |
- |
2049 |
--- |
2050 |
--- Tabellstruktur `sponsors` |
2051 |
--- |
2052 |
- |
2053 |
-CREATE TABLE `sponsors` ( |
2054 |
- `id` int(11) NOT NULL, |
2055 |
- `name` varchar(200) NOT NULL, |
2056 |
- `img` varchar(100) NOT NULL, |
2057 |
- `link` varchar(100) NOT NULL, |
2058 |
- `title` varchar(30) NOT NULL, |
2059 |
- `alt` varchar(200) NOT NULL, |
2060 |
- `weight` int(11) NOT NULL, |
2061 |
- `active` tinyint(1) NOT NULL |
2062 |
-) ENGINE=MyISAM DEFAULT CHARSET=utf8; |
2063 |
- |
2064 |
--- -------------------------------------------------------- |
2065 |
- |
2066 |
--- |
2067 |
--- Tabellstruktur `sub_pages` |
2068 |
--- |
2069 |
- |
2070 |
-CREATE TABLE `sub_pages` ( |
2071 |
- `id` int(11) NOT NULL, |
2072 |
- `title` varchar(200) NOT NULL, |
2073 |
- `description` varchar(200) NOT NULL, |
2074 |
- `name` varchar(100) NOT NULL, |
2075 |
- `view` tinyint(1) NOT NULL, |
2076 |
- `sort` int(11) NOT NULL, |
2077 |
- `url` varchar(200) NOT NULL, |
2078 |
- `arg` varchar(50) NOT NULL, |
2079 |
- `page_id` int(11) NOT NULL, |
2080 |
- `access` tinyint(1) NOT NULL |
2081 |
-) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
2082 |
- |
2083 |
--- |
2084 |
--- Index för dumpade tabeller |
2085 |
--- |
2086 |
- |
2087 |
--- |
2088 |
--- Index för tabell `auth_group` |
2089 |
--- |
2090 |
-ALTER TABLE `auth_group` |
2091 |
- ADD PRIMARY KEY (`id`), |
2092 |
- ADD UNIQUE KEY `name` (`name`); |
2093 |
- |
2094 |
--- |
2095 |
--- Index för tabell `auth_group_permissions` |
2096 |
--- |
2097 |
-ALTER TABLE `auth_group_permissions` |
2098 |
- ADD PRIMARY KEY (`id`), |
2099 |
- ADD UNIQUE KEY `auth_group_permissions_group_id_permission_id_0cd325b0_uniq` (`group_id`,`permission_id`), |
2100 |
- ADD KEY `auth_group_permissio_permission_id_84c5c92e_fk_auth_perm` (`permission_id`); |
2101 |
- |
2102 |
--- |
2103 |
--- Index för tabell `auth_permission` |
2104 |
--- |
2105 |
-ALTER TABLE `auth_permission` |
2106 |
- ADD PRIMARY KEY (`id`), |
2107 |
- ADD UNIQUE KEY `auth_permission_content_type_id_codename_01ab375a_uniq` (`content_type_id`,`codename`); |
2108 |
- |
2109 |
--- |
2110 |
--- Index för tabell `auth_user` |
2111 |
--- |
2112 |
-ALTER TABLE `auth_user` |
2113 |
- ADD PRIMARY KEY (`id`), |
2114 |
- ADD UNIQUE KEY `username` (`username`); |
2115 |
- |
2116 |
--- |
2117 |
--- Index för tabell `auth_user_groups` |
2118 |
--- |
2119 |
-ALTER TABLE `auth_user_groups` |
2120 |
- ADD PRIMARY KEY (`id`), |
2121 |
- ADD UNIQUE KEY `auth_user_groups_user_id_group_id_94350c0c_uniq` (`user_id`,`group_id`), |
2122 |
- ADD KEY `auth_user_groups_group_id_97559544_fk_auth_group_id` (`group_id`); |
2123 |
- |
2124 |
--- |
2125 |
--- Index för tabell `auth_user_user_permissions` |
2126 |
--- |
2127 |
-ALTER TABLE `auth_user_user_permissions` |
2128 |
- ADD PRIMARY KEY (`id`), |
2129 |
- ADD UNIQUE KEY `auth_user_user_permissions_user_id_permission_id_14a6b632_uniq` (`user_id`,`permission_id`), |
2130 |
- ADD KEY `auth_user_user_permi_permission_id_1fbb5f2c_fk_auth_perm` (`permission_id`); |
2131 |
- |
2132 |
--- |
2133 |
--- Index för tabell `django_admin_log` |
2134 |
--- |
2135 |
-ALTER TABLE `django_admin_log` |
2136 |
- ADD PRIMARY KEY (`id`), |
2137 |
- ADD KEY `django_admin_log_content_type_id_c4bce8eb_fk_django_co` (`content_type_id`), |
2138 |
- ADD KEY `django_admin_log_user_id_c564eba6_fk_auth_user_id` (`user_id`); |
2139 |
- |
2140 |
--- |
2141 |
--- Index för tabell `django_content_type` |
2142 |
--- |
2143 |
-ALTER TABLE `django_content_type` |
2144 |
- ADD PRIMARY KEY (`id`), |
2145 |
- ADD UNIQUE KEY `django_content_type_app_label_model_76bd3d3b_uniq` (`app_label`,`model`); |
2146 |
- |
2147 |
--- |
2148 |
--- Index för tabell `django_migrations` |
2149 |
--- |
2150 |
-ALTER TABLE `django_migrations` |
2151 |
- ADD PRIMARY KEY (`id`); |
2152 |
- |
2153 |
--- |
2154 |
--- Index för tabell `django_session` |
2155 |
--- |
2156 |
-ALTER TABLE `django_session` |
2157 |
- ADD PRIMARY KEY (`session_key`), |
2158 |
- ADD KEY `django_session_expire_date_a5c62663` (`expire_date`); |
2159 |
- |
2160 |
--- |
2161 |
--- Index för tabell `pages` |
2162 |
--- |
2163 |
-ALTER TABLE `pages` |
2164 |
- ADD PRIMARY KEY (`id`); |
2165 |
- |
2166 |
--- |
2167 |
--- Index för tabell `posts` |
2168 |
--- |
2169 |
-ALTER TABLE `posts` |
2170 |
- ADD PRIMARY KEY (`id`); |
2171 |
- |
2172 |
--- |
2173 |
--- Index för tabell `site_settings` |
2174 |
--- |
2175 |
-ALTER TABLE `site_settings` |
2176 |
- ADD PRIMARY KEY (`id`); |
2177 |
- |
2178 |
--- |
2179 |
--- Index för tabell `sponsors` |
2180 |
--- |
2181 |
-ALTER TABLE `sponsors` |
2182 |
- ADD PRIMARY KEY (`id`); |
2183 |
- |
2184 |
--- |
2185 |
--- Index för tabell `sub_pages` |
2186 |
--- |
2187 |
-ALTER TABLE `sub_pages` |
2188 |
- ADD PRIMARY KEY (`id`), |
2189 |
- ADD KEY `sub_pages_page_id_39ff3612_fk_pages_page_id` (`page_id`); |
2190 |
- |
2191 |
--- |
2192 |
--- AUTO_INCREMENT för dumpade tabeller |
2193 |
--- |
2194 |
- |
2195 |
--- |
2196 |
--- AUTO_INCREMENT för tabell `auth_group` |
2197 |
--- |
2198 |
-ALTER TABLE `auth_group` |
2199 |
- MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; |
2200 |
- |
2201 |
--- |
2202 |
--- AUTO_INCREMENT för tabell `auth_group_permissions` |
2203 |
--- |
2204 |
-ALTER TABLE `auth_group_permissions` |
2205 |
- MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; |
2206 |
- |
2207 |
--- |
2208 |
--- AUTO_INCREMENT för tabell `auth_permission` |
2209 |
--- |
2210 |
-ALTER TABLE `auth_permission` |
2211 |
- MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; |
2212 |
- |
2213 |
--- |
2214 |
--- AUTO_INCREMENT för tabell `auth_user` |
2215 |
--- |
2216 |
-ALTER TABLE `auth_user` |
2217 |
- MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; |
2218 |
- |
2219 |
--- |
2220 |
--- AUTO_INCREMENT för tabell `auth_user_groups` |
2221 |
--- |
2222 |
-ALTER TABLE `auth_user_groups` |
2223 |
- MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; |
2224 |
- |
2225 |
--- |
2226 |
--- AUTO_INCREMENT för tabell `auth_user_user_permissions` |
2227 |
--- |
2228 |
-ALTER TABLE `auth_user_user_permissions` |
2229 |
- MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; |
2230 |
- |
2231 |
--- |
2232 |
--- AUTO_INCREMENT för tabell `django_admin_log` |
2233 |
--- |
2234 |
-ALTER TABLE `django_admin_log` |
2235 |
- MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; |
2236 |
- |
2237 |
--- |
2238 |
--- AUTO_INCREMENT för tabell `django_content_type` |
2239 |
--- |
2240 |
-ALTER TABLE `django_content_type` |
2241 |
- MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; |
2242 |
- |
2243 |
--- |
2244 |
--- AUTO_INCREMENT för tabell `django_migrations` |
2245 |
--- |
2246 |
-ALTER TABLE `django_migrations` |
2247 |
- MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; |
2248 |
- |
2249 |
--- |
2250 |
--- AUTO_INCREMENT för tabell `posts` |
2251 |
--- |
2252 |
-ALTER TABLE `posts` |
2253 |
- MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; |
2254 |
- |
2255 |
--- |
2256 |
--- AUTO_INCREMENT för tabell `sponsors` |
2257 |
--- |
2258 |
-ALTER TABLE `sponsors` |
2259 |
- MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; |
2260 |
- |
2261 |
--- |
2262 |
--- AUTO_INCREMENT för tabell `sub_pages` |
2263 |
--- |
2264 |
-ALTER TABLE `sub_pages` |
2265 |
- MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; |
2266 |
- |
2267 |
--- |
2268 |
--- Restriktioner för dumpade tabeller |
2269 |
--- |
2270 |
- |
2271 |
--- |
2272 |
--- Restriktioner för tabell `auth_group_permissions` |
2273 |
--- |
2274 |
-ALTER TABLE `auth_group_permissions` |
2275 |
- ADD CONSTRAINT `auth_group_permissio_permission_id_84c5c92e_fk_auth_perm` FOREIGN KEY (`permission_id`) REFERENCES `auth_permission` (`id`), |
2276 |
- ADD CONSTRAINT `auth_group_permissions_group_id_b120cbf9_fk_auth_group_id` FOREIGN KEY (`group_id`) REFERENCES `auth_group` (`id`); |
2277 |
- |
2278 |
--- |
2279 |
--- Restriktioner för tabell `auth_permission` |
2280 |
--- |
2281 |
-ALTER TABLE `auth_permission` |
2282 |
- ADD CONSTRAINT `auth_permission_content_type_id_2f476e4b_fk_django_co` FOREIGN KEY (`content_type_id`) REFERENCES `django_content_type` (`id`); |
2283 |
- |
2284 |
--- |
2285 |
--- Restriktioner för tabell `auth_user_groups` |
2286 |
--- |
2287 |
-ALTER TABLE `auth_user_groups` |
2288 |
- ADD CONSTRAINT `auth_user_groups_group_id_97559544_fk_auth_group_id` FOREIGN KEY (`group_id`) REFERENCES `auth_group` (`id`), |
2289 |
- ADD CONSTRAINT `auth_user_groups_user_id_6a12ed8b_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`); |
2290 |
- |
2291 |
--- |
2292 |
--- Restriktioner för tabell `auth_user_user_permissions` |
2293 |
--- |
2294 |
-ALTER TABLE `auth_user_user_permissions` |
2295 |
- ADD CONSTRAINT `auth_user_user_permi_permission_id_1fbb5f2c_fk_auth_perm` FOREIGN KEY (`permission_id`) REFERENCES `auth_permission` (`id`), |
2296 |
- ADD CONSTRAINT `auth_user_user_permissions_user_id_a95ead1b_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`); |
2297 |
- |
2298 |
--- |
2299 |
--- Restriktioner för tabell `django_admin_log` |
2300 |
--- |
2301 |
-ALTER TABLE `django_admin_log` |
2302 |
- ADD CONSTRAINT `django_admin_log_content_type_id_c4bce8eb_fk_django_co` FOREIGN KEY (`content_type_id`) REFERENCES `django_content_type` (`id`), |
2303 |
- ADD CONSTRAINT `django_admin_log_user_id_c564eba6_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`); |
2304 |
- |
2305 |
--- |
2306 |
--- Restriktioner för tabell `sub_pages` |
2307 |
--- |
2308 |
-ALTER TABLE `sub_pages` |
2309 |
- ADD CONSTRAINT `sub_pages_page_id_39ff3612_fk_pages_page_id` FOREIGN KEY (`page_id`) REFERENCES `pages` (`id`); |
2310 |
-COMMIT; |
2311 |
- |
2312 |
-/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; |
2313 |
-/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; |
2314 |
-/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; |
2315 |
|
2316 |
diff --git a/static/foo.txt b/static/foo.txt |
2317 |
deleted file mode 100644 |
2318 |
index e69de29..0000000 |