Преглед на файлове

[license] a little bit more lic messaging

cgars преди 7 години
родител
ревизия
50eb4f798b
променени са 4 файла, в които са добавени 9 реда и са изтрити 4 реда
  1. 0 0
      conf/license/Creative Commons CC0 1.0 Public Domain Dedication
  2. 2 1
      conf/locale/locale_en-US.ini
  3. 4 0
      public/css/gogs.css
  4. 3 3
      templates/repo/create.tmpl

+ 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]
 [repo]
 owner = Owner
 owner = Owner
 repo_name = Repository Name
 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
 visibility = Visibility
 visiblity_helper = This repository is <span class="ui red text">Private</span>
 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.
 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 {
 .ui.image.label.nobg > a {
   opacity: 1;
   opacity: 1;
 }
 }
+textarea#description {
+  height: 5em;
+  min-height: 5em;
+}

+ 3 - 3
templates/repo/create.tmpl

@@ -52,9 +52,9 @@
 					</div>
 					</div>
 					<div class="inline field {{if .Err_Description}}error{{end}}">
 					<div class="inline field {{if .Err_Description}}error{{end}}">
 						<label for="description">{{.i18n.Tr "repo.repo_desc"}}</label>
 						<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>
 
 
 					<div class="ui divider"></div>
 					<div class="ui divider"></div>