aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-03-23 06:27:01 -0400
committerUnknown <joe2010xtmf@163.com>2014-03-23 06:27:01 -0400
commit1eb078d0a8c5424de9512d810ab2fbf21f59ff78 (patch)
treede429367cb1efd971d6d6723882dc793fe05a733 /templates
parent24630e0c9b92bcd9fdeb07ce15c3dd2cfc459a52 (diff)
downloadgitea-1eb078d0a8c5424de9512d810ab2fbf21f59ff78.tar.gz
gitea-1eb078d0a8c5424de9512d810ab2fbf21f59ff78.zip
Fix action
Diffstat (limited to 'templates')
-rw-r--r--templates/repo/nav.tmpl2
-rw-r--r--templates/repo/setting.tmpl16
2 files changed, 6 insertions, 12 deletions
diff --git a/templates/repo/nav.tmpl b/templates/repo/nav.tmpl
index 4d939e2504..b2d3500f92 100644
--- a/templates/repo/nav.tmpl
+++ b/templates/repo/nav.tmpl
@@ -3,7 +3,7 @@
<div class="row">
<div class="col-md-7">
<h3 class="name"><i class="fa fa-book fa-lg"></i><a href="{{.Owner.HomeLink}}">{{.Owner.Name}}</a> / {{.Repository.Name}}</h3>
- <p class="desc">{{.Repository.Description}}{{if .Repository.Website}}<a href="{{.Repository.Website}}">{{.Repository.Website}}</a>{{end}}</p>
+ <p class="desc">{{.Repository.Description}}{{if .Repository.Website}} <a href="{{.Repository.Website}}">{{.Repository.Website}}</a>{{end}}</p>
</div>
<div class="col-md-5 actions text-right clone-group-btn">
{{if not .IsBareRepo}}
diff --git a/templates/repo/setting.tmpl b/templates/repo/setting.tmpl
index 719547b1a9..c826e55a77 100644
--- a/templates/repo/setting.tmpl
+++ b/templates/repo/setting.tmpl
@@ -12,7 +12,7 @@
</div>
<div id="gogs-repo-setting-container" class="col-md-9">
- {{if .ErrorMsg}}<p class="alert alert-danger">{{.ErrorMsg}}</p>{{end}}
+ {{if .IsSuccess}}<p class="alert alert-success">Repository option has been successfully updated.</p>{{else if .HasError}}<p class="alert alert-danger form-error">{{.ErrorMsg}}</p>{{end}}
<div class="panel panel-default">
<div class="panel-heading">
Repository Options
@@ -23,31 +23,25 @@
{{.CsrfTokenHtml}}
<input type="hidden" name="action" value="update">
<div class="form-group">
- <label class="col-md-3 text-right">Repository Name <strong class="text-danger">*</strong></label>
- <div class="col-md-9">
- <input type="text" class="form-control" name="repo-name" required="required" value="{{.Repository.Name}}"/>
- </div>
- </div>
- <div class="form-group">
<label class="col-md-3 text-right">Description</label>
<div class="col-md-9">
- <textarea class="form-control" name="desc" id="repo-desc" rows="6"></textarea>
+ <textarea class="form-control" name="desc" id="repo-desc" rows="3">{{.Repository.Description}}</textarea>
</div>
</div>
<div class="form-group">
<label class="col-md-3 text-right">Official Site</label>
<div class="col-md-9">
- <input type="url" class="form-control" name="repo-site"/>
+ <input type="url" class="form-control" name="site" value="{{.Repository.Website}}" />
</div>
</div>
- <div class="form-group">
+ <!-- <div class="form-group">
<label class="col-md-3 text-right">Default Branch</label>
<div class="col-md-9">
<select name="branch" id="repo-default-branch" class="form-control">
<option value="">Branch</option>
</select>
</div>
- </div>
+ </div> -->
<div class="form-group">
<div class="col-md-9 col-md-offset-3">
<button class="btn btn-primary" type="submit">Save Options</button>