Commit fae5a0fd authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

show from_gepetto, deps & rdeps

parent 5773bd8c
Pipeline #933 canceled with stages
in 2 minutes and 33 seconds
......@@ -20,6 +20,7 @@ RUN apt-get update -qq && apt-get install -qqy \
RUN pip3 install --no-cache-dir -r requirements.txt \
gunicorn \
ipython \
psycopg2-binary \
python-memcached
......
......@@ -293,6 +293,11 @@ class Project(Links, NamedModel, TimeStampedModel):
images = Image.objects.filter(robotpkg__project=self, py3=False, target__name='16.04')
return images.order_by(Length('robotpkg__name').desc()).first()
def print_deps(self):
return ', '.join(str(d.library) for d in p.dependencies.all())
def print_rdeps(self):
return ', '.join(str(d.project) for d in p.rdeps.all())
class Repo(TimeStampedModel):
name = models.CharField(max_length=200)
......
......@@ -32,7 +32,7 @@ class ProjectTable(StrippedTable):
class Meta:
model = models.Project
fields = ('main_namespace', 'name', 'public', 'license', 'homepage', 'updated', 'version')
fields = ('main_namespace', 'name', 'public', 'from_gepetto', 'license', 'homepage', 'updated', 'version')
def render_name(self, record):
return record.get_link()
......
......@@ -32,6 +32,9 @@
<dt class="col-3 text-right">Has tests</dt> <dd class="col-9">{{ project.tests|yesno:"✔,✘" }}</dd>
<dt class="col-3 text-right">Has docs</dt> <dd class="col-9">{{ project.docs|yesno:"✔,✘" }}</dd>
<dt class="col-3 text-right">Also build in Debug</dt> <dd class="col-9">{{ project.debug|yesno:"✔,✘" }}</dd>
<dt class="col-3 text-right">From Gepetto</dt> <dd class="col-9">{{ project.from_gepetto|yesno:"✔,✘" }}</dd>
<dt class="col-3 text-right">Dependencies</dt> <dd class="col-9">{{ project.print_deps }}</dd>
<dt class="col-3 text-right">Reverse Dependencies</dt> <dd class="col-9">{{ project.print_rdeps }}</dd>
</dl>
</div>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment