deleted templates folder
This commit is contained in:
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
119
admin/user/list.tmpl
Normal file
119
admin/user/list.tmpl
Normal file
@ -0,0 +1,119 @@
|
||||
{{template "admin/layout_head" (dict "ctxData" . "pageClass" "admin user")}}
|
||||
<div class="admin-setting-content">
|
||||
<h4 class="ui top attached header">
|
||||
{{ctx.Locale.Tr "admin.users.user_manage_panel"}} ({{ctx.Locale.Tr "admin.total" .Total}})
|
||||
<div class="ui right">
|
||||
<a class="ui primary tiny button" href="{{AppSubUrl}}/admin/users/new">{{ctx.Locale.Tr "admin.users.new_account"}}</a>
|
||||
</div>
|
||||
</h4>
|
||||
<div class="ui attached segment">
|
||||
<form class="ui form ignore-dirty" id="user-list-search-form">
|
||||
|
||||
<!-- Right Menu -->
|
||||
<div class="ui right floated secondary filter menu">
|
||||
<!-- Status Filter Menu Item -->
|
||||
<div class="ui dropdown type jump item">
|
||||
<span class="text">{{ctx.Locale.Tr "admin.users.list_status_filter.menu_text"}}</span>
|
||||
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
|
||||
<div class="menu flex-items-menu">
|
||||
<a class="item j-reset-status-filter">{{ctx.Locale.Tr "admin.users.list_status_filter.reset"}}</a>
|
||||
<div class="divider"></div>
|
||||
<label class="item"><input type="radio" name="status_filter[is_admin]" value="1"> {{ctx.Locale.Tr "admin.users.list_status_filter.is_admin"}}</label>
|
||||
<label class="item"><input type="radio" name="status_filter[is_admin]" value="0"> {{ctx.Locale.Tr "admin.users.list_status_filter.not_admin"}}</label>
|
||||
<div class="divider"></div>
|
||||
<label class="item"><input type="radio" name="status_filter[is_active]" value="1"> {{ctx.Locale.Tr "admin.users.list_status_filter.is_active"}}</label>
|
||||
<label class="item"><input type="radio" name="status_filter[is_active]" value="0"> {{ctx.Locale.Tr "admin.users.list_status_filter.not_active"}}</label>
|
||||
<div class="divider"></div>
|
||||
<label class="item"><input type="radio" name="status_filter[is_restricted]" value="0"> {{ctx.Locale.Tr "admin.users.list_status_filter.not_restricted"}}</label>
|
||||
<label class="item"><input type="radio" name="status_filter[is_restricted]" value="1"> {{ctx.Locale.Tr "admin.users.list_status_filter.is_restricted"}}</label>
|
||||
<div class="divider"></div>
|
||||
<label class="item"><input type="radio" name="status_filter[is_prohibit_login]" value="0"> {{ctx.Locale.Tr "admin.users.list_status_filter.not_prohibit_login"}}</label>
|
||||
<label class="item"><input type="radio" name="status_filter[is_prohibit_login]" value="1"> {{ctx.Locale.Tr "admin.users.list_status_filter.is_prohibit_login"}}</label>
|
||||
<div class="divider"></div>
|
||||
<label class="item"><input type="radio" name="status_filter[is_2fa_enabled]" value="1"> {{ctx.Locale.Tr "admin.users.list_status_filter.is_2fa_enabled"}}</label>
|
||||
<label class="item"><input type="radio" name="status_filter[is_2fa_enabled]" value="0"> {{ctx.Locale.Tr "admin.users.list_status_filter.not_2fa_enabled"}}</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Sort Menu Item -->
|
||||
<div class="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">
|
||||
<button class="item" name="sort" value="oldest">{{ctx.Locale.Tr "repo.issues.filter_sort.oldest"}}</button>
|
||||
<button class="item" name="sort" value="newest">{{ctx.Locale.Tr "repo.issues.filter_sort.latest"}}</button>
|
||||
<button class="item" name="sort" value="alphabetically">{{ctx.Locale.Tr "repo.issues.label.filter_sort.alphabetically"}}</button>
|
||||
<button class="item" name="sort" value="reversealphabetically">{{ctx.Locale.Tr "repo.issues.label.filter_sort.reverse_alphabetically"}}</button>
|
||||
<button class="item" name="sort" value="recentupdate">{{ctx.Locale.Tr "repo.issues.filter_sort.recentupdate"}}</button>
|
||||
<button class="item" name="sort" value="leastupdate">{{ctx.Locale.Tr "repo.issues.filter_sort.leastupdate"}}</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{template "shared/search/combo" dict "Value" .Keyword "Placeholder" (ctx.Locale.Tr "search.user_kind")}}
|
||||
</form>
|
||||
</div>
|
||||
<div class="ui attached table segment">
|
||||
<table class="ui very basic striped table unstackable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th data-sortt-asc="oldest" data-sortt-desc="newest">ID{{SortArrow "oldest" "newest" .SortType false}}</th>
|
||||
<th data-sortt-asc="alphabetically" data-sortt-desc="reversealphabetically" data-sortt-default="true">
|
||||
{{ctx.Locale.Tr "admin.users.name"}}
|
||||
{{SortArrow "alphabetically" "reversealphabetically" $.SortType true}}
|
||||
</th>
|
||||
<th>{{ctx.Locale.Tr "email"}}</th>
|
||||
<th>{{ctx.Locale.Tr "admin.users.activated"}}</th>
|
||||
<th>{{ctx.Locale.Tr "admin.users.restricted"}}</th>
|
||||
<th>{{ctx.Locale.Tr "admin.users.2fa"}}</th>
|
||||
<th>{{ctx.Locale.Tr "admin.users.created"}}</th>
|
||||
<th data-sortt-asc="lastlogin" data-sortt-desc="reverselastlogin">
|
||||
{{ctx.Locale.Tr "admin.users.last_login"}}
|
||||
{{SortArrow "lastlogin" "reverselastlogin" $.SortType false}}
|
||||
</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{{range .Users}}
|
||||
<tr>
|
||||
<td>{{.ID}}</td>
|
||||
<td>
|
||||
<a href="{{.HomeLink}}">{{.Name}}</a>
|
||||
{{if .IsAdmin}}
|
||||
<span class="ui mini label">{{ctx.Locale.Tr "admin.users.admin"}}</span>
|
||||
{{else if eq 2 .Type}}{{/* Reserved user */}}
|
||||
<span class="ui mini label">{{ctx.Locale.Tr "admin.users.reserved"}}</span>
|
||||
{{else if eq 4 .Type}}{{/* Bot "user" */}}
|
||||
<span class="ui mini label">{{ctx.Locale.Tr "admin.users.bot"}}</span>
|
||||
{{else if eq 5 .Type}}{{/* Remote user */}}
|
||||
<span class="ui mini label">{{ctx.Locale.Tr "admin.users.remote"}}</span>
|
||||
{{end}}
|
||||
</td>
|
||||
<td class="gt-ellipsis tw-max-w-48">{{.Email}}</td>
|
||||
<td>{{if .IsActive}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</td>
|
||||
<td>{{if .IsRestricted}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</td>
|
||||
<td>{{if index $.UsersTwoFaStatus .ID}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</td>
|
||||
<td>{{DateTime "short" .CreatedUnix}}</td>
|
||||
{{if .LastLoginUnix}}
|
||||
<td>{{DateTime "short" .LastLoginUnix}}</td>
|
||||
{{else}}
|
||||
<td><span>{{ctx.Locale.Tr "admin.users.never_login"}}</span></td>
|
||||
{{end}}
|
||||
<td>
|
||||
<div class="tw-flex tw-gap-2">
|
||||
<a href="{{$.Link}}/{{.ID}}" data-tooltip-content="{{ctx.Locale.Tr "admin.users.details"}}">{{svg "octicon-person"}}</a>
|
||||
<a href="{{$.Link}}/{{.ID}}/edit" data-tooltip-content="{{ctx.Locale.Tr "edit"}}">{{svg "octicon-pencil"}}</a>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
{{end}}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
{{template "base/paginate" .}}
|
||||
</div>
|
||||
{{template "admin/layout_footer" .}}
|
Reference in New Issue
Block a user