mirror of
https://github.com/docusealco/docuseal.git
synced 2026-06-23 04:10:11 +00:00
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
|
||||
uses: docker/setup-buildx-action@v2
|
||||
|
||||
- name: Create .version file
|
||||
run: echo ${{ github.ref_name }} > .version
|
||||
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
|
||||
@@ -31,6 +31,7 @@ yarn-debug.log*
|
||||
|
||||
.env
|
||||
.DS_Store
|
||||
.version
|
||||
|
||||
/coverage
|
||||
/attachments
|
||||
|
||||
+1
-1
@@ -53,7 +53,7 @@ COPY ./log ./log
|
||||
COPY ./lib ./lib
|
||||
COPY ./public ./public
|
||||
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=webpack /app/public/packs ./public/packs
|
||||
|
||||
@@ -4,11 +4,16 @@
|
||||
<div class="text-center">
|
||||
<div class="relative flex flex-col items-center">
|
||||
<%= 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
|
||||
</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>
|
||||
<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.
|
||||
</h2>
|
||||
</div>
|
||||
@@ -62,7 +67,8 @@
|
||||
</div>
|
||||
<h3 class="mb-4 text-2xl font-semibold">Open Source</h3>
|
||||
<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>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -116,6 +116,11 @@
|
||||
<a href="mailto:<%= Docuseal::SUPPORT_EMAIL %>" target="_blank" class="w-full block mt-4 underline text-center">
|
||||
<%= Docuseal::SUPPORT_EMAIL %>
|
||||
</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>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
@@ -29,6 +29,7 @@ module Docuseal
|
||||
|
||||
CERTS = JSON.parse(ENV.fetch('CERTS', '{}'))
|
||||
TIMESERVER_URL = ENV.fetch('TIMESERVER_URL', nil)
|
||||
VERSION_FILE_PATH = Rails.root.join('.version')
|
||||
|
||||
DEFAULT_URL_OPTIONS = {
|
||||
host: HOST,
|
||||
@@ -37,6 +38,10 @@ module Docuseal
|
||||
|
||||
module_function
|
||||
|
||||
def version
|
||||
@version ||= VERSION_FILE_PATH.read.strip if VERSION_FILE_PATH.exist?
|
||||
end
|
||||
|
||||
def multitenant?
|
||||
ENV['MULTITENANT'] == 'true'
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user