cgars пре 8 година
родитељ
комит
f5610ad5cc
2 измењених фајлова са 5 додато и 1 уклоњено
  1. 4 0
      models/repo.go
  2. 1 1
      templates/repo/header.tmpl

+ 4 - 0
models/repo.go

@@ -195,6 +195,10 @@ type Repository struct {
 	UpdatedUnix int64
 }
 
+func (repo *Repository) CanDoified() bool {
+	return true
+}
+
 func (repo *Repository) BeforeInsert() {
 	repo.CreatedUnix = time.Now().Unix()
 	repo.UpdatedUnix = repo.CreatedUnix

+ 1 - 1
templates/repo/header.tmpl

@@ -37,7 +37,7 @@
 							<div class="ui labeled button" tabindex="0">
 								<a class="ui basic button"
 									 href="https://doi.gin.g-node.org/?repo={{.FullName}}&name={{.Owner.Name}}&token={{$.SessionID}}">
-									<i class="octicon octicon-squirrel"></i>Doify
+									<i class="octicon octicon-squirrel"></i> Doify
 								</a>
 							</div>
 							{{end}}