init
This commit is contained in:
templates
admin
actions.tmpl
applications
auth
config.tmplconfig_settings.tmplcron.tmpldashboard.tmplemails
hook_new.tmplhooks.tmpllayout_footer.tmpllayout_head.tmplnavbar.tmplnotice.tmplorg
packages
queue.tmplqueue_manage.tmplrepo
runners
self_check.tmplstacktrace-row.tmplstacktrace.tmplstats.tmplsystem_status.tmpluser
api
packages
pypi
base
alert.tmplalert_details.tmpldisable_form_autofill.tmplfooter.tmplfooter_content.tmplhead.tmplhead_navbar.tmplhead_opengraph.tmplhead_script.tmplhead_style.tmplmarkup_codepreview.tmplmodal_actions_confirm.tmplpaginate.tmpl
custom
body_inner_post.tmplbody_inner_pre.tmplbody_outer_post.tmplbody_outer_pre.tmplextra_links.tmplextra_links_footer.tmplextra_tabs.tmplfooter.tmplheader.tmpl
devtest
fetch-action.tmplflex-list.tmplfomantic-dropdown.tmplfomantic-modal.tmplgitea-ui.tmpllabel.tmpllist.tmpltmplerr-sub.tmpltmplerr.tmpl
explore
home.tmplinstall.tmplmail
org
create.tmplfollow_unfollow.tmplheader.tmplhome.tmpl
member
menu.tmplprojects
settings
actions.tmplapplications.tmplapplications_oauth2_edit.tmplblocked_users.tmpldelete.tmplhook_new.tmplhooks.tmpllabels.tmpllayout_footer.tmpllayout_head.tmplnavbar.tmploptions.tmplpackages.tmplpackages_cleanup_rules_edit.tmplpackages_cleanup_rules_preview.tmplrunners_edit.tmpl
team
package
content
alpine.tmplcargo.tmplchef.tmplcomposer.tmplcomposer_dependencies.tmplconan.tmplconda.tmplcontainer.tmplcran.tmpldebian.tmplgeneric.tmplgo.tmplhelm.tmplmaven.tmplnpm.tmplnpm_dependencies.tmplnuget.tmplpub.tmplpypi.tmplrpm.tmplrubygems.tmplrubygems_dependencies.tmplswift.tmplvagrant.tmpl
metadata
alpine.tmplcargo.tmplchef.tmplcomposer.tmplconan.tmplconda.tmplcontainer.tmplcran.tmpldebian.tmplgeneric.tmplhelm.tmplmaven.tmplnpm.tmplnuget.tmplpub.tmplpypi.tmplrpm.tmplrubygems.tmplswift.tmplvagrant.tmpl
settings.tmplshared
view.tmplprojects
repo
actions
activity.tmplblame.tmplbranch
branch_dropdown.tmplcite
clone_buttons.tmplclone_script.tmplcode
code_frequency.tmplcommit_load_branches_and_tags.tmplcommit_page.tmplcommit_status.tmplcommit_statuses.tmplcommits.tmplcommits_list.tmplcommits_list_small.tmplcommits_search_dropdown.tmplcommits_table.tmplcontributors.tmplcreate.tmplcreate_helper.tmpldiff
blob_excerpt.tmplbox.tmplcomment_form.tmplcomment_form_datahandler.tmplcomments.tmplcompare.tmplconversation.tmplconversation_outdated.tmplcsv_diff.tmplescape_title.tmplimage_diff.tmplnew_comment.tmplnew_review.tmploptions_dropdown.tmplsection_code.tmplsection_split.tmplsection_unified.tmplstats.tmplwhitespace_dropdown.tmpl
editor
empty.tmplfile_info.tmplfind
forks.tmplgraph.tmplgraph
header.tmplhome.tmplicon.tmplissue
branch_selector_field.tmplcard.tmplchoose.tmplcomment_tab.tmpl
latest_commit.tmplfields
filter_actions.tmplfilter_list.tmplfilters.tmpllabel_precolors.tmpllabels.tmpllabels
edit_delete_label.tmpllabel.tmpllabel_archived.tmpllabel_list.tmpllabel_load_template.tmpllabel_new.tmpllabels_selector_field.tmpllabels_sidebar.tmpl
list.tmplmilestone
milestone_issues.tmplmilestone_new.tmplmilestones.tmplnavbar.tmplnew.tmplnew_form.tmplopenclose.tmplsearch.tmplview.tmplview_content.tmplview_content
add_reaction.tmplattachments.tmplcomments.tmplcomments_authorlink.tmplcomments_delete_time.tmplcontext_menu.tmplconversation.tmplpull.tmplpull_merge_instruction.tmplreactions.tmplreference_issue_dialog.tmplshow_role.tmplsidebar.tmplupdate_branch_by_merge.tmplwatching.tmpl
view_title.tmplmigrate
codebase.tmplgit.tmplgitbucket.tmplgitea.tmplgithub.tmplgitlab.tmplgogs.tmplhelper.tmplmigrate.tmplmigrating.tmplonedev.tmploptions.tmpl
navbar.tmplpackages.tmplprojects
pulls
pulse.tmplrecent_commits.tmplrelease
release_tag_header.tmplsearch.tmplsearch_name.tmplsettings
actions.tmplbranches.tmplcollaboration.tmpldeploy_keys.tmplgithook_edit.tmplgithooks.tmpllayout_footer.tmpllayout_head.tmpllfs.tmpllfs_file.tmpllfs_file_find.tmpllfs_locks.tmpllfs_pointers.tmplnavbar.tmploptions.tmplprotected_branch.tmplpush_mirror_sync_modal.tmplrunner_edit.tmplsecrets.tmpltags.tmpl
shabox_badge.tmplstar_unstar.tmplsub_menu.tmplwebhook
tag
unicode_escape_prompt.tmplupload.tmpluser_cards.tmplview_file.tmplview_list.tmplwatch_unwatch.tmplwatchers.tmplwiki
shared
actions
combomarkdowneditor.tmplfiletoolarge.tmplissueicon.tmplissuelist.tmplmisc
repo_search.tmplsearch
searchbottom.tmplsearchfile.tmplsecrets
user
authorlink.tmplavatarlink.tmplblock_user_dialog.tmplblocked_users.tmplname.tmplnamelink.tmplorg_profile_avatar.tmplprofile_big_avatar.tmpl
variables
webhook
status
swagger
user
auth
activate.tmplactivate_prompt.tmplcaptcha.tmplchange_passwd.tmplchange_passwd_inner.tmplfinalize_openid.tmplforgot_passwd.tmplgrant.tmplgrant_error.tmpllink_account.tmploidc_wellknown.tmplprohibit_login.tmplreset_passwd.tmplsignin.tmplsignin_inner.tmplsignin_navbar.tmplsignin_openid.tmplsignup.tmplsignup_inner.tmplsignup_openid_connect.tmplsignup_openid_navbar.tmplsignup_openid_register.tmpltwofa.tmpltwofa_scratch.tmplwebauthn.tmplwebauthn_error.tmpl
code.tmpldashboard
heatmap.tmplnotification
overview
profile.tmplsettings
account.tmplactions.tmplappearance.tmplapplications.tmplapplications_oauth2.tmplapplications_oauth2_edit.tmplapplications_oauth2_edit_form.tmplapplications_oauth2_list.tmplblocked_users.tmplgrants_oauth2.tmplhook_new.tmplhooks.tmplkeys.tmplkeys_gpg.tmplkeys_principal.tmplkeys_ssh.tmpllayout_footer.tmpllayout_head.tmplnavbar.tmplorganization.tmplpackages.tmplpackages_cleanup_rules_edit.tmplpackages_cleanup_rules_preview.tmplprofile.tmplrepos.tmplrunner_edit.tmpl
security
webhook
154
templates/user/dashboard/milestones.tmpl
Normal file
154
templates/user/dashboard/milestones.tmpl
Normal file
@ -0,0 +1,154 @@
|
||||
{{template "base/head" .}}
|
||||
<div role="main" aria-label="{{.Title}}" class="page-content dashboard issues repository milestones">
|
||||
{{template "user/dashboard/navbar" .}}
|
||||
<div class="ui container">
|
||||
<div class="flex-container">
|
||||
<div class="flex-container-nav">
|
||||
<div class="ui secondary vertical filter menu tw-bg-transparent">
|
||||
<div class="item">
|
||||
{{ctx.Locale.Tr "home.issues.in_your_repos"}}
|
||||
<strong>{{.Total}}</strong>
|
||||
</div>
|
||||
<div class="divider"></div>
|
||||
{{range .Repos}}
|
||||
{{with $Repo := .}}
|
||||
<a class="{{range $.RepoIDs}}{{if eq . $Repo.ID}}active{{end}}{{end}} repo name item" href="?repos=[
|
||||
{{- with $include := true -}}
|
||||
{{- range $.RepoIDs -}}
|
||||
{{- if eq . $Repo.ID -}}
|
||||
{{$include = false}}
|
||||
{{- else -}}
|
||||
{{.}}%2C
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- if eq $include true -}}
|
||||
{{$Repo.ID}}%2C
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
]&sort={{$.SortType}}&state={{$.State}}&q={{$.Keyword}}" title="{{.FullName}}">
|
||||
<span class="text truncate">{{$Repo.FullName}}</span>
|
||||
<div class="ui {{if $.IsShowClosed}}red{{else}}green{{end}} label">{{index $.Counts $Repo.ID}}</div>
|
||||
</a>
|
||||
{{end}}
|
||||
{{end}}
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex-container-main content">
|
||||
<div class="list-header">
|
||||
<div class="small-menu-items ui compact tiny menu list-header-toggle">
|
||||
<a class="item{{if not .IsShowClosed}} active{{end}}" href="?repos=[{{range $.RepoIDs}}{{.}}%2C{{end}}]&sort={{$.SortType}}&state=open&q={{$.Keyword}}">
|
||||
{{svg "octicon-milestone" 16 "tw-mr-2"}}
|
||||
{{ctx.Locale.PrettyNumber .MilestoneStats.OpenCount}} {{ctx.Locale.Tr "repo.issues.open_title"}}
|
||||
</a>
|
||||
<a class="item{{if .IsShowClosed}} active{{end}}" href="?repos=[{{range $.RepoIDs}}{{.}}%2C{{end}}]&sort={{$.SortType}}&state=closed&q={{$.Keyword}}">
|
||||
{{svg "octicon-check" 16 "tw-mr-2"}}
|
||||
{{ctx.Locale.PrettyNumber .MilestoneStats.ClosedCount}} {{ctx.Locale.Tr "repo.issues.closed_title"}}
|
||||
</a>
|
||||
</div>
|
||||
<form class="list-header-search ui form ignore-dirty">
|
||||
<input type="hidden" name="type" value="{{$.ViewType}}">
|
||||
<input type="hidden" name="repos" value="[{{range $.RepoIDs}}{{.}},{{end}}]">
|
||||
<input type="hidden" name="sort" value="{{$.SortType}}">
|
||||
<input type="hidden" name="state" value="{{$.State}}">
|
||||
{{template "shared/search/combo" dict "Value" $.Keyword}}
|
||||
</form>
|
||||
<!-- Sort -->
|
||||
<div class="list-header-sort ui dropdown type jump item">
|
||||
<span class="text">
|
||||
{{ctx.Locale.Tr "repo.issues.filter_sort"}}
|
||||
</span>
|
||||
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
|
||||
<div class="menu">
|
||||
<a class="{{if or (eq .SortType "closestduedate") (not .SortType)}}active {{end}}item" href="?repos=[{{range $.RepoIDs}}{{.}}%2C{{end}}]&sort=closestduedate&state={{$.State}}&q={{$.Keyword}}">{{ctx.Locale.Tr "repo.milestones.filter_sort.earliest_due_data"}}</a>
|
||||
<a class="{{if eq .SortType "furthestduedate"}}active {{end}}item" href="?repos=[{{range $.RepoIDs}}{{.}}%2C{{end}}]&sort=furthestduedate&state={{$.State}}&q={{$.Keyword}}">{{ctx.Locale.Tr "repo.milestones.filter_sort.latest_due_date"}}</a>
|
||||
<a class="{{if eq .SortType "leastcomplete"}}active {{end}}item" href="?repos=[{{range $.RepoIDs}}{{.}}%2C{{end}}]&sort=leastcomplete&state={{$.State}}&q={{$.Keyword}}">{{ctx.Locale.Tr "repo.milestones.filter_sort.least_complete"}}</a>
|
||||
<a class="{{if eq .SortType "mostcomplete"}}active {{end}}item" href="?repos=[{{range $.RepoIDs}}{{.}}%2C{{end}}]&sort=mostcomplete&state={{$.State}}&q={{$.Keyword}}">{{ctx.Locale.Tr "repo.milestones.filter_sort.most_complete"}}</a>
|
||||
<a class="{{if eq .SortType "mostissues"}}active {{end}}item" href="?repos=[{{range $.RepoIDs}}{{.}}%2C{{end}}]&sort=mostissues&state={{$.State}}&q={{$.Keyword}}">{{ctx.Locale.Tr "repo.milestones.filter_sort.most_issues"}}</a>
|
||||
<a class="{{if eq .SortType "leastissues"}}active {{end}}item" href="?repos=[{{range $.RepoIDs}}{{.}}%2C{{end}}]&sort=leastissues&state={{$.State}}&q={{$.Keyword}}">{{ctx.Locale.Tr "repo.milestones.filter_sort.least_issues"}}</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="milestone-list">
|
||||
{{range .Milestones}}
|
||||
<li class="milestone-card">
|
||||
<div class="milestone-header">
|
||||
<h3 class="flex-text-block tw-m-0">
|
||||
<span class="ui large label">
|
||||
{{.Repo.FullName}}
|
||||
</span>
|
||||
{{svg "octicon-milestone" 16}}
|
||||
<a class="muted" href="{{.Repo.Link}}/milestone/{{.ID}}">{{.Name}}</a>
|
||||
</h3>
|
||||
<div class="tw-flex tw-items-center">
|
||||
<span class="tw-mr-2">{{.Completeness}}%</span>
|
||||
<progress value="{{.Completeness}}" max="100"></progress>
|
||||
</div>
|
||||
</div>
|
||||
<div class="milestone-toolbar">
|
||||
<div class="group">
|
||||
<div class="flex-text-block">
|
||||
{{svg "octicon-issue-opened" 14}}
|
||||
{{ctx.Locale.PrettyNumber .NumOpenIssues}} {{ctx.Locale.Tr "repo.issues.open_title"}}
|
||||
</div>
|
||||
<div class="flex-text-block">
|
||||
{{svg "octicon-check" 14}}
|
||||
{{ctx.Locale.PrettyNumber .NumClosedIssues}} {{ctx.Locale.Tr "repo.issues.closed_title"}}
|
||||
</div>
|
||||
{{if .TotalTrackedTime}}
|
||||
<div class="flex-text-block">
|
||||
{{svg "octicon-clock"}}
|
||||
{{.TotalTrackedTime|Sec2Time}}
|
||||
</div>
|
||||
{{end}}
|
||||
{{if .UpdatedUnix}}
|
||||
<div class="flex-text-block">
|
||||
{{svg "octicon-clock"}}
|
||||
{{ctx.Locale.Tr "repo.milestones.update_ago" (TimeSinceUnix .UpdatedUnix ctx.Locale)}}
|
||||
</div>
|
||||
{{end}}
|
||||
<div class="flex-text-block">
|
||||
{{if .IsClosed}}
|
||||
{{$closedDate:= TimeSinceUnix .ClosedDateUnix ctx.Locale}}
|
||||
{{svg "octicon-clock" 14}}
|
||||
{{ctx.Locale.Tr "repo.milestones.closed" $closedDate}}
|
||||
{{else}}
|
||||
{{if .DeadlineString}}
|
||||
<span{{if .IsOverdue}} class="text red"{{end}}>
|
||||
{{svg "octicon-calendar" 14}}
|
||||
{{DateTime "short" .DeadlineString}}
|
||||
</span>
|
||||
{{else}}
|
||||
{{svg "octicon-calendar" 14}}
|
||||
{{ctx.Locale.Tr "repo.milestones.no_due_date"}}
|
||||
{{end}}
|
||||
{{end}}
|
||||
</div>
|
||||
</div>
|
||||
{{if and (or $.CanWriteIssues $.CanWritePulls) (not $.Repository.IsArchived)}}
|
||||
<div class="group">
|
||||
<a class="flex-text-inline" href="{{$.Link}}/{{.ID}}/edit">{{svg "octicon-pencil" 14}}{{ctx.Locale.Tr "repo.issues.label_edit"}}</a>
|
||||
{{if .IsClosed}}
|
||||
<a class="link-action flex-text-inline" href data-url="{{$.Link}}/{{.ID}}/open">{{svg "octicon-check" 14}}{{ctx.Locale.Tr "repo.milestones.open"}}</a>
|
||||
{{else}}
|
||||
<a class="link-action flex-text-inline" href data-url="{{$.Link}}/{{.ID}}/close">{{svg "octicon-x" 14}}{{ctx.Locale.Tr "repo.milestones.close"}}</a>
|
||||
{{end}}
|
||||
<a class="delete-button flex-text-inline" href="#" data-url="{{$.RepoLink}}/milestones/delete" data-id="{{.ID}}">{{svg "octicon-trash" 14}}{{ctx.Locale.Tr "repo.issues.label_delete"}}</a>
|
||||
</div>
|
||||
{{end}}
|
||||
</div>
|
||||
{{if .Content}}
|
||||
<div class="markup content">
|
||||
{{.RenderedContent}}
|
||||
</div>
|
||||
{{end}}
|
||||
</li>
|
||||
{{end}}
|
||||
|
||||
{{template "base/paginate" .}}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{template "base/footer" .}}
|
Reference in New Issue
Block a user