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
123
user/settings/keys_gpg.tmpl
Normal file
123
user/settings/keys_gpg.tmpl
Normal file
@ -0,0 +1,123 @@
|
||||
<h4 class="ui top attached header">
|
||||
{{ctx.Locale.Tr "settings.manage_gpg_keys"}}
|
||||
<div class="ui right">
|
||||
<button class="ui primary tiny show-panel toggle button" data-panel="#add-gpg-key-panel">{{ctx.Locale.Tr "settings.add_key"}}</button>
|
||||
</div>
|
||||
</h4>
|
||||
<div class="ui attached segment">
|
||||
<div class="{{if not .HasGPGError}}tw-hidden{{end}} tw-mb-4" id="add-gpg-key-panel">
|
||||
<form class="ui form{{if .HasGPGError}} error{{end}}" action="{{.Link}}" method="post">
|
||||
{{.CsrfTokenHtml}}
|
||||
<input type="hidden" name="title" value="none">
|
||||
<div class="field {{if .Err_Content}}error{{end}}">
|
||||
<label for="gpg-key-content">{{ctx.Locale.Tr "settings.key_content"}}</label>
|
||||
<textarea id="gpg-key-content" name="content" placeholder="{{ctx.Locale.Tr "settings.key_content_gpg_placeholder"}}" required>{{.content}}</textarea>
|
||||
</div>
|
||||
{{if .Err_Signature}}
|
||||
<div class="ui error message">
|
||||
<p>{{ctx.Locale.Tr "settings.gpg_token_required"}}</p>
|
||||
</div>
|
||||
<div class="field">
|
||||
<label for="token">{{ctx.Locale.Tr "settings.gpg_token"}}</label>
|
||||
<input readonly="" value="{{.TokenToSign}}">
|
||||
<div class="help">
|
||||
<p>{{ctx.Locale.Tr "settings.gpg_token_help"}}</p>
|
||||
<p><code>{{printf `echo "%s" | gpg -a --default-key %s --detach-sig` .TokenToSign .PaddedKeyID}}</code></p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="field">
|
||||
<label for="gpg-key-signature">{{ctx.Locale.Tr "settings.gpg_token_signature"}}</label>
|
||||
<textarea id="gpg-key-signature" name="signature" placeholder="{{ctx.Locale.Tr "settings.key_signature_gpg_placeholder"}}" required>{{.signature}}</textarea>
|
||||
</div>
|
||||
{{end}}
|
||||
<input name="type" type="hidden" value="gpg">
|
||||
<button class="ui primary button">
|
||||
{{ctx.Locale.Tr "settings.add_key"}}
|
||||
</button>
|
||||
<button class="ui hide-panel button" data-panel="#add-gpg-key-panel">
|
||||
{{ctx.Locale.Tr "cancel"}}
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
<div class="flex-list">
|
||||
<div class="flex-item">
|
||||
<p>
|
||||
{{ctx.Locale.Tr "settings.gpg_desc"}}<br>
|
||||
{{ctx.Locale.Tr "settings.gpg_helper" "https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/about-commit-signature-verification#gpg-commit-signature-verification"}}
|
||||
</p>
|
||||
</div>
|
||||
{{range .GPGKeys}}
|
||||
<div class="flex-item">
|
||||
<div class="flex-item-leading">
|
||||
<span class="text {{if or .ExpiredUnix.IsZero ($.PageStartTime.Before .ExpiredUnix.AsTime)}}green{{end}}">{{svg "octicon-key" 32}}</span>
|
||||
</div>
|
||||
<div class="flex-item-main">
|
||||
{{if .Verified}}
|
||||
<span class="flex-text-block" data-tooltip-content="{{ctx.Locale.Tr "settings.gpg_key_verified_long"}}">{{svg "octicon-verified"}} <strong>{{ctx.Locale.Tr "settings.gpg_key_verified"}}</strong></span>
|
||||
{{end}}
|
||||
{{if .Emails}}
|
||||
<span class="flex-text-block" data-tooltip-content="{{ctx.Locale.Tr "settings.gpg_key_matched_identities_long"}}">{{svg "octicon-mail"}} {{ctx.Locale.Tr "settings.gpg_key_matched_identities"}} {{range .Emails}}<strong>{{.Email}} </strong>{{end}}</span>
|
||||
{{end}}
|
||||
<div class="flex-item-body">
|
||||
<b>{{ctx.Locale.Tr "settings.key_id"}}:</b> {{.PaddedKeyID}}
|
||||
<b>{{ctx.Locale.Tr "settings.subkeys"}}:</b> {{range .SubsKey}} {{.PaddedKeyID}} {{end}}
|
||||
</div>
|
||||
<div class="flex-item-body">
|
||||
<i>{{ctx.Locale.Tr "settings.added_on" (DateTime "short" .AddedUnix)}}</i>
|
||||
-
|
||||
<i>{{if not .ExpiredUnix.IsZero}}{{ctx.Locale.Tr "settings.valid_until_date" (DateTime "short" .ExpiredUnix)}}{{else}}{{ctx.Locale.Tr "settings.valid_forever"}}{{end}}</i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex-item-trailing">
|
||||
<button class="ui red tiny button delete-button" data-modal-id="delete-gpg" data-url="{{$.Link}}/delete?type=gpg" data-id="{{.ID}}">
|
||||
{{ctx.Locale.Tr "settings.delete_key"}}
|
||||
</button>
|
||||
{{if and (not .Verified) (ne $.VerifyingID .KeyID)}}
|
||||
<a class="ui primary tiny button" href="?verify_gpg={{.KeyID}}">{{ctx.Locale.Tr "settings.gpg_key_verify"}}</a>
|
||||
{{end}}
|
||||
</div>
|
||||
</div>
|
||||
{{if and (not .Verified) (eq $.VerifyingID .KeyID)}}
|
||||
<div class="ui segment">
|
||||
<h4>{{ctx.Locale.Tr "settings.gpg_token_required"}}</h4>
|
||||
<form class="ui form{{if $.HasGPGVerifyError}} error{{end}}" action="{{$.Link}}" method="post">
|
||||
{{$.CsrfTokenHtml}}
|
||||
<input type="hidden" name="title" value="none">
|
||||
<input type="hidden" name="content" value="{{.KeyID}}">
|
||||
<input type="hidden" name="key_id" value="{{.KeyID}}">
|
||||
<div class="field">
|
||||
<label for="token">{{ctx.Locale.Tr "settings.gpg_token"}}</label>
|
||||
<input readonly="" value="{{$.TokenToSign}}">
|
||||
<div class="help">
|
||||
<p>{{ctx.Locale.Tr "settings.gpg_token_help"}}</p>
|
||||
<p><code>{{printf `echo "%s" | gpg -a --default-key %s --detach-sig` $.TokenToSign .PaddedKeyID}}</code></p>
|
||||
</div>
|
||||
<br>
|
||||
</div>
|
||||
<div class="field">
|
||||
<label for="signature">{{ctx.Locale.Tr "settings.gpg_token_signature"}}</label>
|
||||
<textarea id="gpg-key-signature" name="signature" placeholder="{{ctx.Locale.Tr "settings.key_signature_gpg_placeholder"}}" required>{{$.signature}}</textarea>
|
||||
</div>
|
||||
<input name="type" type="hidden" value="verify_gpg">
|
||||
<button class="ui primary button">
|
||||
{{ctx.Locale.Tr "settings.gpg_key_verify"}}
|
||||
</button>
|
||||
<a class="ui red button" href="{{$.Link}}">
|
||||
{{ctx.Locale.Tr "settings.cancel"}}
|
||||
</a>
|
||||
</form>
|
||||
</div>
|
||||
{{end}}
|
||||
{{end}}
|
||||
</div>
|
||||
<div class="ui g-modal-confirm delete modal" id="delete-gpg">
|
||||
<div class="header">
|
||||
{{svg "octicon-trash"}}
|
||||
{{ctx.Locale.Tr "settings.gpg_key_deletion"}}
|
||||
</div>
|
||||
<div class="content">
|
||||
<p>{{ctx.Locale.Tr "settings.gpg_key_deletion_desc"}}</p>
|
||||
</div>
|
||||
{{template "base/modal_actions_confirm" .}}
|
||||
</div>
|
||||
</div>
|
Reference in New Issue
Block a user