You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
docuseal/app/views/notifications_settings/_paperless_status.html.erb

29 lines
1012 B

<div class="mt-8 mb-4">
<h2 class="text-3xl font-bold mb-4">
Paperless-ngx
</h2>
<div class="flex items-center space-x-3">
<% if !@paperless_status[:configured] %>
<span class="badge badge-ghost">Not Configured</span>
<span class="text-sm opacity-70">
Set PAPERLESS_NGX_URL and PAPERLESS_NGX_TOKEN environment variables to enable.
</span>
<% elsif @paperless_status[:reachable] %>
<span class="badge badge-success">Connected</span>
<span class="text-sm opacity-70">
<%= @paperless_status[:url] %>
</span>
<% else %>
<span class="badge badge-error">Unreachable</span>
<span class="text-sm opacity-70">
<%= @paperless_status[:url] %> — <%= @paperless_status[:error] %>
</span>
<% end %>
</div>
<% if @paperless_status[:configured] %>
<p class="text-sm opacity-70 mt-2">
Signed documents are automatically uploaded to Paperless-ngx when all parties complete signing.
</p>
<% end %>
</div>