Browse Source

Locale for button Edit on protected branch (#4442)

tags/v1.6.0-dev
Joel da Rosa 6 years ago
parent
commit
aa27cbf229
2 changed files with 2 additions and 1 deletions
  1. 1
    0
      options/locale/locale_en-US.ini
  2. 1
    1
      templates/repo/settings/branches.tmpl

+ 1
- 0
options/locale/locale_en-US.ini View File

settings.default_branch_desc = Select a default repository branch for pull requests and code commits: settings.default_branch_desc = Select a default repository branch for pull requests and code commits:
settings.choose_branch = Choose a branch… settings.choose_branch = Choose a branch…
settings.no_protected_branch = There are no protected branches. settings.no_protected_branch = There are no protected branches.
settings.edit_protected_branch = Edit


diff.browse_source = Browse Source diff.browse_source = Browse Source
diff.parent = parent diff.parent = parent

+ 1
- 1
templates/repo/settings/branches.tmpl View File

{{range .ProtectedBranches}} {{range .ProtectedBranches}}
<tr> <tr>
<td><div class="ui basic label blue">{{.BranchName}}</div></td> <td><div class="ui basic label blue">{{.BranchName}}</div></td>
<td class="right aligned"><a class="rm ui button" href="{{$.Repository.Link}}/settings/branches/{{.BranchName}}">Edit</a></td>
<td class="right aligned"><a class="rm ui button" href="{{$.Repository.Link}}/settings/branches/{{.BranchName}}">{{$.i18n.Tr "repo.settings.edit_protected_branch"}}</a></td>
</tr> </tr>
{{else}} {{else}}
<tr class="center aligned"><td>{{.i18n.Tr "repo.settings.no_protected_branch"}}</td></tr> <tr class="center aligned"><td>{{.i18n.Tr "repo.settings.no_protected_branch"}}</td></tr>

Loading…
Cancel
Save