mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	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.
This commit is contained in:
		@@ -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()">
 | 
			
		||||
 
 | 
			
		||||
@@ -43,6 +43,7 @@ import octiconChevronLeft from '../../public/img/svg/octicon-chevron-left.svg';
 | 
			
		||||
import octiconOrganization from '../../public/img/svg/octicon-organization.svg';
 | 
			
		||||
import octiconTag from '../../public/img/svg/octicon-tag.svg';
 | 
			
		||||
import octiconGitBranch from '../../public/img/svg/octicon-git-branch.svg';
 | 
			
		||||
import octiconRss from '../../public/img/svg/octicon-rss.svg';
 | 
			
		||||
 | 
			
		||||
const svgs = {
 | 
			
		||||
  'octicon-blocked': octiconBlocked,
 | 
			
		||||
@@ -89,6 +90,7 @@ const svgs = {
 | 
			
		||||
  'octicon-organization': octiconOrganization,
 | 
			
		||||
  'octicon-tag': octiconTag,
 | 
			
		||||
  'octicon-git-branch': octiconGitBranch,
 | 
			
		||||
  'octicon-rss': octiconRss,
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
// TODO: use a more general approach to access SVG icons.
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user