Browse Source

templates/repo: change some buttons to use 'basic' style

pull/4280/head
Unknwon 8 years ago
parent
commit
a534f9f9b6
No known key found for this signature in database
GPG Key ID: 25B575AE3213B2B3
  1. 1
      conf/locale/locale_en-US.ini
  2. 4
      public/css/gogs.css
  3. 4
      public/less/_repository.less
  4. 6
      templates/repo/header.tmpl
  5. 6
      templates/repo/release/list.tmpl

1
conf/locale/locale_en-US.ini

@ -812,7 +812,6 @@ release.releases = Releases
release.new_release = New Release
release.draft = Draft
release.prerelease = Pre-Release
release.stable = Stable
release.edit = edit
release.ahead = <strong>%d</strong> commits to %s since this release
release.source_code = Source Code

4
public/css/gogs.css

@ -2183,11 +2183,11 @@ footer .ui.language .menu {
}
.repository.release #release-list > li .meta .tag:not(.icon) {
display: block;
margin-top: 15px;
margin-top: 6px;
}
.repository.release #release-list > li .meta .commit {
display: block;
margin-top: 10px;
margin-top: 6px;
}
.repository.release #release-list > li .detail {
border-left: 1px solid #DDD;

4
public/less/_repository.less

@ -1146,11 +1146,11 @@
.tag:not(.icon) {
display: block;
margin-top: 15px;
margin-top: 6px;
}
.commit {
display: block;
margin-top: 10px;
margin-top: 6px;
}
}
.detail {

6
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">

6
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>

Loading…
Cancel
Save