Compare commits

..

2 Commits

Author SHA1 Message Date
f6b01875d3
chore: add .drone.yml as per #1
* to be added: private key as a secret to drone
2020-11-21 20:41:26 +01:00
1a536f8618
chore: add ansible config, hosts and syncpush.yml task 2020-11-21 20:29:32 +01:00
13 changed files with 209 additions and 255 deletions

10
.drone.yml Normal file

@ -0,0 +1,10 @@
---
- name: apply ansible playbook
image: plugins/ansible:1
settings:
playbook: syncpush.yml
inventory: hosts
when:
event:
- push
- tag

15
ansible.cfg Normal file

@ -0,0 +1,15 @@
[defaults]
inventory = ./hosts
library = library
remote_tmp = $HOME/.ansible/tmp
remote_user = root
nocows = 1
roles_path = roles
retry_files_enabled = False
callback_plugins = plugins/callback
callback_whitelist = profile_tasks
[ssh_connection]
pipelining = True
scp_if_ssh = True
retries = 5

@ -1,32 +1,16 @@
User-agent: MJ12bot User-agent: MJ12bot
Disallow: / Disallow: /
User-agent: AdsBot* User-agent: AdsBot-Google
Disallow: / Disallow: /
User-agent: Mediapartners* User-agent: Mediapartners*
Disallow: / Disallow: /
User-agent: *SemrushBot* User-agent: SemrushBot*
Disallow: /
User-agent: BLEXBot
Disallow: /
User-agent: DataForSeoBot
Disallow: /
User-agent: PetalBot
Disallow: / Disallow: /
@ -94,6 +78,9 @@ Disallow: /search
Disallow: */search Disallow: */search
Disallow: /*q= Disallow: /*q=
Disallow: /*.atom Disallow: /*.atom
Disallow: /assets/ Allow: /*/*/tree/master
Allow: /*/*/tree/main
Allow: /*/*/blob/master
Allow: /*/*/blob/main
Crawl-delay: 3 Crawl-delay: 1

@ -1,4 +1,8 @@
# git.dotya.ml # git.dotya.ml
SHA256:i6DvPgfdDa9vafcCYdsleV1v5P2WFPHrNt/eJWL1KTo (ED25519) SHA256:i6DvPgfdDa9vafcCYdsleV1v5P2WFPHrNt/eJWL1KTo (ED25519)
SHA256:1ksd14LUKfLaRriGWt/zlfhetUUVv4cehIffK//iH6o (ECDSA)
SHA256:2t/JTS5p/AGee3mj3DRCWVhnGAjxC67akaG+qE9J4cU (RSA)
MD5:25:e6:59:33:f7:2c:f3:ce:ad:03:ef:81:4b:c1:b1:17 (ED25519) MD5:25:e6:59:33:f7:2c:f3:ce:ad:03:ef:81:4b:c1:b1:17 (ED25519)
MD5:1d:d1:8b:51:cc:d2:08:19:51:1a:f8:20:66:55:07:fb (ECDSA)
MD5:1b:95:d7:b7:01:19:ac:81:7d:71:cf:df:05:29:57:85 (RSA)

@ -1,30 +1,25 @@
<footer class="page-footer" role="group" aria-label="{{.locale.Tr "aria.footer"}}"> <footer>
<div class="left-links" role="contentinfo" aria-label="{{.locale.Tr "aria.footer.software"}}"> <div class="ui container">
<a target="_blank" rel="noopener noreferrer" href="https://gitea.io">{{.locale.Tr "powered_by" "Gitea"}}</a> <div class="ui left">
{{if (or .ShowFooterVersion .PageIsAdmin)}} {{.i18n.Tr "powered_by" "Gitea"}} {{if (or .ShowFooterVersion .PageIsAdmin)}}{{.i18n.Tr "version"}}: {{AppVer}}{{end}} {{if ShowFooterTemplateLoadTime}}{{.i18n.Tr "page"}}: <strong>{{LoadTimes .PageStartTime}}</strong> {{.i18n.Tr "template"}}: <strong>{{call .TmplLoadTimes}}</strong>{{end}}
{{.locale.Tr "version"}}: </div>
{{if .IsAdmin}} <div class="ui right links">
<a href="/admin/config">{{AppVer}}</a> {{if .ShowFooterBranding}}
{{else}} <a target="_blank" rel="noopener noreferrer" href="https://github.com/go-gitea/gitea">{{svg "octicon-mark-github"}}<span class="sr-only">GitHub</span></a>
{{AppVer}} {{end}}
{{end}} <div class="ui language bottom floating slide up dropdown link item">
{{end}} {{svg "octicon-globe"}}
{{if and .TemplateLoadTimes ShowFooterTemplateLoadTime}} <div class="text">{{.LangName}}</div>
{{.locale.Tr "page"}}: <strong>{{LoadTimes .PageStartTime}}</strong> <div class="menu">
{{.locale.Tr "template"}}{{if .TemplateName}} {{.TemplateName}}{{end}}: <strong>{{call .TemplateLoadTimes}}</strong> {{range .AllLangs}}
{{end}} <a lang="{{.Lang}}" class="item {{if eq $.Lang .Lang}}active selected{{end}}" href="{{if eq $.Lang .Lang}}#{{else}}{{$.Link}}?lang={{.Lang}}{{end}}">{{.Name}}</a>
</div> {{end}}
<div class="right-links" role="group" aria-label="{{.locale.Tr "aria.footer.links"}}"> </div>
<div class="ui dropdown upward language"> </div>
<span class="flex-text-inline">{{svg "octicon-globe" 14}} {{.locale.LangName}}</span> <a href="{{StaticUrlPrefix}}/js/licenses.txt">{{.i18n.Tr "licenses"}}</a>
<div class="menu language-menu"> {{if .EnableSwagger}}<a href="{{AppSubUrl}}/api/swagger">API</a>{{end}}
{{range .AllLangs}} {{template "custom/extra_links_footer" .}}
<a lang="{{.Lang}}" data-url="/?lang={{.Lang}}" class="item {{if eq $.locale.Lang .Lang}}active selected{{end}}">{{.Name}}</a> {{if (or .ShowFooterVersion .PageIsAdmin)}}<span class="version">{{GoVer}}</span>{{end}}
{{end}}
</div>
</div> </div>
<a href="/assets/js/licenses.txt">{{.locale.Tr "licenses"}}</a>
{{if .EnableSwagger}}<a href="/api/swagger">API</a>{{end}}
{{template "custom/extra_links_footer" .}}
</div> </div>
</footer> </footer>

@ -1,205 +1,151 @@
{{$notificationUnreadCount := 0}} <div class="ui container" id="navbar">
{{if and .IsSigned .NotificationUnreadCount}} <div class="item brand" style="justify-content: space-between;">
{{$notificationUnreadCount = call .NotificationUnreadCount}} <a href="{{AppSubUrl}}/">
{{end}} <img class="ui mini image" src="{{StaticUrlPrefix}}/img/git.dotya.ml.svg" alt="git.dotya.ml icon">
<nav id="navbar" aria-label="{{.locale.Tr "aria.navbar"}}">
<div class="navbar-left ui secondary menu">
<!-- the logo -->
<a class="item" id="navbar-logo" href="/" aria-label="{{if .IsSigned}}{{.locale.Tr "dashboard"}}{{else}}{{.locale.Tr "home"}}{{end}}">
<img width="30" height="30" {{if .SignedUser}}{{if not (eq .SignedUser.Theme "arc-green" "42l-dark" "42l-light" "catppuccin-mocha-blue" "catppuccin-mocha-green")}}style="filter: invert(.9);"{{end}}{{else if not (eq DefaultTheme "arc-green" "42l-dark" "42l-light" "catppuccin-mocha-blue" "catppuccin-mocha-green")}}style="filter: invert(.9);"{{end}} src="/assets/img/logo.svg" alt="git.dotya.ml {{.locale.Tr "logo"}}" aria-hidden="true">
</a> </a>
<div class="ui basic icon button mobile-only" id="navbar-expand-toggle">
<!-- mobile right menu, it must be here because in mobile view, each item is a flex column, the first item is a full row column --> <i class="sidebar icon"></i>
<div class="ui secondary menu item navbar-mobile-right">
{{if .IsSigned}}
<a id="mobile-notifications-icon" class="item gt-w-auto gt-p-3" href="{{AppSubUrl}}/notifications" data-tooltip-content="{{.locale.Tr "notifications"}}" aria-label="{{.locale.Tr "notifications"}}">
<div class="gt-relative">
{{svg "octicon-bell"}}
<span class="notification_count{{if not $notificationUnreadCount}} gt-hidden{{end}}">{{$notificationUnreadCount}}</span>
</div>
</a>
{{end}}
<button class="item gt-w-auto ui icon mini button gt-p-3 gt-m-0" id="navbar-expand-toggle">{{svg "octicon-three-bars"}}</button>
</div> </div>
<!-- navbar links non-mobile -->
{{if and .IsSigned .MustChangePassword}}
{{/* No links */}}
{{else if .IsSigned}}
{{if not .UnitIssuesGlobalDisabled}}
<a class="item{{if .PageIsIssues}} active{{end}}" href="{{AppSubUrl}}/issues">{{.locale.Tr "issues"}}</a>
{{end}}
{{if not .UnitPullsGlobalDisabled}}
<a class="item{{if .PageIsPulls}} active{{end}}" href="{{AppSubUrl}}/pulls">{{.locale.Tr "pull_requests"}}</a>
{{end}}
{{if not (and .UnitIssuesGlobalDisabled .UnitPullsGlobalDisabled)}}
{{if .ShowMilestonesDashboardPage}}
<a class="item{{if .PageIsMilestonesDashboard}} active{{end}}" href="{{AppSubUrl}}/milestones">{{.locale.Tr "milestones"}}</a>
{{end}}
{{end}}
<a class="item{{if .PageIsExplore}} active{{end}}" href="{{AppSubUrl}}/explore/repos">{{.locale.Tr "explore"}}</a>
{{else if .IsLandingPageOrganizations}}
<a class="item{{if .PageIsExplore}} active{{end}}" href="{{AppSubUrl}}/explore/organizations">{{.locale.Tr "explore"}}</a>
{{else}}
<a class="item{{if .PageIsExplore}} active{{end}}" href="{{AppSubUrl}}/explore/repos">{{.locale.Tr "explore"}}</a>
{{end}}
{{template "custom/extra_links" .}}
{{if not .IsSigned}}
<a class="item" target="_blank" rel="noopener noreferrer" href="https://docs.gitea.com">{{.locale.Tr "help"}}</a>
{{end}}
</div> </div>
{{if and .IsSigned .MustChangePassword}}
<!-- the full dropdown menus --> {{/* No links */}}
<div class="navbar-right ui secondary menu"> {{else if .IsSigned}}
{{if and .IsSigned .MustChangePassword}} <a class="item {{if .PageIsDashboard}}active{{end}}" href="{{AppSubUrl}}/">{{.i18n.Tr "dashboard"}}</a>
<div class="ui dropdown jump item" data-tooltip-content="{{.locale.Tr "user_profile_and_more"}}"> {{if not .UnitIssuesGlobalDisabled}}
<span class="text gt-df gt-ac"> <a class="item {{if .PageIsIssues}}active{{end}}" href="{{AppSubUrl}}/issues">{{.i18n.Tr "issues"}}</a>
{{ctx.AvatarUtils.Avatar .SignedUser 24 "gt-mr-2"}} {{end}}
<span class="mobile-only gt-ml-3">{{.SignedUser.Name}}</span> {{if not .UnitPullsGlobalDisabled}}
<span class="not-mobile">{{svg "octicon-triangle-down"}}</span> <a class="item {{if .PageIsPulls}}active{{end}}" href="{{AppSubUrl}}/pulls">{{.i18n.Tr "pull_requests"}}</a>
{{end}}
{{if not (and .UnitIssuesGlobalDisabled .UnitPullsGlobalDisabled)}}
{{if .ShowMilestonesDashboardPage}}<a class="item {{if .PageIsMilestonesDashboard}}active{{end}}" href="{{AppSubUrl}}/milestones">{{.i18n.Tr "milestones"}}</a>{{end}}
{{end}}
<a class="item {{if .PageIsExplore}}active{{end}}" href="{{AppSubUrl}}/explore/repos">{{.i18n.Tr "explore"}}</a>
{{else if .IsLandingPageHome}}
<a class="item {{if .PageIsHome}}active{{end}}" href="{{AppSubUrl}}/">{{.i18n.Tr "home"}}</a>
<a class="item {{if .PageIsExplore}}active{{end}}" href="{{AppSubUrl}}/explore/repos">{{.i18n.Tr "explore"}}</a>
{{else if .IsLandingPageExplore}}
<a class="item {{if .PageIsExplore}}active{{end}}" href="{{AppSubUrl}}/explore/repos">{{.i18n.Tr "home"}}</a>
{{else if .IsLandingPageOrganizations}}
<a class="item {{if .PageIsExplore}}active{{end}}" href="{{AppSubUrl}}/explore/organizations">{{.i18n.Tr "home"}}</a>
{{end}}
{{template "custom/extra_links" .}}
{{/*
<div class="item">
<div class="ui icon input">
<input class="searchbox" type="text" placeholder="{{.i18n.Tr "search_project"}}">
<i class="search icon"></i>
</div>
</div>
*/}}
{{if and .IsSigned .MustChangePassword}}
<div class="right stackable menu">
<div class="ui dropdown jump item poping up" tabindex="-1" data-content="{{.i18n.Tr "user_profile_and_more"}}" data-variation="tiny inverted">
<span class="text">
<img class="ui tiny avatar image" width="24" height="24" src="{{.SignedUser.RelAvatarLink}}">
<span class="sr-only">{{.i18n.Tr "user_profile_and_more"}}</span>
<span class="mobile-only">{{.SignedUser.Name}}</span>
<span class="fitted not-mobile" tabindex="-1">{{svg "octicon-triangle-down" 16}}</span>
</span> </span>
<div class="menu user-menu"> <div class="menu user-menu" tabindex="-1">
<div class="ui header"> <div class="ui header">
{{.locale.Tr "signed_in_as"}} <strong>{{.SignedUser.Name}}</strong> {{.i18n.Tr "signed_in_as"}} <strong>{{.SignedUser.Name}}</strong>
</div> </div>
<div class="divider"></div> <div class="divider"></div>
<a class="item link-action" href data-url="{{AppSubUrl}}/user/logout"> <a class="item link-action" href data-url="{{AppSubUrl}}/user/logout" data-redirect="{{AppSubUrl}}/">
{{svg "octicon-sign-out"}} {{svg "octicon-sign-out" 16}}
{{.locale.Tr "sign_out"}} {{.i18n.Tr "sign_out"}}<!-- Sign Out -->
</a> </a>
</div><!-- end content avatar menu --> </div><!-- end content avatar menu -->
</div><!-- end dropdown avatar menu --> </div><!-- end dropdown avatar menu -->
{{else if .IsSigned}} </div>
{{if EnableTimetracking}} {{else if .IsSigned}}
<a class="active-stopwatch-trigger item gt-mx-0{{if not .ActiveStopwatch}} gt-hidden{{end}}" href="{{.ActiveStopwatch.IssueLink}}" title="{{.locale.Tr "active_stopwatch"}}"> <div class="right stackable menu">
<div class="gt-relative"> <a href="{{AppSubUrl}}/notifications" class="item poping up" data-content='{{.i18n.Tr "notifications"}}' data-variation="tiny inverted">
{{svg "octicon-stopwatch"}}
<span class="header-stopwatch-dot"></span>
</div>
<span class="mobile-only gt-ml-3">{{.locale.Tr "active_stopwatch"}}</span>
</a>
<div class="active-stopwatch-popup item tippy-target gt-p-3">
<div class="gt-df gt-ac">
<a class="stopwatch-link gt-df gt-ac" href="{{.ActiveStopwatch.IssueLink}}">
{{svg "octicon-issue-opened" 16 "gt-mr-3"}}
<span class="stopwatch-issue">{{.ActiveStopwatch.RepoSlug}}#{{.ActiveStopwatch.IssueIndex}}</span>
<span class="ui primary label stopwatch-time gt-my-0 gt-mx-4" data-seconds="{{.ActiveStopwatch.Seconds}}">
{{if .ActiveStopwatch}}{{Sec2Time .ActiveStopwatch.Seconds}}{{end}}
</span>
</a>
<form class="stopwatch-commit" method="post" action="{{.ActiveStopwatch.IssueLink}}/times/stopwatch/toggle">
{{.CsrfTokenHtml}}
<button
type="submit"
class="ui button mini compact basic icon"
data-tooltip-content="{{.locale.Tr "repo.issues.stop_tracking"}}"
>{{svg "octicon-square-fill"}}</button>
</form>
<form class="stopwatch-cancel" method="post" action="{{.ActiveStopwatch.IssueLink}}/times/stopwatch/cancel">
{{.CsrfTokenHtml}}
<button
type="submit"
class="ui button mini compact basic icon"
data-tooltip-content="{{.locale.Tr "repo.issues.cancel_tracking"}}"
>{{svg "octicon-trash"}}</button>
</form>
</div>
</div>
{{end}}
<a class="item not-mobile gt-mx-0" href="{{AppSubUrl}}/notifications" data-tooltip-content="{{.locale.Tr "notifications"}}" aria-label="{{.locale.Tr "notifications"}}">
<div class="gt-relative">
{{svg "octicon-bell"}}
<span class="notification_count{{if not $notificationUnreadCount}} gt-hidden{{end}}">{{$notificationUnreadCount}}</span>
</div>
</a>
<div class="ui dropdown jump item gt-mx-0 gt-pr-3" data-tooltip-content="{{.locale.Tr "create_new"}}">
<span class="text"> <span class="text">
{{svg "octicon-plus"}} <span class="fitted">{{svg "octicon-bell" 16}}</span>
<span class="not-mobile">{{svg "octicon-triangle-down"}}</span> <span class="sr-mobile-only">{{.i18n.Tr "notifications"}}</span>
<span class="mobile-only">{{.locale.Tr "create_new"}}</span> {{$notificationUnreadCount := 0}}
{{if .NotificationUnreadCount}}{{$notificationUnreadCount = call .NotificationUnreadCount}}{{end}}
<span class="ui red label {{if not $notificationUnreadCount}}hidden{{end}} notification_count">
{{$notificationUnreadCount}}
</span>
</span>
</a>
<div class="ui dropdown jump item poping up" data-content="{{.i18n.Tr "create_new"}}" data-variation="tiny inverted">
<span class="text">
<span class="fitted">{{svg "octicon-plus" 16}}</span>
<span class="sr-mobile-only">{{.i18n.Tr "create_new"}}</span>
<span class="fitted not-mobile">{{svg "octicon-triangle-down" 16}}</span>
</span> </span>
<div class="menu"> <div class="menu">
<a class="item" href="{{AppSubUrl}}/repo/create"> <a class="item" href="{{AppSubUrl}}/repo/create">
{{svg "octicon-plus"}} {{.locale.Tr "new_repo"}} <span class="fitted">{{svg "octicon-plus" 16}}</span> {{.i18n.Tr "new_repo"}}
</a>
<a class="item" href="{{AppSubUrl}}/repo/migrate">
<span class="fitted">{{svg "octicon-repo-push" 16}}</span> {{.i18n.Tr "new_migrate"}}
</a> </a>
{{if not .DisableMigrations}}
<a class="item" href="{{AppSubUrl}}/repo/migrate">
{{svg "octicon-repo-push"}} {{.locale.Tr "new_migrate"}}
</a>
{{end}}
{{if .SignedUser.CanCreateOrganization}} {{if .SignedUser.CanCreateOrganization}}
<a class="item" href="{{AppSubUrl}}/org/create"> <a class="item" href="{{AppSubUrl}}/org/create">
{{svg "octicon-organization"}} {{.locale.Tr "new_org"}} <span class="fitted">{{svg "octicon-organization" 16}}</span> {{.i18n.Tr "new_org"}}
</a> </a>
{{end}} {{end}}
</div><!-- end content create new menu --> </div><!-- end content create new menu -->
</div><!-- end dropdown menu create new --> </div><!-- end dropdown menu create new -->
<div class="ui dropdown jump item poping up" tabindex="-1" data-content="{{.i18n.Tr "user_profile_and_more"}}" data-variation="tiny inverted">
<div class="ui dropdown jump item gt-mx-0 gt-pr-3" data-tooltip-content="{{.locale.Tr "user_profile_and_more"}}"> <span class="text">
<span class="text gt-df gt-ac"> <img class="ui tiny avatar image" width="24" height="24" src="{{.SignedUser.RelAvatarLink}}">
{{ctx.AvatarUtils.Avatar .SignedUser 24 "gt-mr-2"}} <span class="sr-only">{{.i18n.Tr "user_profile_and_more"}}</span>
<span class="mobile-only gt-ml-3">{{.SignedUser.Name}}</span> <span class="mobile-only">{{.SignedUser.Name}}</span>
<span class="not-mobile">{{svg "octicon-triangle-down"}}</span> <span class="fitted not-mobile" tabindex="-1">{{svg "octicon-triangle-down" 16}}</span>
</span> </span>
<div class="menu user-menu"> <div class="menu user-menu" tabindex="-1">
<div class="ui header"> <div class="ui header">
{{.locale.Tr "signed_in_as"}} <strong>{{.SignedUser.Name}}</strong> {{.i18n.Tr "signed_in_as"}} <strong>{{.SignedUser.Name}}</strong>
</div> </div>
<div class="divider"></div> <div class="divider"></div>
<a class="item" href="{{.SignedUser.HomeLink}}"> <a class="item" href="{{AppSubUrl}}/{{.SignedUser.Name}}">
{{svg "octicon-person"}} {{svg "octicon-person" 16}}
{{.locale.Tr "your_profile"}} {{.i18n.Tr "your_profile"}}<!-- Your profile -->
</a> </a>
{{if not .DisableStars}} <a class="item" href="{{AppSubUrl}}/{{.SignedUser.Name}}?tab=stars">
<a class="item" href="{{.SignedUser.HomeLink}}?tab=stars"> {{svg "octicon-star" 16}}
{{svg "octicon-star"}} {{.i18n.Tr "your_starred"}}
{{.locale.Tr "your_starred"}}
</a>
{{end}}
<a class="item" href="{{AppSubUrl}}/notifications/subscriptions">
{{svg "octicon-bell"}}
{{.locale.Tr "notification.subscriptions"}}
</a> </a>
<a class="{{if .PageIsUserSettings}}active {{end}}item" href="{{AppSubUrl}}/user/settings"> <a class="{{if .PageIsUserSettings}}active{{end}} item" href="{{AppSubUrl}}/user/settings">
{{svg "octicon-tools"}} {{svg "octicon-tools" 16}}
{{.locale.Tr "your_settings"}} {{.i18n.Tr "your_settings"}}<!-- Your settings -->
</a> </a>
<a class="item" target="_blank" rel="noopener noreferrer" href="https://docs.gitea.com"> <a class="item" target="_blank" rel="noopener noreferrer" href="https://docs.gitea.io">
{{svg "octicon-question"}} {{svg "octicon-question" 16}}
{{.locale.Tr "help"}} {{.i18n.Tr "help"}}<!-- Help -->
</a> </a>
{{if .IsAdmin}} {{if .IsAdmin}}
<div class="divider"></div> <div class="divider"></div>
<a class="{{if .PageIsAdmin}}active{{end}} item" href="{{AppSubUrl}}/admin">
<a class="{{if .PageIsAdmin}}active {{end}}item" href="{{AppSubUrl}}/admin"> <i class="icon settings"></i>
{{svg "octicon-server"}} {{.i18n.Tr "admin_panel"}}<!-- Admin Panel -->
{{.locale.Tr "admin_panel"}}
</a> </a>
{{end}} {{end}}
<div class="divider"></div> <div class="divider"></div>
<a class="item link-action" href data-url="{{AppSubUrl}}/user/logout"> <a class="item link-action" href data-url="{{AppSubUrl}}/user/logout" data-redirect="{{AppSubUrl}}/">
{{svg "octicon-sign-out"}} {{svg "octicon-sign-out" 16}}
{{.locale.Tr "sign_out"}} {{.i18n.Tr "sign_out"}}<!-- Sign Out -->
</a> </a>
</div><!-- end content avatar menu --> </div><!-- end content avatar menu -->
</div><!-- end dropdown avatar menu --> </div><!-- end dropdown avatar menu -->
{{else}} </div><!-- end signed user right menu -->
{{else}}
<a class="item" target="_blank" rel="noopener noreferrer" href="https://docs.gitea.io">{{.i18n.Tr "help"}}</a>
<div class="right stackable menu">
{{if .ShowRegistrationButton}} {{if .ShowRegistrationButton}}
<a class="item{{if .PageIsSignUp}} active{{end}}" href="{{AppSubUrl}}/user/sign_up"> <a class="item{{if .PageIsSignUp}} active{{end}}" href="{{AppSubUrl}}/user/sign_up">
{{svg "octicon-person"}} {{.locale.Tr "register"}} {{svg "octicon-person" 16}} {{.i18n.Tr "register"}}
</a> </a>
{{end}} {{end}}
<a class="item{{if .PageIsSignIn}} active{{end}}" rel="nofollow" href="{{AppSubUrl}}/user/login{{if not .PageIsSignIn}}?redirect_to={{.CurrentURL}}{{end}}"> <a class="item{{if .PageIsSignIn}} active{{end}}" rel="nofollow" href="{{AppSubUrl}}/user/login?redirect_to={{.CurrentURL}}">
{{svg "octicon-sign-in"}} {{.locale.Tr "sign_in"}} {{svg "octicon-sign-in" 16}} {{.i18n.Tr "sign_in"}}
</a> </a>
{{end}} </div><!-- end anonymous right menu -->
</div><!-- end full right menu --> {{end}}
</nav> </div>

@ -1,25 +1,5 @@
{{if .IsSigned}} {{if .IsSigned}}
<div class="ui dropdown jump item gt-mx-0 gt-pr-3" data-tooltip-content="Moar..."> <a class="item " href="https://drone.dotya.ml/" target="_blank" rel="noopener">Drone CI</a>
<span class="text"> <a class="item " href="https://docs.gitea.io/" target="_blank" rel="noopener">Gitea Help</a>
<span class="not-mobile">Moar {{svg "octicon-triangle-down"}}</span> <a class="item " href="https://git-scm.com/docs" target="_blank" rel="noopener">Git Help</a>
<span class="mobile-only">Moar</span>
</span>
<div class="menu">
<a class="item " href="https://drone.dotya.ml/" target="_blank" rel="noopener">Drone CI</a>
<a class="item " href="https://docs.dotya.ml/" target="_blank" rel="noopener">Docs</a>
<a class="item " href="https://grafana.dotya.ml/" target="_blank" rel="noopener">Grafana</a>
<a class="item " href="https://searxng.dotya.ml/" target="_blank" rel="noopener">SearXNG</a>
<a class="item " href="https://dotya.ml/about/" target="_blank" rel="noopener">About...</a>
<div class="ui dropdown jump item gt-mx-0 gt-pr-3" data-tooltip-content="Help...">
<span class="text">
<span class="not-mobile">Help {{svg "octicon-triangle-right"}}</span>
<span class="mobile-only">Help</span>
</span>
<div class="menu">
<a class="item " href="https://docs.gitea.io/" target="_blank" rel="noopener">Gitea Help</a>
<a class="item " href="https://git-scm.com/docs" target="_blank" rel="noopener">Git Help</a>
</div>
</div>
</div>
</div>
{{end}} {{end}}

@ -1,5 +1,5 @@
<a href="/assets/ssh-hostkeys.txt" rel="noreferer">hostkeys</a> <a href="/ssh-hostkeys.txt" rel="noreferer">hostkeys</a>
<a href="https://status.dotya.ml/" rel="noopener">Status</a> <a href="https://status.dotya.ml/" rel="noopener">Status</a>
<a href="/dotya.ml" rel="noopener">&#183; dotya.ml &#183;</a> <a href="/dotya.ml" rel="noopener">&#183; dotya.ml &#183;</a>
<a href="https://dotya.ml/contact/" rel="noopener">Contact</a> <a href="https://dotya.ml/contact/" rel="noopener">Contact</a>
<a href="/assets/0DD13DBC6B5433D3.asc" title="default signing key" rel="noopener">0DD13DBC6B5433D3</a> <a href="/0DD13DBC6B5433D3.asc" title="default signing key" rel="noopener">0DD13DBC6B5433D3</a>

@ -1,5 +1,5 @@
{{template "base/head" .}} {{template "base/head" .}}
<div role="main" aria-label="{{if .IsSigned}}{{.locale.Tr "dashboard"}}{{else}}{{.locale.Tr "home"}}{{end}}" class="page-content home"> <div class="home">
<div class="ui stackable middle very relaxed page grid"> <div class="ui stackable middle very relaxed page grid">
<div class="sixteen wide center aligned centered column"> <div class="sixteen wide center aligned centered column">
<div class="hero"> <div class="hero">
@ -13,15 +13,15 @@
<div class="ui stackable middle very relaxed page grid"> <div class="ui stackable middle very relaxed page grid">
<div class="eight wide center column"> <div class="eight wide center column">
<h1 class="hero ui icon header"> <h1 class="hero ui icon header">
{{svg "octicon-git-merge"}} Code with us {{svg "octicon-git-merge" 16}} Code with us
</h1> </h1>
<p class="large"> <p class="large">
This is a good place to host your code and start collaborating with like-minded people. Log in with <a href="https://git.dotya.ml/user/oauth2/GitHub/">GitHub</a> {{svg "octicon-mark-github"}} if you like. This is a good place to host your code and start collaborating with like-minded people. Log in with <a href="https://git.dotya.ml/user/oauth2/GitHub/">GitHub</a> {{svg "octicon-mark-github" 16}} if you like.
</p> </p>
</div> </div>
<div class="eight wide center column"> <div class="eight wide center column">
<h1 class="hero ui icon header"> <h1 class="hero ui icon header">
{{svg "octicon-ruby"}} No Bloat {{svg "octicon-ruby" 16}} No Bloat
</h1> </h1>
<p class="large"> <p class="large">
No nonsense. No tracking or analysing of your patterns. Just Gitea (tbh even that should be called bloat, it's too good) No nonsense. No tracking or analysing of your patterns. Just Gitea (tbh even that should be called bloat, it's too good)
@ -31,7 +31,7 @@
<div class="ui stackable middle very relaxed page grid"> <div class="ui stackable middle very relaxed page grid">
<div class="eight wide center column"> <div class="eight wide center column">
<h1 class="hero ui icon header"> <h1 class="hero ui icon header">
{{svg "octicon-verified"}} Libre Software {{svg "octicon-verified" 16}} Libre Software
</h1> </h1>
<p class="large"> <p class="large">
This service is only possible thanks to several projects of the <a href="https://www.gnu.org/philosophy/free-sw.en.html" target="_blank" rel="noopener">Free Software</a> community. We encourage you to contribute back, too. Knowledge is light. Share it. This service is only possible thanks to several projects of the <a href="https://www.gnu.org/philosophy/free-sw.en.html" target="_blank" rel="noopener">Free Software</a> community. We encourage you to contribute back, too. Knowledge is light. Share it.
@ -39,10 +39,10 @@
</div> </div>
<div class="eight wide center column"> <div class="eight wide center column">
<h1 class="hero ui icon header"> <h1 class="hero ui icon header">
{{svg "octicon-info"}} Any questions? {{svg "octicon-info" 16}} Any questions?
</h1> </h1>
<p class="large"> <p class="large">
Don't hesitate and <a href="https://dotya.ml/contact/">ask us</a> directly.<br>we use <a href="https://archlinux.org/" target="_blank" rel="noopener">arch</a> <a href="https://i.redd.it/mfrfqy66ey311.jpg" target="_blank" rel="noopener">btw</a> Don't hesitate and <a href="https://dotya.ml/contact/">ask us</a> directly.<br>btw we run <a href="https://archlinux.org/" target="_blank" rel="noopener">Arch</a>
</p> </p>
</div> </div>
</div> </div>

@ -3,28 +3,29 @@
"name": "git.dotya.ml", "name": "git.dotya.ml",
"icons": [ "icons": [
{ {
"src": "/assets/img/gitea-lg.png", "src": "{{StaticUrlPrefix}}/img/gitea-lg.png",
"type": "image/png", "type": "image/png",
"sizes": "880x880" "sizes": "880x880"
}, },
{ {
"src": "/assets/img/gitea-sm.png", "src": "{{StaticUrlPrefix}}/img/gitea-sm.png",
"type": "image/png", "type": "image/png",
"sizes": "120x120" "sizes": "120x120"
}, },
{ {
"src": "/assets/img/gitea-512.png", "src": "{{StaticUrlPrefix}}/img/gitea-512.png",
"type": "image/png", "type": "image/png",
"sizes": "512x512" "sizes": "512x512"
}, },
{ {
"src": "/assets/img/gitea-192.png", "src": "{{StaticUrlPrefix}}/img/gitea-192.png",
"type": "image/png", "type": "image/png",
"sizes": "192x192" "sizes": "192x192"
} }
], ],
"start_url": "/", "start_url": "{{AppSubUrl}}/",
"scope": "/", "scope": "{{AppSubUrl}}/",
"background_color": "#FAFAFA", "background_color": "#FAFAFA",
"display": "standalone", "display": "standalone",
"theme_color": "{{ThemeColorMetaTag}}"
} }

@ -5,16 +5,15 @@
<div class="field"> <div class="field">
<div class="ui bottom active tab" data-tab="write"> <div class="ui bottom active tab" data-tab="write">
<textarea id="content" class="edit_area js-quick-submit" name="content" tabindex="4" data-id="issue-{{.RepoName}}" data-url="{{.Repository.APIURL}}/markdown" data-context="{{.Repo.RepoLink}}"> <textarea id="content" class="edit_area js-quick-submit" name="content" tabindex="4" data-id="issue-{{.RepoName}}" data-url="{{.Repository.APIURL}}/markdown" data-context="{{.Repo.RepoLink}}">
{{- if .BodyQuery}}{{.BodyQuery}}{{else if .IssueTemplate}}{{.IssueTemplate}}{{else if .PullRequestTemplate}}{{.PullRequestTemplate}}{{else}}{{.content}}{{end -}} {{if .BodyQuery}}{{.BodyQuery}}{{else if .IssueTemplate}}{{.IssueTemplate}}{{else if .PullRequestTemplate}}{{.PullRequestTemplate}}{{else}}{{.content}}{{end}}</textarea>
</textarea>
</div> </div>
<div class="ui bottom tab markup" data-tab="preview"> <div class="ui bottom tab markdown" data-tab="preview">
{{.i18n.Tr "loading"}} {{.i18n.Tr "loading"}}
</div> </div>
</div> </div>
{{if .IsAttachmentEnabled}} {{if .IsAttachmentEnabled}}
<div class="field"> <div class="field">
<div class="files"></div> <div class="files"></div>
{{template "repo/upload" .}} <div class="ui dropzone" id="dropzone" data-upload-url="/attachments" data-accepts="{{.AttachmentAllowedTypes}}" data-max-file="{{.AttachmentMaxFiles}}" data-max-size="{{.AttachmentMaxSize}}" data-default-message="{{.i18n.Tr "dropzone.default_message"}}" data-invalid-input-type="{{.i18n.Tr "dropzone.invalid_input_type"}}" data-file-too-big="{{.i18n.Tr "dropzone.file_too_big"}}" data-remove-file="{{.i18n.Tr "dropzone.remove_file"}}"></div>
</div> </div>
{{end}} {{end}}

2
hosts Normal file

@ -0,0 +1,2 @@
[nebula]
dotya.ml

15
syncpush.yml Normal file

@ -0,0 +1,15 @@
---
- name: Sync push task
hosts: nebula
remote_user: root
tasks:
- name: Copy gitea templates to nebula
tags: sync-push
synchronize:
src: "{{ item }}"
dest: "/var/lib/gitea/{{ item }}-test"
mode: push
register: syncfile
with_items:
- "custom/public/robots.txt"
- "custom/templates/home.tmpl"