add display of app version in UI
This commit is contained in:
committed by
Pete Matsyburka
parent
17de28965b
commit
39d14c15d6
@@ -30,6 +30,9 @@ jobs:
|
|||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v2
|
uses: docker/setup-buildx-action@v2
|
||||||
|
|
||||||
|
- name: Create .version file
|
||||||
|
run: echo ${{ github.ref_name }} > .version
|
||||||
|
|
||||||
- name: Login to Docker Hub
|
- name: Login to Docker Hub
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v2
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -31,6 +31,7 @@ yarn-debug.log*
|
|||||||
|
|
||||||
.env
|
.env
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
.version
|
||||||
|
|
||||||
/coverage
|
/coverage
|
||||||
/attachments
|
/attachments
|
||||||
|
|||||||
+1
-1
@@ -53,7 +53,7 @@ COPY ./log ./log
|
|||||||
COPY ./lib ./lib
|
COPY ./lib ./lib
|
||||||
COPY ./public ./public
|
COPY ./public ./public
|
||||||
COPY ./tmp ./tmp
|
COPY ./tmp ./tmp
|
||||||
COPY LICENSE README.md Rakefile config.ru ./
|
COPY LICENSE README.md Rakefile config.ru .version ./
|
||||||
|
|
||||||
COPY --from=fonts /fonts/LiberationSans-Regular.ttf /fonts/LiberationSans-Bold.ttf /fonts/DancingScript-Regular.otf /fonts/OFL.txt /fonts
|
COPY --from=fonts /fonts/LiberationSans-Regular.ttf /fonts/LiberationSans-Bold.ttf /fonts/DancingScript-Regular.otf /fonts/OFL.txt /fonts
|
||||||
COPY --from=webpack /app/public/packs ./public/packs
|
COPY --from=webpack /app/public/packs ./public/packs
|
||||||
|
|||||||
@@ -4,11 +4,16 @@
|
|||||||
<div class="text-center">
|
<div class="text-center">
|
||||||
<div class="relative flex flex-col items-center">
|
<div class="relative flex flex-col items-center">
|
||||||
<%= render 'shared/logo', width: '100', height: '100' %>
|
<%= render 'shared/logo', width: '100', height: '100' %>
|
||||||
<h1 class="text-6xl font-bold mt-4 mb-8">
|
<h1 class="text-6xl font-bold mt-4 mb-4">
|
||||||
DocuSeal
|
DocuSeal
|
||||||
</h1>
|
</h1>
|
||||||
|
<% if Docuseal.version.present? %>
|
||||||
|
<a href="https://github.com/docusealco/docuseal/releases/tag/<%= Docuseal.version %>" target="_blank" class="badge badge-outline badge-lg block mx-auto">
|
||||||
|
v<%= Docuseal.version %>
|
||||||
|
</a>
|
||||||
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
<h2 class="mb-16 text-lg text-center text-gray-600">
|
<h2 class="mt-4 mb-16 text-lg text-center text-gray-600">
|
||||||
A self-hosted and open-source web platform that provides secure and efficient digital document signing and processing.
|
A self-hosted and open-source web platform that provides secure and efficient digital document signing and processing.
|
||||||
</h2>
|
</h2>
|
||||||
</div>
|
</div>
|
||||||
@@ -62,7 +67,8 @@
|
|||||||
</div>
|
</div>
|
||||||
<h3 class="mb-4 text-2xl font-semibold">Open Source</h3>
|
<h3 class="mb-4 text-2xl font-semibold">Open Source</h3>
|
||||||
<p class="text-base text-gray-500">
|
<p class="text-base text-gray-500">
|
||||||
Source code is available under <a href="<%= Docuseal::GITHUB_URL %>" class="link link-neutral font-bold" target="_blank">github.com/docusealco</a>.<br>Open-source contributors are always ready to help!
|
Source code is available under <a href="<%= Docuseal::GITHUB_URL %>" class="link link-neutral font-bold" target="_blank">github.com/docusealco</a>.<br>
|
||||||
|
Open-source contributors are always ready to help!
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -116,6 +116,11 @@
|
|||||||
<a href="mailto:<%= Docuseal::SUPPORT_EMAIL %>" target="_blank" class="w-full block mt-4 underline text-center">
|
<a href="mailto:<%= Docuseal::SUPPORT_EMAIL %>" target="_blank" class="w-full block mt-4 underline text-center">
|
||||||
<%= Docuseal::SUPPORT_EMAIL %>
|
<%= Docuseal::SUPPORT_EMAIL %>
|
||||||
</a>
|
</a>
|
||||||
|
<% if Docuseal.version.present? %>
|
||||||
|
<a href="https://github.com/docusealco/docuseal/releases/tag/<%= Docuseal.version %>" target="_blank" class="badge badge-outline text-xs block mx-auto mt-4">
|
||||||
|
v<%= Docuseal.version %>
|
||||||
|
</a>
|
||||||
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -29,6 +29,7 @@ module Docuseal
|
|||||||
|
|
||||||
CERTS = JSON.parse(ENV.fetch('CERTS', '{}'))
|
CERTS = JSON.parse(ENV.fetch('CERTS', '{}'))
|
||||||
TIMESERVER_URL = ENV.fetch('TIMESERVER_URL', nil)
|
TIMESERVER_URL = ENV.fetch('TIMESERVER_URL', nil)
|
||||||
|
VERSION_FILE_PATH = Rails.root.join('.version')
|
||||||
|
|
||||||
DEFAULT_URL_OPTIONS = {
|
DEFAULT_URL_OPTIONS = {
|
||||||
host: HOST,
|
host: HOST,
|
||||||
@@ -37,6 +38,10 @@ module Docuseal
|
|||||||
|
|
||||||
module_function
|
module_function
|
||||||
|
|
||||||
|
def version
|
||||||
|
@version ||= VERSION_FILE_PATH.read.strip if VERSION_FILE_PATH.exist?
|
||||||
|
end
|
||||||
|
|
||||||
def multitenant?
|
def multitenant?
|
||||||
ENV['MULTITENANT'] == 'true'
|
ENV['MULTITENANT'] == 'true'
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user