Skip to content

Commit ca47b74

Browse files
committed
fix
1 parent e28398b commit ca47b74

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

options/locale/locale_en-US.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ confirm_delete_selected = Confirm to delete all selected items?
144144

145145
name = Name
146146
value = Value
147+
readme = Readme
147148

148149
filter = Filter
149150
filter.clear = Clear Filter

templates/repo/home.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@
160160
</div>
161161
</div>
162162
{{end}}
163-
{{if and .ReadmeExist}}
163+
{{if .ReadmeExist}}
164164
<div class="flex-item-body">
165165
<a class="tw-flex tw-items-center tw-gap-2 muted" href="{{.TreeLink}}/{{.FileName}}">
166166
{{svg "octicon-book"}}{{ctx.Locale.Tr "readme"}}

web_src/js/features/repo-home.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export function initRepoTopicBar() {
5050
link.classList.add('repo-topic', 'ui', 'large', 'label');
5151
link.href = `${appSubUrl}/explore/repos?q=${encodeURIComponent(topic)}&topic=1`;
5252
link.textContent = topic;
53-
mgrBtn.parentNode.insertBefore(link, mgrBtn); // insert all new topics before manage button
53+
viewDiv.append(link); // insert all new topics before manage button
5454
}
5555
}
5656
hideElem(editDiv);

0 commit comments

Comments
 (0)