Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Gepetto
dashboard
Commits
fae5a0fd
Commit
fae5a0fd
authored
Jul 11, 2018
by
Guilhem Saurel
Browse files
show from_gepetto, deps & rdeps
parent
5773bd8c
Pipeline
#933
canceled with stages
in 2 minutes and 33 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Dockerfile
View file @
fae5a0fd
...
...
@@ -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
...
...
rainboard/models.py
View file @
fae5a0fd
...
...
@@ -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
)
...
...
rainboard/tables.py
View file @
fae5a0fd
...
...
@@ -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
()
...
...
rainboard/templates/rainboard/project_detail.html
View file @
fae5a0fd
...
...
@@ -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>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment