<a href="{{$.RepoLink}}/issues/new?template={{.FileName}}{{if$.milestone}}&milestone={{$.milestone}}{{end}}{{if$.project}}&project={{$.project}}{{end}}" class="ui green button">{{$.locale.Tr"repo.issues.choose.get_started"}}</a>
<a href="{{.RepoLink}}/issues/new?{{if.milestone}}&milestone={{.milestone}}{{end}}{{if$.project}}&project={{$.project}}{{end}}" class="ui green button">{{$.locale.Tr"repo.issues.choose.get_started"}}</a>
<a class="ui small green button issue-list-new" href="{{.RepoLink}}/issues/new{{if.NewIssueChooseTemplate}}/choose{{end}}">{{.locale.Tr"repo.issues.new"}}</a>
<a class="ui small primary button issue-list-new" href="{{.RepoLink}}/issues/new{{if.NewIssueChooseTemplate}}/choose{{end}}">{{.locale.Tr"repo.issues.new"}}</a>
{{else}}
<a class="ui small green button new-pr-button issue-list-new{{ifnot.PullRequestCtx.Allowed}} disabled{{end}}" href="{{if.PullRequestCtx.Allowed}}{{.Repository.Link}}/compare/{{.Repository.DefaultBranch|PathEscapeSegments}}...{{ifne.Repository.Owner.Name.PullRequestCtx.BaseRepo.Owner.Name}}{{PathEscape.Repository.Owner.Name}}:{{end}}{{.Repository.DefaultBranch|PathEscapeSegments}}{{end}}">{{.locale.Tr"repo.pulls.new"}}</a>
<a class="ui small primary button new-pr-button issue-list-new{{ifnot.PullRequestCtx.Allowed}} disabled{{end}}" href="{{if.PullRequestCtx.Allowed}}{{.Repository.Link}}/compare/{{.Repository.DefaultBranch|PathEscapeSegments}}...{{ifne.Repository.Owner.Name.PullRequestCtx.BaseRepo.Owner.Name}}{{PathEscape.Repository.Owner.Name}}:{{end}}{{.Repository.DefaultBranch|PathEscapeSegments}}{{end}}">{{.locale.Tr"repo.pulls.new"}}</a>
{{end}}
{{else}}
{{ifnot.PageIsIssueList}}
<a class="ui small green small button issue-list-new{{ifnot.PullRequestCtx.Allowed}} disabled{{end}}" href="{{if.PullRequestCtx.Allowed}}{{.PullRequestCtx.BaseRepo.Link}}/compare/{{.PullRequestCtx.BaseRepo.DefaultBranch|PathEscapeSegments}}...{{ifne.Repository.Owner.Name.PullRequestCtx.BaseRepo.Owner.Name}}{{PathEscape.Repository.Owner.Name}}:{{end}}{{.Repository.DefaultBranch|PathEscapeSegments}}{{end}}">{{$.locale.Tr"action.compare_commits_general"}}</a>
<a class="ui small primary small button issue-list-new{{ifnot.PullRequestCtx.Allowed}} disabled{{end}}" href="{{if.PullRequestCtx.Allowed}}{{.PullRequestCtx.BaseRepo.Link}}/compare/{{.PullRequestCtx.BaseRepo.DefaultBranch|PathEscapeSegments}}...{{ifne.Repository.Owner.Name.PullRequestCtx.BaseRepo.Owner.Name}}{{PathEscape.Repository.Owner.Name}}:{{end}}{{.Repository.DefaultBranch|PathEscapeSegments}}{{end}}">{{$.locale.Tr"action.compare_commits_general"}}</a>
{{end}}
{{end}}
</div>
@ -40,7 +40,7 @@
{{ifnot.Repository.IsArchived}}
<!-- Action Button -->
{{if.IsShowClosed}}
<button class="ui green basic button issue-action" data-action="open" data-url="{{$.RepoLink}}/issues/status">{{.locale.Tr"repo.issues.action_open"}}</button>
<button id="edit-title" class="ui small basic button edit-button not-in-edit{{if.Issue.IsPull}} gt-mr-0{{end}}">{{.locale.Tr"repo.issues.edit"}}</button>
{{end}}
{{ifnot.Issue.IsPull}}
<a role="button" class="ui small green button new-issue-button gt-mr-0" href="{{.RepoLink}}/issues/new{{if.NewIssueChooseTemplate}}/choose{{end}}">{{.locale.Tr"repo.issues.new"}}</a>
<a role="button" class="ui small primary button new-issue-button gt-mr-0" href="{{.RepoLink}}/issues/new{{if.NewIssueChooseTemplate}}/choose{{end}}">{{.locale.Tr"repo.issues.new"}}</a>
<a class="ui small button" href="{{.RepoLink}}/wiki/{{.PageURL}}?action=_edit">{{.locale.Tr"repo.wiki.edit_page_button"}}</a>
<a class="ui green small button" href="{{.RepoLink}}/wiki?action=_new">{{.locale.Tr"repo.wiki.new_page_button"}}</a>
<a class="ui red small button delete-button" href="" data-url="{{.RepoLink}}/wiki/{{.PageURL}}?action=_delete" data-id="{{.PageURL}}">{{.locale.Tr"repo.wiki.delete_page_button"}}</a>
<a class="ui small primary button" href="{{.RepoLink}}/wiki?action=_new">{{.locale.Tr"repo.wiki.new_page_button"}}</a>
<a class="ui small red button delete-button" href="" data-url="{{.RepoLink}}/wiki/{{.PageURL}}?action=_delete" data-id="{{.PageURL}}">{{.locale.Tr"repo.wiki.delete_page_button"}}</a>