diff --git a/euscanwww/euscan/forms.py b/euscanwww/euscan/forms.py index 5dc0bb1..3f9cad4 100644 --- a/euscanwww/euscan/forms.py +++ b/euscanwww/euscan/forms.py @@ -1,7 +1,7 @@ from django import forms -class WorldFileForm(forms.Form): - world_file = forms.FileField() - class WorldForm(forms.Form): - world = forms.CharField(widget=forms.Textarea) + world = forms.FileField() + +class PackagesForm(forms.Form): + packages = forms.CharField(widget=forms.Textarea) diff --git a/euscanwww/euscan/views.py b/euscanwww/euscan/views.py index 0609453..5b13371 100644 --- a/euscanwww/euscan/views.py +++ b/euscanwww/euscan/views.py @@ -4,7 +4,7 @@ from django.shortcuts import get_object_or_404 from django.db.models import Sum, Max from euscan.models import Version, Package, Herd, Maintainer, EuscanResult -from euscan.forms import WorldForm, WorldFileForm +from euscan.forms import WorldForm, PackagesForm @render_to('euscan/index.html') def index(request): @@ -67,20 +67,21 @@ def package(request, category, package): @render_to('euscan/world.html') def world(request): - form = WorldForm() - file_form = WorldFileForm() + world_form = WorldForm() + packages_form = PackagesForm() - return { 'form' : form , 'file_form' : file_form } + return { 'world_form' : world_form, + 'packages_form' : packages_form } @render_to('euscan/world_scan.html') def world_scan(request): packages = [] # FIXME - if 'world_file' in request.FILES: - data = request.FILES['world_file'].read() - elif 'world' in request.POST: - data = request.POST['world'] + if 'world' in request.FILES: + data = request.FILES['world'].read() + elif 'packages' in request.POST: + data = request.POST['packages'] else: data = "" diff --git a/euscanwww/templates/_base.html b/euscanwww/templates/_base.html index 993e70e..1a12438 100644 --- a/euscanwww/templates/_base.html +++ b/euscanwww/templates/_base.html @@ -25,6 +25,7 @@
  • Categories
  • Herds
  • Maintainers
  • +
  • World
  • ---
  • Login
  • Register
  • diff --git a/euscanwww/templates/euscan/categories.html b/euscanwww/templates/euscan/categories.html index 60471f3..62e61d6 100644 --- a/euscanwww/templates/euscan/categories.html +++ b/euscanwww/templates/euscan/categories.html @@ -19,7 +19,7 @@ {% for category in categories %} {% if category.n_versions == category.n_packaged %} - {% else %}{% if category.n_versions < category.n_packaged|mul:2 %} + {% else %}{% if category.n_versions < category.n_packaged|mul:1.5 %} {% else %} diff --git a/euscanwww/templates/euscan/index.html b/euscanwww/templates/euscan/index.html index 94308f7..cd6a613 100644 --- a/euscanwww/templates/euscan/index.html +++ b/euscanwww/templates/euscan/index.html @@ -2,7 +2,15 @@ {% block content %}

    What's euscan ?

    -

    blabla

    +

    +Euscan is both a tool to check if an ebuild is outdated (app-portage/euscan) and a web interface. +

    +

    +This web interface allow you to browse the portage tree, and find outdated ebuilds. It was designed to help maintainers monitor their packages and bump them. +

    +

    +euscan code source is available at http://git.iksaif.net/?p=euscan.git;a=summary. +

    Statistics