Browse Source

[license] a little bit more lic messaging

cgars 7 years ago
parent
commit
50eb4f798b

+ 0 - 0
conf/license/Creative Commons CC0 1.0 Universal → conf/license/Creative Commons CC0 1.0 Public Domain Dedication


+ 2 - 1
conf/locale/locale_en-US.ini

@@ -397,7 +397,8 @@ delete_account_desc = This account is going to be deleted permanently, do you wa
 [repo]
 owner = Owner
 repo_name = Repository Name
-repo_name_helper = A good repository name is usually composed of short, memorable and unique keywords.
+repo_name_helper = A good repository name is usually composed of short, memorable and unique keywords.It must be one word (no blanks) made up of alphanumeric, dash(-_) or dot characters.
+repo_desc_helper = A brief sentence to describe what the repository is about, for example the title of the dataset.
 visibility = Visibility
 visiblity_helper = This repository is <span class="ui red text">Private</span>
 visiblity_helper_forced = New repositories are private by default. You can change the state later.

+ 4 - 0
public/css/gogs.css

@@ -3343,3 +3343,7 @@ figure figcaption {
 .ui.image.label.nobg > a {
   opacity: 1;
 }
+textarea#description {
+  height: 5em;
+  min-height: 5em;
+}

+ 3 - 3
templates/repo/create.tmpl

@@ -52,9 +52,9 @@
 					</div>
 					<div class="inline field {{if .Err_Description}}error{{end}}">
 						<label for="description">{{.i18n.Tr "repo.repo_desc"}}</label>
-						<textarea class="autosize" id="description" name="description" rows="3">{{.description}}</textarea>
-						<span class="help">{{.i18n.Tr "repo.repo_description_helper" | Safe}}</span>
-						<span class="help">{{.i18n.Tr "repo.repo_description_length"}}: <span id="descLength"></span></span>
+						<textarea id="description" name="description">{{.description}}</textarea>
+						<span class="help">{{.i18n.Tr "repo.repo_desc_helper" | Safe}}</span>
+
 					</div>
 
 					<div class="ui divider"></div>