-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RSS icon fixes #24476
Merged
Merged
RSS icon fixes #24476
Changes from 13 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
8f5a631
RSS icon fixes
silverwind 032cb7f
move to features
silverwind d74a638
adjust selector
silverwind 6d5d402
move sub_menu_release_tag to release_tag_header and add a div for it
silverwind 7697409
make div name match filename
silverwind fc63af0
remove unused classes
silverwind 2f4932b
undo index changes
silverwind 25cf626
remove fallback rendering of repo/sub_menu on release/tag page
silverwind c5b0954
re-add repo-summary to release page with full width
silverwind 9e00958
Merge branch 'main' into rss-icon
wxiaoguang 50cf809
Merge branch 'main' into rss-icon
wxiaoguang 148d0cd
refator
wxiaoguang 69fc1cd
fine tune
wxiaoguang ff86cb8
Update templates/repo/tag/list.tmpl
wxiaoguang e936081
move repo rss icon after labels
silverwind 8bb37f7
Merge branch 'main' into rss-icon
GiteaBot File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{{$canReadReleases := $.Permission.CanRead $.UnitTypeReleases}} | ||
{{$canReadCode := $.Permission.CanRead $.UnitTypeCode}} | ||
|
||
{{if $canReadReleases}} | ||
<div class="gt-df"> | ||
<div class="gt-f1"> | ||
<h2 class="ui compact small menu header small-menu-items"> | ||
<a class="{{if .PageIsReleaseList}}active {{end}}item" href="{{.RepoLink}}/releases">{{.locale.Tr "repo.release.releases"}}</a> | ||
{{if $canReadCode}} | ||
<a class="{{if .PageIsTagList}}active {{end}}item" href="{{.RepoLink}}/tags">{{.locale.Tr "repo.release.tags"}}</a> | ||
{{end}} | ||
</h2> | ||
{{if .EnableFeed}} | ||
<a class="muted gt-mx-3" href="{{.RepoLink}}/{{if .PageIsTagList}}tags{{else}}releases{{end}}.rss" data-tooltip-content="{{.locale.Tr "rss_feed"}}">{{svg "octicon-rss" 18}}</a> | ||
{{end}} | ||
</div> | ||
{{if and (not .PageIsTagList) .CanCreateRelease}} | ||
<a class="ui right small green button" href="{{$.RepoLink}}/releases/new"> | ||
{{.locale.Tr "repo.release.new_release"}} | ||
</a> | ||
{{end}} | ||
</div> | ||
<div class="ui divider"></div> | ||
{{else if $canReadCode}} | ||
{{/* if the "repo.releases" unit is disabled, only show the "commits / branches / tags" sub menu */}} | ||
{{template "repo/sub_menu" .}} | ||
{{end}} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TBH, this might still not be the right place for the
rss
link, because there could be following labels.It doesn't bother me, so I can accept it (I haven't tested it)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree, don't like it there either. Let me try something.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could have it in the repo buttons, but I'm not sure, it's a bit confusing there because some stuff there is for the branch:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm undecided, will move after labels for now to match org page: