Skip to content

Commit

Permalink
Fix display of server name (from URL_HOST) on /about page
Browse files Browse the repository at this point in the history
  • Loading branch information
ku1ik committed Nov 14, 2024
1 parent 65d8f8d commit f86fb1a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion lib/asciinema_web/controllers/page_controller.ex
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ defmodule AsciinemaWeb.PageController do
conn,
"about.html",
page_title: "About",
contact_email_address: Application.get_env(:asciinema, :contact_email_address)
contact_email_address: Application.get_env(:asciinema, :contact_email_address),
server_name: AsciinemaWeb.Endpoint.host()
)
end

Expand Down
6 changes: 3 additions & 3 deletions lib/asciinema_web/controllers/page_html/about.html.heex
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<h1>About <%= @conn.host %></h1>
<h1>About <%= @server_name %></h1>

<p>
<strong><%= @conn.host %></strong> is a platform for hosting and sharing
<strong><%= @server_name %></strong> is a platform for hosting and sharing
terminal session recordings, powered by <a href="https://docs.asciinema.org/manual/server/">asciinema server</a>.
</p>

Expand All @@ -22,7 +22,7 @@
<li>account access problems,</li>
<li>recording recovery,</li>
<li>content reporting,</li>
<li>security vulnerability, which may affect <%= @conn.host %> users.</li>
<li>security vulnerability, which may affect <%= @server_name %> users.</li>
</ul>

<p>
Expand Down

0 comments on commit f86fb1a

Please sign in to comment.