-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Fix ::User Profile Page - Project/Packages Tabs Have Inconsistent Layout and Style #25029
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
Closed
puni9869
wants to merge
11
commits into
go-gitea:main
from
puni9869:punit/ISSUE-24871-fixing-user-profile-page
Closed
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
7184c0d
Fix ::User Profile Page Tabs Have Inconsistent Layout and Style
puni9869 a225fcb
Merge branch 'main' into punit/ISSUE-24871-fixing-user-profile-page
puni9869 f8f9c2a
Fixing project page in profile and repository page
puni9869 cbdd62c
Merge branch 'main' into punit/ISSUE-24871-fixing-user-profile-page
puni9869 efcec3d
Reverting the serviceworker.js
puni9869 02f17e9
Fixing package view in profile and in repository view
puni9869 d18903b
Templates formatting
puni9869 6e2f0fc
GO-Fmt
puni9869 00ee931
Merge branch 'main' into punit/ISSUE-24871-fixing-user-profile-page
puni9869 6a51512
Merge branch 'main' into punit/ISSUE-24871-fixing-user-profile-page
puni9869 718a975
Merge branch 'main' into punit/ISSUE-24871-fixing-user-profile-page
puni9869 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,18 @@ | ||
{{template "base/head" .}} | ||
<div role="main" aria-label="{{.Title}}" class="page-content repository packages"> | ||
{{template "user/overview/header" .}} | ||
{{template "projects/list" .}} | ||
<div role="main" aria-label="{{.Title}}" class="page-content {{if .ContextUser.IsOrganization}}repository packages{{else}}user profile{{end}}"> | ||
{{if .ContextUser.IsOrganization}} | ||
{{template "user/overview/header" .}} | ||
{{template "projects/list" .}} | ||
{{else}} | ||
<div class="ui container"> | ||
<div class="ui stackable grid"> | ||
{{template "user/overview/big_profile_avatar" .}} | ||
<div class="ui twelve wide column"> | ||
{{template "user/overview/header_items" .}} | ||
{{template "projects/overview_list" .}} | ||
</div> | ||
</div> | ||
</div> | ||
{{end}} | ||
</div> | ||
{{template "base/footer" .}} |
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,89 @@ | ||
<div role="main" aria-label="{{.Title}}" class="page-content repository projects"> | ||
<div class="ui tabs"> | ||
{{if .CanWriteProjects}} | ||
<div class="navbar"> | ||
<div class="ui right"> | ||
<a class="ui small green button" href="{{$.Link}}/new">{{.locale.Tr "repo.projects.new"}}</a> | ||
</div> | ||
</div> | ||
<div class="ui divider"></div> | ||
{{end}} | ||
|
||
{{template "base/alert" .}} | ||
<div class="small-menu-items ui compact tiny menu"> | ||
<a class="item{{if not .IsShowClosed}} active{{end}}" href="{{$.Link}}?state=open"> | ||
{{svg "octicon-project-symlink" 16 "gt-mr-3"}} | ||
{{.locale.PrettyNumber .OpenCount}} {{.locale.Tr "repo.issues.open_title"}} | ||
</a> | ||
<a class="item{{if .IsShowClosed}} active{{end}}" href="{{$.Link}}?state=closed"> | ||
{{svg "octicon-check" 16 "gt-mr-3"}} | ||
{{.locale.PrettyNumber .ClosedCount}} {{.locale.Tr "repo.issues.closed_title"}} | ||
</a> | ||
</div> | ||
|
||
<div class="ui right floated secondary filter menu"> | ||
<!-- Sort --> | ||
<div class="ui dropdown type jump item"> | ||
<span class="text"> | ||
{{.locale.Tr "repo.issues.filter_sort"}} | ||
{{svg "octicon-triangle-down" 14 "dropdown icon"}} | ||
</span> | ||
<div class="menu"> | ||
<a class="{{if eq .SortType "oldest"}}active {{end}}item" href="{{$.Link}}?q={{$.Keyword}}&sort=oldest&state={{$.State}}">{{.locale.Tr "repo.issues.filter_sort.oldest"}}</a> | ||
<a class="{{if eq .SortType "recentupdate"}}active {{end}}item" href="{{$.Link}}?q={{$.Keyword}}&sort=recentupdate&state={{$.State}}">{{.locale.Tr "repo.issues.filter_sort.recentupdate"}}</a> | ||
<a class="{{if eq .SortType "leastupdate"}}active {{end}}item" href="{{$.Link}}?q={{$.Keyword}}&sort=leastupdate&state={{$.State}}">{{.locale.Tr "repo.issues.filter_sort.leastupdate"}}</a> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="milestone project-options list"> | ||
{{range .Projects}} | ||
<li class="item"> | ||
{{svg .IconName}} <a href="{{.Link}}">{{.Title}}</a> | ||
<div class="meta"> | ||
{{$closedDate:= TimeSinceUnix .ClosedDateUnix $.locale}} | ||
{{if .IsClosed}} | ||
{{svg "octicon-clock"}} {{$.locale.Tr "repo.milestones.closed" $closedDate | Safe}} | ||
{{end}} | ||
<span class="issue-stats"> | ||
{{svg "octicon-issue-opened" 16 "gt-mr-3"}} | ||
{{$.locale.PrettyNumber .NumOpenIssues}} {{$.locale.Tr "repo.issues.open_title"}} | ||
{{svg "octicon-check" 16 "gt-mr-3"}} | ||
{{$.locale.PrettyNumber .NumClosedIssues}} {{$.locale.Tr "repo.issues.closed_title"}} | ||
</span> | ||
</div> | ||
{{if and $.CanWriteProjects (not $.Repository.IsArchived)}} | ||
<div class="ui right operate"> | ||
<a href="{{$.Link}}/{{.ID}}/edit" data-id={{.ID}} data-title={{.Title}}>{{svg "octicon-pencil"}} {{$.locale.Tr "repo.issues.label_edit"}}</a> | ||
{{if .IsClosed}} | ||
<a class="link-action" href data-url="{{$.Link}}/{{.ID}}/open">{{svg "octicon-check"}} {{$.locale.Tr "repo.projects.open"}}</a> | ||
{{else}} | ||
<a class="link-action" href data-url="{{$.Link}}/{{.ID}}/close">{{svg "octicon-skip"}} {{$.locale.Tr "repo.projects.close"}}</a> | ||
{{end}} | ||
<a class="delete-button" href="#" data-url="{{$.Link}}/{{.ID}}/delete" data-id="{{.ID}}">{{svg "octicon-trash"}} {{$.locale.Tr "repo.issues.label_delete"}}</a> | ||
</div> | ||
{{end}} | ||
{{if .Description}} | ||
<div class="content"> | ||
{{.RenderedContent|Str2html}} | ||
</div> | ||
{{end}} | ||
</li> | ||
{{end}} | ||
|
||
{{template "base/paginate" .}} | ||
</div> | ||
</div> | ||
</div> | ||
|
||
{{if $.CanWriteProjects}} | ||
<div class="ui g-modal-confirm delete modal"> | ||
<div class="header"> | ||
{{svg "octicon-trash"}} | ||
{{.locale.Tr "repo.projects.deletion"}} | ||
</div> | ||
<div class="content"> | ||
<p>{{.locale.Tr "repo.projects.deletion_desc"}}</p> | ||
</div> | ||
{{template "base/modal_actions_confirm" .}} | ||
</div> | ||
{{end}} |
Oops, something went wrong.
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.
Where is this code block from and can we maybe re-use a function between the two?