diff options
author | Thedro Neely <thedroneely@gmail.com> | 2020-08-30 17:54:27 -0400 |
---|---|---|
committer | Thedro Neely <thedroneely@gmail.com> | 2020-09-06 00:14:05 -0400 |
commit | 10f027de65222224a095bb08b153b8cde619736e (patch) | |
tree | 6a7862a3d076c79e2bf5e69eac1e241afa1c3820 /templates | |
parent | 19cf0ea4389a632740e2f18769e7c0a483b60c68 (diff) | |
download | gitea-templates-10f027de65222224a095bb08b153b8cde619736e.tar.gz gitea-templates-10f027de65222224a095bb08b153b8cde619736e.tar.bz2 gitea-templates-10f027de65222224a095bb08b153b8cde619736e.zip |
templates: Start over
Use standard icon for favicon and avatar.
Use native font stack.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/base/footer.tmpl | 36 | ||||
-rw-r--r-- | templates/base/head.tmpl | 23 | ||||
-rw-r--r-- | templates/base/head_navbar.tmpl | 13 | ||||
-rw-r--r-- | templates/repo/header.tmpl | 4 | ||||
-rw-r--r-- | templates/repo/home.tmpl | 4 |
5 files changed, 44 insertions, 36 deletions
diff --git a/templates/base/footer.tmpl b/templates/base/footer.tmpl new file mode 100644 index 0000000..65bf2f0 --- /dev/null +++ b/templates/base/footer.tmpl @@ -0,0 +1,36 @@ +{{/* +<html> +<body> + <div> +*/}} + + {{template "custom/body_inner_post" .}} + + </div> + + {{template "custom/body_outer_post" .}} + + {{template "base/footer_content" .}} + + <script src="{{StaticUrlPrefix}}/vendor/plugins/jquery/jquery.min.js?v=3.4.1"></script> + <script src="{{StaticUrlPrefix}}/vendor/plugins/jquery-migrate/jquery-migrate.min.js?v=3.0.1"></script> + <script src="{{StaticUrlPrefix}}/vendor/plugins/jquery.areyousure/jquery.are-you-sure.js"></script> + +<!-- Third-party libraries --> + <script src="{{StaticUrlPrefix}}/vendor/plugins/emojify/emojify.custom.js"></script> + <script src="{{StaticUrlPrefix}}/vendor/plugins/clipboard/clipboard.min.js"></script> + <script src="{{StaticUrlPrefix}}/vendor/plugins/vue/vue.min.js"></script> + + <!-- JavaScript --> + <script src="{{StaticUrlPrefix}}/vendor/plugins/fomantic/semantic.min.js?v={{MD5 AppVer}}"></script> + <script src="{{StaticUrlPrefix}}/js/index.js?v={{MD5 AppVer}}"></script> +{{if .EnableHeatmap}} + <script src="{{StaticUrlPrefix}}/vendor/plugins/moment/moment.min.js" charset="utf-8"></script> + <script src="{{StaticUrlPrefix}}/vendor/plugins/vue-calendar-heatmap/vue-calendar-heatmap.browser.js" charset="utf-8"></script> + <script type="text/javascript"> + window.initHeatmap('user-heatmap', '{{.HeatmapUser}}'); + </script> +{{end}} +{{template "custom/footer" .}} +</body> +</html> diff --git a/templates/base/head.tmpl b/templates/base/head.tmpl index f466c0d..df4ce00 100644 --- a/templates/base/head.tmpl +++ b/templates/base/head.tmpl @@ -95,14 +95,6 @@ <noscript><link rel="stylesheet" href="{{StaticUrlPrefix}}/vendor/assets/font-awesome/css/font-awesome.min.css"></noscript> <link rel="stylesheet" href="{{StaticUrlPrefix}}/vendor/assets/octicons/octicons.min.css"> -{{if .RequireSimpleMDE}} - <link rel="stylesheet" href="{{StaticUrlPrefix}}/vendor/plugins/simplemde/simplemde.min.css"> -{{end}} - -{{if .RequireTribute}} - <link rel="stylesheet" href="{{StaticUrlPrefix}}/vendor/plugins/tribute/tribute.css"> -{{end}} - <!-- Stylesheet --> <link rel="stylesheet" href="{{StaticUrlPrefix}}/vendor/plugins/fomantic/semantic.min.css?v={{MD5 AppVer}}"> <link rel="stylesheet" href="{{StaticUrlPrefix}}/css/index.css?v={{MD5 AppVer}}"> @@ -113,26 +105,11 @@ </style> </noscript> -{{if .RequireHighlightJS}} - <link rel="stylesheet" href="{{StaticUrlPrefix}}/vendor/plugins/highlight/github.css"> -{{end}} -{{if .RequireMinicolors}} - <link rel="stylesheet" href="{{StaticUrlPrefix}}/vendor/plugins/jquery.minicolors/jquery.minicolors.css"> -{{end}} -{{if .RequireDatetimepicker}} - <link rel="stylesheet" href="{{StaticUrlPrefix}}/vendor/plugins/jquery.datetimepicker/jquery.datetimepicker.css"> -{{end}} -{{if .RequireDropzone}} - <link rel="stylesheet" href="{{StaticUrlPrefix}}/vendor/plugins/dropzone/dropzone.css"> -{{end}} {{if .EnableHeatmap}} <link rel="stylesheet" href="{{StaticUrlPrefix}}/vendor/plugins/vue-calendar-heatmap/vue-calendar-heatmap.css"> {{end}} <style class="list-search-style"></style> - <script src="{{StaticUrlPrefix}}/vendor/plugins/promise-polyfill/polyfill.min.js"></script> - <script src="{{StaticUrlPrefix}}/vendor/plugins/cssrelpreload/loadCSS.min.js"></script> - <script src="{{StaticUrlPrefix}}/vendor/plugins/cssrelpreload/cssrelpreload.min.js"></script> {{if .PageIsUserProfile}} <meta property="og:title" content="{{.Owner.Name}}" /> <meta property="og:type" content="profile" /> diff --git a/templates/base/head_navbar.tmpl b/templates/base/head_navbar.tmpl index 60c2b84..c985963 100644 --- a/templates/base/head_navbar.tmpl +++ b/templates/base/head_navbar.tmpl @@ -1,8 +1,7 @@ <div class="ui container" id="navbar"> <div class="item brand" style="justify-content: space-between;"> - <a title="Head back to https://www.thedroneely.com" href="/"> - <img style="display: inline;" class="ui mini image" src="{{AppSubUrl}}/img/favicon.png"> - <span style="margin-left: 0.65em;">www.thedroneely.com</span> + <a href="{{AppSubUrl}}/"> + <img class="ui mini image" src="{{StaticUrlPrefix}}/img/gitea-sm.png"> </a> <div class="ui basic icon button mobile-only" id="navbar-expand-toggle"> <i class="sidebar icon"></i> @@ -75,7 +74,7 @@ <span class="text"> <img class="ui tiny avatar image" src="{{.SignedUser.RelAvatarLink}}"> <span class="sr-only">{{.i18n.Tr "user_profile_and_more"}}</span> - <span class="mobile-only">{{.SignedUser.Name}}</span> + <span>{{.SignedUser.Name}}</span> <i class="fitted octicon octicon-triangle-down not-mobile" tabindex="-1"></i> </span> <div class="menu user-menu" tabindex="-1"> @@ -96,10 +95,6 @@ <i class="octicon octicon-settings"></i> {{.i18n.Tr "your_settings"}}<!-- Your settings --> </a> - <a class="item" target="_blank" rel="noopener noreferrer" href="https://docs.gitea.io"> - <i class="octicon octicon-question"></i> - {{.i18n.Tr "help"}}<!-- Help --> - </a> {{if .IsAdmin}} <div class="divider"></div> @@ -120,7 +115,7 @@ {{else}} - <!-- <a class="item" target="_blank" rel="noopener noreferrer" href="https://docs.gitea.io">{{.i18n.Tr "help"}}</a> --> + <a class="item" target="_blank" rel="noopener noreferrer" href="https://docs.gitea.io">{{.i18n.Tr "help"}}</a> <div class="right stackable menu"> {{if .ShowRegistrationButton}} <a class="item{{if .PageIsSignUp}} active{{end}}" href="{{AppSubUrl}}/user/sign_up"> diff --git a/templates/repo/header.tmpl b/templates/repo/header.tmpl index 8606696..442f962 100644 --- a/templates/repo/header.tmpl +++ b/templates/repo/header.tmpl @@ -11,13 +11,13 @@ <a href="{{AppSubUrl}}/{{.Owner.Name}}">{{.Owner.Name}}</a> <div class="divider"> / </div> <a href="{{$.RepoLink}}">{{.Name}}</a> + <small>{{SizeFmt .Size}}</small> {{if and .RelAvatarLink .IsPrivate}}<i class="mega-octicon octicon-lock"></i>{{end}} {{if .IsTemplate}}<i class="icon fa-copy"></i>{{end}} {{if .IsArchived}}<i class="archive icon archived-icon"></i>{{end}} {{if .IsMirror}}<div class="fork-flag">{{$.i18n.Tr "repo.mirror_from"}} <a target="_blank" rel="noopener noreferrer" href="{{if .SanitizedOriginalURL}}{{.SanitizedOriginalURL}}{{else}}{{MirrorAddress $.Mirror}}{{end}}">{{if .SanitizedOriginalURL}}{{.SanitizedOriginalURL}}{{else}}{{MirrorAddress $.Mirror}}{{end}}</a></div>{{end}} {{if .IsFork}}<div class="fork-flag">{{$.i18n.Tr "repo.forked_from"}} <a href="{{.BaseRepo.Link}}">{{SubStr .BaseRepo.RelLink 1 -1}}</a></div>{{end}} {{if .IsGenerated}}<div class="fork-flag">{{$.i18n.Tr "repo.generated_from"}} <a href="{{.TemplateRepo.Link}}">{{SubStr .TemplateRepo.RelLink 1 -1}}</a></div>{{end}} - <small>{{SizeFmt .Size}}</small> </div> {{if not .IsBeingCreated}} <div class="repo-buttons"> @@ -100,7 +100,7 @@ </a> <a class="{{if .PageIsCommits}}active{{end}} item" - href="{{.RepoLink}}/commits{{if .IsViewBranch}}/branch{{else if .IsViewTag}}/tag{{else if .IsViewCommit}}/commit{{end}}/{{EscapePound .BranchName}}"> + href="{{.RepoLink}}/commits{{if .IsViewBranch}}/branch{{else if .IsViewTag}}/tag{{else if .IsViewCommit}}/commit{{end}}/{{.Repository.DefaultBranch}}"> <i class="octicon octicon-clock"></i> {{.i18n.Tr "repo.commits"}} <span class="ui small label">{{or .CommitsCount "0"}}</span> diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl index 3cb9969..e3a2c31 100644 --- a/templates/repo/home.tmpl +++ b/templates/repo/home.tmpl @@ -3,7 +3,7 @@ {{template "repo/header" .}} <div class="ui container"> {{template "base/alert" .}} - <div class="ui repo-description"> + <div class="ui repo-description repo-description-topics-hide"> <div id="repo-desc"> {{if .Repository.DescriptionHTML}}<span class="description has-emoji">{{.Repository.DescriptionHTML}}</span>{{else if .IsRepositoryAdmin}}<span class="no-description text-italic">{{.i18n.Tr "repo.no_desc"}}</span>{{end}} <a class="link" href="{{.Repository.Website}}">{{.Repository.Website}}</a> @@ -23,7 +23,7 @@ </div> {{end}} </div> - <div class="ui repo-topics" id="repo-topics"> + <div class="ui repo-description-topics-hide" id="repo-topics"> {{range .Topics}}<a class="ui repo-topic small label topic" href="{{AppSubUrl}}/explore/repos?q={{.Name}}&topic=1">{{.Name}}</a>{{end}} {{if and .Permission.IsAdmin (not .Repository.IsArchived)}}<a id="manage_topic">{{.i18n.Tr "repo.topic.manage_topics"}}</a>{{end}} </div> |