Explorar o código

[GINR] cloudberry -> datacite

cgars %!s(int64=7) %!d(string=hai) anos
pai
achega
80c00ec031
Modificáronse 2 ficheiros con 3 adicións e 3 borrados
  1. 2 2
      routes/repo/view.go
  2. 1 1
      templates/repo/doifile.tmpl

+ 2 - 2
routes/repo/view.go

@@ -63,7 +63,7 @@ func renderDirectory(c *context.Context, treeLink string) {
 	c.Data["DOI"] = false
 	var readmeFile *git.Blob
 	for _, entry := range entries {
-		if entry.IsDir() || (!markup.IsReadmeFile(entry.Name()) && !(entry.Name() == "cloudberry.yml")) {
+		if entry.IsDir() || (!markup.IsReadmeFile(entry.Name()) && !(entry.Name() == "datacite.yml")) {
 			continue
 		}
 
@@ -71,7 +71,7 @@ func renderDirectory(c *context.Context, treeLink string) {
 		if markup.IsReadmeFile(entry.Name()) && entry.Blob().Size() <
 			setting.UI.MaxDisplayFileSize {
 			readmeFile = entry.Blob()
-		} else if entry.Name() == "cloudberry.yml" {
+		} else if entry.Name() == "datacite.yml" {
 			c.Data["DOI"] = true
 			doiData, err := entry.Blob().Data()
 			if err != nil {

+ 1 - 1
templates/repo/doifile.tmpl

@@ -4,7 +4,7 @@
     		<tr>
     			<th class="two wide">
 			<i class="octicon octicon-squirrel"></i>
-				<strong>Cloudberry</strong>
+						<strong>Datacite.yml</strong>
     			</th>
     			<th class="fourteen wide">
     			</th>