aboutsummaryrefslogtreecommitdiff
path: root/templates/repo
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2017-03-10 15:36:55 -0500
committerUnknwon <u@gogs.io>2017-03-10 15:36:55 -0500
commita534f9f9b66c63aa08ba61587c3d19a9e952a491 (patch)
tree04aedbe9b1c18f713ffd7fb11e537fd2b3418b41 /templates/repo
parentaa99e805c8752e91f62ae6992080286c84b9b3df (diff)
templates/repo: change some buttons to use 'basic' style
Diffstat (limited to 'templates/repo')
-rw-r--r--templates/repo/header.tmpl6
-rw-r--r--templates/repo/release/list.tmpl6
2 files changed, 5 insertions, 7 deletions
diff --git a/templates/repo/header.tmpl b/templates/repo/header.tmpl
index 5ad5139c..08197d79 100644
--- a/templates/repo/header.tmpl
+++ b/templates/repo/header.tmpl
@@ -15,7 +15,7 @@
<div class="ui right">
<div class="ui labeled button" tabindex="0">
- <a class="ui button" href="{{$.RepoLink}}/action/{{if $.IsWatchingRepo}}un{{end}}watch?redirect_to={{$.Link}}">
+ <a class="ui basic button" href="{{$.RepoLink}}/action/{{if $.IsWatchingRepo}}un{{end}}watch?redirect_to={{$.Link}}">
<i class="icon fa-eye{{if not $.IsWatchingRepo}}-slash{{end}}"></i>{{if $.IsWatchingRepo}}{{$.i18n.Tr "repo.unwatch"}}{{else}}{{$.i18n.Tr "repo.watch"}}{{end}}
</a>
<a class="ui basic label" href="{{.Link}}/watchers">
@@ -23,7 +23,7 @@
</a>
</div>
<div class="ui labeled button" tabindex="0">
- <a class="ui button" href="{{$.RepoLink}}/action/{{if $.IsStaringRepo}}un{{end}}star?redirect_to={{$.Link}}">
+ <a class="ui basic button" href="{{$.RepoLink}}/action/{{if $.IsStaringRepo}}un{{end}}star?redirect_to={{$.Link}}">
<i class="icon fa-star{{if not $.IsStaringRepo}}-o{{end}}"></i>{{if $.IsStaringRepo}}{{$.i18n.Tr "repo.unstar"}}{{else}}{{$.i18n.Tr "repo.star"}}{{end}}
</a>
<a class="ui basic label" href="{{.Link}}/stars">
@@ -32,7 +32,7 @@
</div>
{{if .CanBeForked}}
<div class="ui labeled button" tabindex="0">
- <a class="ui button {{if eq .OwnerID $.SignedUserID}}poping up{{end}}" href="{{AppSubUrl}}/repo/fork/{{.ID}}">
+ <a class="ui basic button {{if eq .OwnerID $.SignedUserID}}poping up{{end}}" href="{{AppSubUrl}}/repo/fork/{{.ID}}">
<i class="octicon octicon-repo-forked"></i>{{$.i18n.Tr "repo.fork"}}
</a>
<a class="ui basic label" href="{{.Link}}/forks">
diff --git a/templates/repo/release/list.tmpl b/templates/repo/release/list.tmpl
index 429ca820..284035d1 100644
--- a/templates/repo/release/list.tmpl
+++ b/templates/repo/release/list.tmpl
@@ -19,11 +19,9 @@
<div class="ui four wide column meta">
{{if .PublisherID}}
{{if .IsDraft}}
- <span class="ui yellow label">{{$.i18n.Tr "repo.release.draft"}}</span>
+ <span class="ui yellow basic label">{{$.i18n.Tr "repo.release.draft"}}</span>
{{else if .IsPrerelease}}
- <span class="ui orange label">{{$.i18n.Tr "repo.release.prerelease"}}</span>
- {{else}}
- <span class="ui green label">{{$.i18n.Tr "repo.release.stable"}}</span>
+ <span class="ui orange basic label">{{$.i18n.Tr "repo.release.prerelease"}}</span>
{{end}}
<span class="tag text blue">
<a href="{{$.RepoLink}}/src/{{.TagName}}" rel="nofollow"><i class="tag icon"></i> {{.TagName}}</a>