use project version on homepage
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				continuous-integration/drone/tag Build is passing
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	continuous-integration/drone/tag Build is passing
				
			This commit is contained in:
		@@ -2,6 +2,7 @@
 | 
				
			|||||||
- improve search a whole lot
 | 
					- improve search a whole lot
 | 
				
			||||||
- improve table information for notes and contexts
 | 
					- improve table information for notes and contexts
 | 
				
			||||||
- fix some typos
 | 
					- fix some typos
 | 
				
			||||||
 | 
					- use project version on homepage
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# v0.1.0
 | 
					# v0.1.0
 | 
				
			||||||
- initial release >:3c
 | 
					- initial release >:3c
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -3,6 +3,8 @@ defmodule MemexWeb.HomeLive do
 | 
				
			|||||||
  Liveview for the main home page
 | 
					  Liveview for the main home page
 | 
				
			||||||
  """
 | 
					  """
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  @version Mix.Project.config()[:version]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  use MemexWeb, :live_view
 | 
					  use MemexWeb, :live_view
 | 
				
			||||||
  alias Memex.Accounts
 | 
					  alias Memex.Accounts
 | 
				
			||||||
  alias MemexWeb.{Endpoint, FaqLive}
 | 
					  alias MemexWeb.{Endpoint, FaqLive}
 | 
				
			||||||
@@ -10,6 +12,6 @@ defmodule MemexWeb.HomeLive do
 | 
				
			|||||||
  @impl true
 | 
					  @impl true
 | 
				
			||||||
  def mount(_params, _session, socket) do
 | 
					  def mount(_params, _session, socket) do
 | 
				
			||||||
    admins = Accounts.list_users_by_role(:admin)
 | 
					    admins = Accounts.list_users_by_role(:admin)
 | 
				
			||||||
    {:ok, socket |> assign(page_title: gettext("home"), admins: admins)}
 | 
					    {:ok, socket |> assign(page_title: gettext("home"), admins: admins, version: @version)}
 | 
				
			||||||
  end
 | 
					  end
 | 
				
			||||||
end
 | 
					end
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -120,12 +120,12 @@
 | 
				
			|||||||
    <li class="flex flex-row justify-center items-center space-x-2">
 | 
					    <li class="flex flex-row justify-center items-center space-x-2">
 | 
				
			||||||
      <b><%= gettext("version:") %></b>
 | 
					      <b><%= gettext("version:") %></b>
 | 
				
			||||||
      <.link
 | 
					      <.link
 | 
				
			||||||
        href="https://gitea.bubbletea.dev/shibao/memex/src/branch/stable/CHANGELOG.md"
 | 
					        href="https://gitea.bubbletea.dev/shibao/memEx/src/branch/stable/changelog.md"
 | 
				
			||||||
        class="flex flex-row justify-center items-center space-x-2 link"
 | 
					        class="flex flex-row justify-center items-center space-x-2 link"
 | 
				
			||||||
        target="_blank"
 | 
					        target="_blank"
 | 
				
			||||||
        rel="noopener noreferrer"
 | 
					        rel="noopener noreferrer"
 | 
				
			||||||
      >
 | 
					      >
 | 
				
			||||||
        <p>0.1.0</p>
 | 
					        <p><%= @version %></p>
 | 
				
			||||||
        <i class="fas fa-md fa-info-circle"></i>
 | 
					        <i class="fas fa-md fa-info-circle"></i>
 | 
				
			||||||
      </.link>
 | 
					      </.link>
 | 
				
			||||||
    </li>
 | 
					    </li>
 | 
				
			||||||
@@ -140,7 +140,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    <li class="flex flex-col justify-center space-x-2">
 | 
					    <li class="flex flex-col justify-center space-x-2">
 | 
				
			||||||
      <.link
 | 
					      <.link
 | 
				
			||||||
        href="https://gitea.bubbletea.dev/shibao/memex"
 | 
					        href="https://gitea.bubbletea.dev/shibao/memEx"
 | 
				
			||||||
        class="flex flex-row justify-center items-center space-x-2 link"
 | 
					        class="flex flex-row justify-center items-center space-x-2 link"
 | 
				
			||||||
        target="_blank"
 | 
					        target="_blank"
 | 
				
			||||||
        rel="noopener noreferrer"
 | 
					        rel="noopener noreferrer"
 | 
				
			||||||
@@ -151,7 +151,7 @@
 | 
				
			|||||||
    </li>
 | 
					    </li>
 | 
				
			||||||
    <li class="flex flex-col justify-center space-x-2">
 | 
					    <li class="flex flex-col justify-center space-x-2">
 | 
				
			||||||
      <.link
 | 
					      <.link
 | 
				
			||||||
        href="https://weblate.bubbletea.dev/engage/memex"
 | 
					        href="https://weblate.bubbletea.dev/engage/memEx"
 | 
				
			||||||
        class="flex flex-row justify-center items-center space-x-2 link"
 | 
					        class="flex flex-row justify-center items-center space-x-2 link"
 | 
				
			||||||
        target="_blank"
 | 
					        target="_blank"
 | 
				
			||||||
        rel="noopener noreferrer"
 | 
					        rel="noopener noreferrer"
 | 
				
			||||||
@@ -162,7 +162,7 @@
 | 
				
			|||||||
    </li>
 | 
					    </li>
 | 
				
			||||||
    <li class="flex flex-col justify-center space-x-2">
 | 
					    <li class="flex flex-col justify-center space-x-2">
 | 
				
			||||||
      <.link
 | 
					      <.link
 | 
				
			||||||
        href="https://gitea.bubbletea.dev/shibao/memex/issues/new"
 | 
					        href="https://gitea.bubbletea.dev/shibao/memEx/issues/new"
 | 
				
			||||||
        class="flex flex-row justify-center items-center space-x-2 link"
 | 
					        class="flex flex-row justify-center items-center space-x-2 link"
 | 
				
			||||||
        target="_blank"
 | 
					        target="_blank"
 | 
				
			||||||
        rel="noopener noreferrer"
 | 
					        rel="noopener noreferrer"
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -475,7 +475,7 @@ msgstr ""
 | 
				
			|||||||
msgid "%{slug} could not be found"
 | 
					msgid "%{slug} could not be found"
 | 
				
			||||||
msgstr ""
 | 
					msgstr ""
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#: lib/memex_web/live/home_live.ex:13
 | 
					#: lib/memex_web/live/home_live.ex:15
 | 
				
			||||||
#, elixir-autogen, elixir-format
 | 
					#, elixir-autogen, elixir-format
 | 
				
			||||||
msgid "home"
 | 
					msgid "home"
 | 
				
			||||||
msgstr ""
 | 
					msgstr ""
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -464,7 +464,7 @@ msgstr ""
 | 
				
			|||||||
msgid "%{slug} could not be found"
 | 
					msgid "%{slug} could not be found"
 | 
				
			||||||
msgstr ""
 | 
					msgstr ""
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#: lib/memex_web/live/home_live.ex:13
 | 
					#: lib/memex_web/live/home_live.ex:15
 | 
				
			||||||
#, elixir-autogen, elixir-format
 | 
					#, elixir-autogen, elixir-format
 | 
				
			||||||
msgid "home"
 | 
					msgid "home"
 | 
				
			||||||
msgstr ""
 | 
					msgstr ""
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user