Update Work Templates content and images (#22716)
* Enabled Work templates by default * Remove board as product condition * Removed playbook as a plugin condition * Removed backend condition for playbook plugin/board product * remove boards from templates * Removed unnecessary translations after booards templates removal * Removed template with no playbook or integration * Updated entrypoint wording * update texts * update thumbnails * update bigger pictures * reorder i18n * Copy updates. Add menu order * Remove changed translations * Updated casing for add menu * Restored boards * fix i18n * Fix missing capital in text * Added missing boards in template * Updated feature release playbook image * Updated channel preview for create a project * Update title copy * Updated create project thumbnail * Generate updated work templates * Updating snapshot --------- Co-authored-by: Julien Tant <julien@craftyx.fr> Co-authored-by: Julian Mondragon <bugshoo+github@gmail.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
9156205178
Коммит
4a3c853636
@@ -22,23 +22,6 @@ func areWorkTemplatesEnabled(c *Context) *model.AppError {
|
||||
return model.NewAppError("areWorkTemplatesEnabled", "api.work_templates.disabled", nil, "feature flag is off", http.StatusNotFound)
|
||||
}
|
||||
|
||||
// we have to make sure that playbooks plugin is enabled and board is a product
|
||||
pbActive, err := c.App.IsPluginActive(model.PluginIdPlaybooks)
|
||||
if err != nil {
|
||||
return model.NewAppError("areWorkTemplatesEnabled", "api.work_templates.disabled", nil, "", http.StatusInternalServerError).Wrap(err)
|
||||
}
|
||||
if !pbActive {
|
||||
return model.NewAppError("areWorkTemplatesEnabled", "api.work_templates.disabled", nil, "playbook plugin not active", http.StatusNotFound)
|
||||
}
|
||||
|
||||
hasBoard, err := c.App.HasBoardProduct()
|
||||
if err != nil {
|
||||
return model.NewAppError("areWorkTemplatesEnabled", "api.work_templates.disabled", nil, "", http.StatusInternalServerError).Wrap(err)
|
||||
}
|
||||
if !hasBoard {
|
||||
return model.NewAppError("areWorkTemplatesEnabled", "api.work_templates.disabled", nil, "board product not found", http.StatusNotFound)
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user