-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
RSS icon fixes #24476
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
Merged
Merged
RSS icon fixes #24476
Changes from 11 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,26 @@ | ||
{{$canReadReleases := $.Permission.CanRead $.UnitTypeReleases}} | ||
{{$canReadCode := $.Permission.CanRead $.UnitTypeCode}} | ||
<div class="release-tag-header gt-df gt-ac"> | ||
<div class="release-tag-header-left gt-df gt-ac gt-f1"> | ||
{{if $canReadReleases}} | ||
<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="rss-icon" href="{{.RepoLink}}/{{if .PageIsTagList}}tags{{else}}releases{{end}}.rss" data-tooltip-content="{{.locale.Tr "rss_feed"}}">{{svg "octicon-rss" 18}}</a> | ||
{{end}} | ||
{{else if $canReadCode}} | ||
{{template "repo/sub_menu" .}} | ||
{{end}} | ||
silverwind marked this conversation as resolved.
Show resolved
Hide resolved
|
||
</div> | ||
<div class="release-tag-header-right"> | ||
{{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> |
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Uh oh!
There was an error while loading. Please reload this page.