2023-01-29 06:59:10 +05:30
|
|
|
<footer role="group" aria-label="{{.locale.Tr "aria.footer"}}">
|
2018-09-07 08:29:06 +05:30
|
|
|
<div class="ui container">
|
2023-01-29 06:59:10 +05:30
|
|
|
<div class="ui left" role="contentinfo" aria-label="{{.locale.Tr "aria.footer.software"}}">
|
2022-08-13 07:04:53 +05:30
|
|
|
<a target="_blank" rel="noopener noreferrer" href="https://gitea.io">{{.locale.Tr "powered_by" "Gitea"}}</a>
|
2022-03-23 06:45:54 +05:30
|
|
|
{{if (or .ShowFooterVersion .PageIsAdmin)}}
|
2022-06-28 02:28:46 +05:30
|
|
|
{{.locale.Tr "version"}}:
|
2022-03-23 06:45:54 +05:30
|
|
|
{{if .IsAdmin}}
|
|
|
|
<a href="{{AppSubUrl}}/admin/config">{{AppVer}}</a>
|
|
|
|
{{else}}
|
|
|
|
{{AppVer}}
|
|
|
|
{{end}}
|
|
|
|
{{end}}
|
2022-04-20 05:00:09 +05:30
|
|
|
{{if and .TemplateLoadTimes ShowFooterTemplateLoadTime}}
|
2022-06-28 02:28:46 +05:30
|
|
|
{{.locale.Tr "page"}}: <strong>{{LoadTimes .PageStartTime}}</strong>
|
2022-10-08 09:23:42 +05:30
|
|
|
{{.locale.Tr "template"}}{{if .TemplateName}} {{.TemplateName}}{{end}}: <strong>{{call .TemplateLoadTimes}}</strong>
|
2022-03-23 06:45:54 +05:30
|
|
|
{{end}}
|
2018-09-07 08:29:06 +05:30
|
|
|
</div>
|
2023-01-29 06:59:10 +05:30
|
|
|
<div class="ui right links" role="group" aria-label="{{.locale.Tr "aria.footer.links"}}">
|
2018-09-07 08:29:06 +05:30
|
|
|
{{if .ShowFooterBranding}}
|
2020-10-22 02:37:33 +05:30
|
|
|
<a target="_blank" rel="noopener noreferrer" href="https://github.com/go-gitea/gitea">{{svg "octicon-mark-github"}}<span class="sr-only">GitHub</span></a>
|
2018-09-07 08:29:06 +05:30
|
|
|
{{end}}
|
Fine tune more downdrop settings, use SVG for labels, improve Repo Topic Edit form (#23626)
Although it seems that some different purposes are mixed in this PR,
however, they are all related, and can be tested together, so I put them
together to save everyone's time.
Diff: `+79 −84`, everything becomes much better.
### Improve the dropdown settings.
Move all fomantic-init related code into our `fomantic.js`
Fine-tune some dropdown global settings, see the comments.
Also help to fix the first problem in #23625 , cc: @yp05327
The "language" menu has been simplified, and it works with small-height
window better.
### Use SVG instead of `<i class="delete icon">`
It's also done by `$.fn.dropdown.settings.templates.label` , cc:
@silverwind
### Remove incorrect `tabable` CSS class
It doesn't have CSS styles, and it was only in Vue. So it's totally
unnecessary, remove it by the way.
### Improve the Repo Topic Edit form
* Simplify the code
* Add a "Cancel" button
* Align elements
Before:
<details>
![image](https://user-images.githubusercontent.com/2114189/223325782-f09532de-0c38-4742-ba86-ed35cc9a858d.png)
</details>
After:
![image](https://user-images.githubusercontent.com/2114189/226796347-207feb0a-b3cd-4820-8a3e-01930bab1069.png)
2023-03-26 17:01:26 +05:30
|
|
|
<div class="ui dropdown upward language">
|
|
|
|
<span>{{svg "octicon-globe"}} {{.locale.LangName}}</span>
|
2020-09-10 06:39:23 +05:30
|
|
|
<div class="menu language-menu">
|
2018-09-07 08:29:06 +05:30
|
|
|
{{range .AllLangs}}
|
2022-06-28 02:28:46 +05:30
|
|
|
<a lang="{{.Lang}}" data-url="{{AppSubUrl}}/?lang={{.Lang}}" class="item {{if eq $.locale.Lang .Lang}}active selected{{end}}">{{.Name}}</a>
|
2018-09-07 08:29:06 +05:30
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-06-28 02:28:46 +05:30
|
|
|
<a href="{{AssetUrlPrefix}}/js/licenses.txt">{{.locale.Tr "licenses"}}</a>
|
2018-09-07 08:29:06 +05:30
|
|
|
{{if .EnableSwagger}}<a href="{{AppSubUrl}}/api/swagger">API</a>{{end}}
|
2020-01-04 00:11:56 +05:30
|
|
|
{{template "custom/extra_links_footer" .}}
|
2018-09-07 08:29:06 +05:30
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</footer>
|