2015-08-12 12:04:23 +03:00
|
|
|
{{template "base/head" .}}
|
2023-02-02 01:56:10 +03:00
|
|
|
<div role="main" aria-label="{{.Title}}" class="page-content repository view issue pull">
|
2015-08-12 12:04:23 +03:00
|
|
|
{{template "repo/header" .}}
|
|
|
|
<div class="ui container">
|
Improve UI on mobile (#19546)
Start making the mobile experience not painful and be actually usable. This contains a few smaller changes to enhance this experience.
- Submit buttons on the review forms aren't columns anymore and are now allowed to be displayed on one row.
- The label/milestone & New Issue buttons were given each own row even tough, there's enough place to do it one the same row. This commit fixes that.
- The issues+Pull tab on repo's has a third item besides the label/milestone & New Issue buttons, the search bar. On desktop there's enough place to do this on one row, for mobile it isn't, currently it was using for each item a new row. This commits fixes that by only giving the searchbar a new row and have the other two buttons on the same row.
- The notification table will now be show a scrollbar instead of overflow.
- The repo buttons(Watch, Star, Fork) on mobile were showing quite big and the SVG wasn't even displayed on the same line, if the count of those numbers were too high it would even overflow. This commit removes the SVG, as there isn't any place to show them on the same row and allows them to have a new row if the counts of those buttons are high.
- The admin page can show you a lot of interesting information, on mobile the System Status + Configuration weren't properly displayed as the margin's were too high. This commit fixes that by reducing the margin to a number that makes sense on mobile.
- Fixes to not overflow the tables but instead force them to be scrollable.
- When viewing a issue or pull request, the comments aren't full-width but instead 80% and aligned to right, on mobile this is a annoyance as there isn't much width to begin with. This commits fixes that by forcing full-width and removing the avatars on the left side and instead including them inline in the comment header.
2022-05-01 19:11:21 +03:00
|
|
|
<div class="ui two column grid">
|
2017-12-31 03:47:52 +03:00
|
|
|
<div class="column">
|
|
|
|
{{template "repo/issue/navbar" .}}
|
|
|
|
</div>
|
2021-05-29 17:00:02 +03:00
|
|
|
{{if and (not .Repository.IsArchived) (not .Issue.IsPull)}}
|
2019-01-23 21:58:38 +03:00
|
|
|
<div class="column right aligned">
|
|
|
|
{{if .PageIsIssueList}}
|
2022-06-27 23:58:46 +03:00
|
|
|
<a class="ui green button" href="{{.RepoLink}}/issues/new{{if .NewIssueChooseTemplate}}/choose{{end}}">{{.locale.Tr "repo.issues.new"}}</a>
|
2019-01-23 21:58:38 +03:00
|
|
|
{{else}}
|
2022-06-27 23:58:46 +03:00
|
|
|
<a class="ui green button {{if not .PullRequestCtx.Allowed}}disabled{{end}}" href="{{.RepoLink}}/compare/{{.BranchName | PathEscapeSegments}}...{{.PullRequestCtx.HeadInfoSubURL}}">{{.locale.Tr "repo.pulls.new"}}</a>
|
2019-01-23 21:58:38 +03:00
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
{{end}}
|
2015-08-12 12:04:23 +03:00
|
|
|
</div>
|
|
|
|
<div class="ui divider"></div>
|
2015-09-02 02:07:02 +03:00
|
|
|
{{if .Issue.IsPull}}
|
2015-12-08 01:30:52 +03:00
|
|
|
{{template "repo/issue/view_title" .}}
|
|
|
|
{{template "repo/pulls/tab_menu" .}}
|
2020-05-14 22:15:21 +03:00
|
|
|
<div class="ui bottom attached tab pull active" data-tab="request-{{.ID}}">
|
2015-12-08 01:30:52 +03:00
|
|
|
{{template "repo/issue/view_content" .}}
|
|
|
|
</div>
|
2015-09-02 02:07:02 +03:00
|
|
|
{{else}}
|
2016-07-11 00:28:56 +03:00
|
|
|
<div>
|
2016-03-03 03:18:58 +03:00
|
|
|
{{template "repo/issue/view_content" .}}
|
|
|
|
</div>
|
2015-09-02 02:07:02 +03:00
|
|
|
{{end}}
|
2015-08-12 12:04:23 +03:00
|
|
|
</div>
|
2014-03-26 17:47:20 +04:00
|
|
|
</div>
|
2015-12-08 01:30:52 +03:00
|
|
|
{{template "base/footer" .}}
|