Skip to content

Commit b4108c4

Browse files
authored
feat/customized-footer (#197)
1 parent 0c9bcc8 commit b4108c4

File tree

5 files changed

+25
-1
lines changed

5 files changed

+25
-1
lines changed

config/attributes/default.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
default['title'] = "Proxmox-GitOps"
2+
default['online'] = "https://github.com/stevius10/Proxmox-GitOps"
3+
default['version'] = "v1.2-2"
4+
15
default['id'] = ENV['ID']
26
default['host'] = (default['ip'] = ENV['IP'].to_s.presence || "127.0.0.1")
37
default['key'] = ENV['KEY'].to_s.presence || "/share/.ssh/#{node['id']}"

config/recipes/customize.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
owner node['app']['user']
1414
group node['app']['group']
1515
mode '0644'
16+
variables(title: node['title'])
1617
end
1718
end
1819

@@ -31,5 +32,6 @@
3132
owner node['app']['user']
3233
group node['app']['group']
3334
mode '0644'
35+
variables(title: node['title'], online: node['online'], version: node['version'])
3436
end
3537
end

config/templates/custom/css/hide.css.erb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
#navbar .item[href$="/explore/organizations"]{display:none!important}
66
#navbar .item[href$="https://docs.gitea.com"]{display:none!important}
77

8+
.page-footer:not(#customized-footer){display:none!important}
9+
810
.ui.menu .item:has(.resize-for-semibold[data-text="Aktivität"]){display:none!important}
911
.ui.menu .item:has(.resize-for-semibold[data-text="Activity"]){display:none!important}
1012

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#navbar-logo img{display:none!important}
22
#navbar-logo{display:flex;align-items:center;gap:.5rem}
3-
#navbar-logo::after{content:"Proxmox-GitOps";font-weight:600;font-size:1.05rem;line-height:1;color:inherit;letter-spacing:.2px;white-space:nowrap}
3+
#navbar-logo::after{content:"<%= @title %>";font-weight:600;font-size:1.05rem;line-height:1;color:inherit;letter-spacing:.2px;white-space:nowrap}
44
@media (max-width: 767.98px){#navbar-logo::after{font-size:.95rem}}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<footer id="customized-footer" class="page-footer" role="group" aria-label="Footer">
2+
<div class="left-links" role="contentinfo" aria-label="About Software">
3+
<a href="<%= @online %>"><%= @title %></a> <%= @version %>
4+
</div>
5+
6+
<div class="right-links" role="group" aria-label="Links">
7+
<div class="ui dropdown upward" tabindex="0" role="menu" aria-haspopup="" aria-controls="_aria_auto_id_0" aria-expanded="false">
8+
<span class="flex-text-inline"><svg viewBox="0 0 16 16" class="svg octicon-globe" aria-hidden="true" width="14" height="14"></svg> English</span>
9+
<div class="menu language-menu" tabindex="-1" id="_aria_auto_id_0" role="">
10+
<a lang="en-US" data-url="/?lang=en-US" class="item selected" id="_aria_auto_id_1" role="menuitem" tabindex="-1">English</a>
11+
</div>
12+
</div>
13+
<a href="/assets/licenses.txt">Gitea</a>
14+
</div>
15+
16+
</footer>

0 commit comments

Comments
 (0)