From 9872b8d97ad899ada05ccd4432a5dfa5f3048a09 Mon Sep 17 00:00:00 2001 From: delvh <dev.lh@web.de> Date: Sat, 23 Jan 2021 11:30:28 +0100 Subject: [PATCH] Improve Description in new/ edit Project template (#14429) Fixes #14358 Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: 6543 <6543@obermui.de> --- options/locale/locale_en-US.ini | 3 ++- templates/repo/projects/new.tmpl | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index ec133f4b41d..770670ec1f8 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -926,7 +926,8 @@ ext_issues = Ext. Issues ext_issues.desc = Link to an external issue tracker. projects = Projects -projects.desc = Manage issues and pulls in project boards. +projects.description = Description (optional) +projects.description_placeholder = Description projects.create = Create Project projects.title = Title projects.new = New project diff --git a/templates/repo/projects/new.tmpl b/templates/repo/projects/new.tmpl index f668ab6018d..3a99d56f9ed 100644 --- a/templates/repo/projects/new.tmpl +++ b/templates/repo/projects/new.tmpl @@ -29,8 +29,8 @@ <input name="title" placeholder="{{.i18n.Tr "repo.projects.title"}}" value="{{.title}}" autofocus required> </div> <div class="field"> - <label>{{.i18n.Tr "repo.projects.desc"}}</label> - <textarea name="content">{{.content}}</textarea> + <label>{{.i18n.Tr "repo.projects.description"}}</label> + <textarea name="content" placeholder="{{.i18n.Tr "repo.projects.description_placeholder"}}">{{.content}}</textarea> </div> {{if not .PageIsEditProjects}}