Theme can be optional: exercices can be standalone
This commit is contained in:
parent
3519f7416d
commit
a0bc832910
8 changed files with 81 additions and 39 deletions
|
|
@ -393,7 +393,9 @@ func (t *Team) MyIssueFile() (ret []teamIssueFile, err error) {
|
|||
|
||||
if exo, err := claim.GetExercice(); err == nil && exo != nil {
|
||||
exercice = &exo.Title
|
||||
if theme, err := GetTheme(exo.IdTheme); err == nil {
|
||||
if exo.IdTheme == nil {
|
||||
url = path.Join("_", exo.URLId)
|
||||
} else if theme, err := GetTheme(*exo.IdTheme); err == nil {
|
||||
url = path.Join(theme.URLId, exo.URLId)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue