مراية لـ
https://github.com/postalserver/postal.git
تم المزامنة 2025-12-01 05:43:04 +00:00
feat(ui): add footer with links to docs and discussions
هذا الالتزام موجود في:
2
.gitignore
مباع
2
.gitignore
مباع
@@ -28,3 +28,5 @@ public/assets
|
|||||||
vendor/bundle
|
vendor/bundle
|
||||||
|
|
||||||
Procfile.local
|
Procfile.local
|
||||||
|
VERSION
|
||||||
|
|
||||||
|
|||||||
9
app/assets/images/icon.svg
Normal file
9
app/assets/images/icon.svg
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
<svg width="180px" height="204px" viewBox="0 0 180 204" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||||
|
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
||||||
|
<g id="Postal---Solo-Avatar" transform="translate(0.950000, 0.940000)" fill="#999999" fill-rule="nonzero">
|
||||||
|
<polygon id="Path" points="52.89 202.12 29.89 177.1 29.89 26.8 0 26.8 18.24 118.45 0 202.12"></polygon>
|
||||||
|
<path d="M118.87,0 L34.97,0 L34.97,175.32 L94.05,175.32 L94.05,118.45 L118.84,118.45 C151.551826,118.45 178.07,91.9318257 178.07,59.22 L178.07,59.22 C178.064484,26.5237913 151.566205,0.0165601674 118.87,0 L118.87,0 Z" id="Path"></path>
|
||||||
|
<polygon id="Path" points="39.18 179.89 59.62 202.12 59.62 179.89"></polygon>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
</svg>
|
||||||
|
بعد العرض: | الارتفاع: | الحجم: 830 B |
25
app/assets/stylesheets/application/components/_footer.scss
Normal file
25
app/assets/stylesheets/application/components/_footer.scss
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
.footer__links {
|
||||||
|
display:flex;
|
||||||
|
margin-left:auto;
|
||||||
|
align-items: center;
|
||||||
|
font-size:13px;
|
||||||
|
color:#999;
|
||||||
|
li {
|
||||||
|
height:24px;
|
||||||
|
|
||||||
|
}
|
||||||
|
li + li {
|
||||||
|
margin-left:18px;
|
||||||
|
}
|
||||||
|
a {
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer__name {
|
||||||
|
height:16px;
|
||||||
|
background:image-url('icon.svg') no-repeat 0 0;
|
||||||
|
background-size:16px;
|
||||||
|
padding-left:22px;
|
||||||
|
font-weight:bold;
|
||||||
|
}
|
||||||
@@ -12,3 +12,10 @@
|
|||||||
overflow-y:scroll;
|
overflow-y:scroll;
|
||||||
overflow-x:hidden;
|
overflow-x:hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.siteContent__footer {
|
||||||
|
border-top:1px solid #efefef;
|
||||||
|
margin-top:20px;
|
||||||
|
padding:25px;
|
||||||
|
display:flex;
|
||||||
|
}
|
||||||
|
|||||||
@@ -52,6 +52,10 @@
|
|||||||
|
|
||||||
%section.siteContent__main
|
%section.siteContent__main
|
||||||
= yield
|
= yield
|
||||||
|
%footer.siteContent__footer
|
||||||
|
%ul.footer__links
|
||||||
|
%li.footer__name
|
||||||
|
Powered by #{link_to "Postal", "https://postalserver.io", target: '_blank'} #{Postal.version}.
|
||||||
|
%li= link_to "Documentation", "https://docs.postalserver.io", target: '_blank'
|
||||||
|
%li= link_to "Ask for help", "https://discussions.postalserver.io", target: '_blank'
|
||||||
|
|
||||||
- if logged_in?
|
|
||||||
<!--- Postal Version #{Postal.version} -->
|
|
||||||
|
|||||||
@@ -1,11 +1,12 @@
|
|||||||
module Postal
|
module Postal
|
||||||
|
VERSION_PATH = File.expand_path('../../VERSION', __dir__)
|
||||||
VERSION = '1.0.0'
|
VERSION = if File.file?(VERSION_PATH)
|
||||||
REVISION = nil
|
File.read(VERSION_PATH).strip.delete_prefix('v')
|
||||||
CHANNEL = 'dev'
|
else
|
||||||
|
'0.0.0-dev'
|
||||||
|
end
|
||||||
|
|
||||||
def self.version
|
def self.version
|
||||||
[VERSION, REVISION, CHANNEL].compact.join('-')
|
VERSION
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|||||||
المرجع في مشكلة جديدة
حظر مستخدم