Skip to content

Commit 8f154c2

Browse files
committed
add
1 parent af33a11 commit 8f154c2

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

options/locale/locale_en-US.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,8 @@ confirm_delete_selected = Confirm to delete all selected items?
138138
name = Name
139139
value = Value
140140

141+
default = Default
142+
141143
[aria]
142144
navbar = Navigation Bar
143145
footer = Footer

templates/repo/branch_dropdown.tmpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
'textCreateBranchFrom': {{.root.locale.Tr "repo.branch.create_from"}},
3131
'textBranches': {{.root.locale.Tr "repo.branches"}},
3232
'textTags': {{.root.locale.Tr "repo.tags"}},
33+
'textDefault': {{.root.locale.Tr "default"}},
3334

3435
'mode': '{{if or .root.IsViewTag .isTag}}tags{{else}}branches{{end}}',
3536
'showBranchesInDropdown': {{$showBranchesInDropdown}},

web_src/js/components/RepoBranchTagSelector.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
<div class="loading-indicator is-loading" v-if="isLoading"/>
3131
<div v-for="(item, index) in filteredItems" :key="item.name" class="item" :class="{selected: item.selected, active: active === index}" @click="selectItem(item)" :ref="'listItem' + index">
3232
{{ item.name }}
33+
<div class="ui label" v-if="index===0 && mode === 'branches'">{{ textDefault }}</div>
3334
<a v-show="enableFeed && mode === 'branches'" role="button" class="rss-icon ui compact right" :href="rssURLPrefix + item.url" target="_blank" @click.stop>
3435
<!-- creating a lot of Vue component is pretty slow, so we use a static SVG here -->
3536
<svg width="14" height="14" class="svg octicon-rss"><use href="#svg-symbol-octicon-rss"/></svg>

0 commit comments

Comments
 (0)