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
f44425ec
Commit
f44425ec
authored
Jul 01, 2019
by
Guilhem Saurel
Browse files
oops
parent
7c501d5b
Pipeline
#4738
passed with stage
in 24 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
rainboard/models.py
View file @
f44425ec
...
...
@@ -415,7 +415,7 @@ class Project(Links, NamedModel, TimeStampedModel):
def
pipeline_schedules
(
self
):
""" provides a link to gitlab's CI schedules page showing then cron rule to use with this project """
repo
=
self
.
filter
(
forge__source
=
SOURCES
.
gitlab
,
namespace__group
=
True
)
repo
=
self
.
repo_set
.
filter
(
forge__source
=
SOURCES
.
gitlab
,
namespace__group
=
True
)
if
repo
.
exists
():
link
=
repo
.
first
().
url
+
'/pipeline_schedules'
return
mark_safe
(
f
'<a href="
{
link
}
">
{
self
.
cron
}
</a>'
)
...
...
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