aboutsummaryrefslogtreecommitdiffstats
path: root/web_src/js/components
diff options
context:
space:
mode:
authorjladbrook <jhladbrook@gmail.com>2023-04-25 15:08:29 +0100
committerGitHub <noreply@github.com>2023-04-25 22:08:29 +0800
commit56d4893b2a996da6388801c9c8ff16b9b588ad55 (patch)
treea9d18045562cb8c6f370cc07c6ba57e6cbe93afb /web_src/js/components
parentf16b66898091b3f375cbd3e2796fd87d9c5ca10b (diff)
downloadgitea-56d4893b2a996da6388801c9c8ff16b9b588ad55.tar.gz
gitea-56d4893b2a996da6388801c9c8ff16b9b588ad55.zip
Add RSS Feeds for branches and files (#22719)
Fix #22228 adding RSS feeds for branches and files. RSS feeds are accessed through: * [gitea]/src/branch/{branch}.rss * [gitea]/src/branch/{branch}/{file_name}.rss No changes have been made to the UI to expose the feed urls for branches and files.
Diffstat (limited to 'web_src/js/components')
-rw-r--r--web_src/js/components/RepoBranchTagSelector.vue3
1 files changed, 3 insertions, 0 deletions
diff --git a/web_src/js/components/RepoBranchTagSelector.vue b/web_src/js/components/RepoBranchTagSelector.vue
index 6a65eeec6f..863da6206f 100644
--- a/web_src/js/components/RepoBranchTagSelector.vue
+++ b/web_src/js/components/RepoBranchTagSelector.vue
@@ -39,6 +39,9 @@
<div class="scrolling menu" ref="scrollContainer">
<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">
{{ item.name }}
+ <a v-if="mode === 'branches'" role="button" class="ui compact muted right" :href="(branchURLPrefix + item.url).replace('src', 'rss')">
+ <svg-icon name="octicon-rss" :size="14"/>
+ </a>
</div>
<div class="item" v-if="showCreateNewBranch" :class="{active: active === filteredItems.length}" :ref="'listItem' + filteredItems.length">
<a href="#" @click="createNewBranch()">