Compare commits

..

No commits in common. "4c8c8e6bcddb8f2f83a657d826cf315acf43bd4a" and "56956f37fb43a75a4d5a0a03d8c8637de5342711" have entirely different histories.

8 changed files with 13 additions and 18 deletions

View File

@ -136,7 +136,6 @@ defmodule MemexWeb.CoreComponents do
""" """
end end
attr :id, :string, required: true
attr :datetime, :any, required: true, doc: "A `DateTime` struct or nil" attr :datetime, :any, required: true, doc: "A `DateTime` struct or nil"
@doc """ @doc """
@ -152,7 +151,6 @@ defmodule MemexWeb.CoreComponents do
defp cast_datetime(_datetime), do: "" defp cast_datetime(_datetime), do: ""
attr :id, :string, required: true
attr :date, :any, required: true, doc: "A `Date` struct or nil" attr :date, :any, required: true, doc: "A `Date` struct or nil"
@doc """ @doc """

View File

@ -16,7 +16,7 @@
"user confirmed on%{confirmed_datetime}", "user confirmed on%{confirmed_datetime}",
confirmed_datetime: "" confirmed_datetime: ""
) %> ) %>
<.datetime id={"#{@user.id}-confirmed-at"} datetime={@user.confirmed_at} /> <.datetime datetime={@user.confirmed_at} />
<% else %> <% else %>
<%= gettext("email unconfirmed") %> <%= gettext("email unconfirmed") %>
<% end %> <% end %>
@ -27,7 +27,7 @@
"user registered on%{registered_datetime}", "user registered on%{registered_datetime}",
registered_datetime: "" registered_datetime: ""
) %> ) %>
<.datetime id={"#{@user.id}-inserted-at"} datetime={@user.inserted_at} /> <.datetime datetime={@user.inserted_at} />
</p> </p>
</h3> </h3>

View File

@ -90,9 +90,9 @@
<%= dgettext("prompts", "register to setup memEx") %> <%= dgettext("prompts", "register to setup memEx") %>
</.link> </.link>
<% else %> <% else %>
<.link :for={%{email: email} <- @admins} class="link" href={"mailto:#{email}"}> <a :for={%{email: email} <- @admins} class="link" href={"mailto:#{email}"}>
<%= email %> <%= email %>
</.link> </a>
<% end %> <% end %>
</p> </p>
</li> </li>

View File

@ -56,16 +56,16 @@
<i class="fa-fw fa-lg fas fa-trash"></i> <i class="fa-fw fa-lg fas fa-trash"></i>
</.link> </.link>
<.link <a
href="#" href="#"
class="btn btn-secondary" class="btn btn-secondary"
phx-click={if invite.disabled_at, do: "enable_invite", else: "disable_invite"} phx-click={if invite.disabled_at, do: "enable_invite", else: "disable_invite"}
phx-value-id={invite.id} phx-value-id={invite.id}
> >
<%= if invite.disabled_at, do: gettext("enable"), else: gettext("disable") %> <%= if invite.disabled_at, do: gettext("enable"), else: gettext("disable") %>
</.link> </a>
<.link <a
:if={invite.disabled_at |> is_nil() and not (invite.uses_left |> is_nil())} :if={invite.disabled_at |> is_nil() and not (invite.uses_left |> is_nil())}
href="#" href="#"
class="btn btn-secondary" class="btn btn-secondary"
@ -78,7 +78,7 @@
} }
> >
<%= gettext("set unlimited") %> <%= gettext("set unlimited") %>
</.link> </a>
</.invite_card> </.invite_card>
<.link <.link

View File

@ -24,12 +24,9 @@
<hr class="w-full hr" /> <hr class="w-full hr" />
<.link <a href={Routes.live_path(Endpoint, HomeLive)} class="link title text-primary-400 text-lg">
href={Routes.live_path(Endpoint, HomeLive)}
class="link title text-primary-400 text-lg"
>
<%= dgettext("errors", "go back home") %> <%= dgettext("errors", "go back home") %>
</.link> </a>
</div> </div>
</div> </div>
</body> </body>

View File

@ -83,7 +83,7 @@ msgstr ""
msgid "invalid format: only numbers, letters and hyphen are accepted" msgid "invalid format: only numbers, letters and hyphen are accepted"
msgstr "" msgstr ""
#: lib/memex_web/templates/error/error.html.heex:31 #: lib/memex_web/templates/error/error.html.heex:28
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "go back home" msgid "go back home"
msgstr "" msgstr ""

View File

@ -84,7 +84,7 @@ msgstr ""
msgid "invalid format: only numbers, letters and hyphen are accepted" msgid "invalid format: only numbers, letters and hyphen are accepted"
msgstr "" msgstr ""
#: lib/memex_web/templates/error/error.html.heex:31 #: lib/memex_web/templates/error/error.html.heex:28
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "go back home" msgid "go back home"
msgstr "" msgstr ""

View File

@ -83,7 +83,7 @@ msgstr ""
msgid "invalid format: only numbers, letters and hyphen are accepted" msgid "invalid format: only numbers, letters and hyphen are accepted"
msgstr "" msgstr ""
#: lib/memex_web/templates/error/error.html.heex:31 #: lib/memex_web/templates/error/error.html.heex:28
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "go back home" msgid "go back home"
msgstr "" msgstr ""