diff --git a/assets/css/app.scss b/assets/css/app.scss
index 88d9ff4..56b45a5 100644
--- a/assets/css/app.scss
+++ b/assets/css/app.scss
@@ -97,6 +97,9 @@ $border-radius: 0.375rem;
.fa.fixed-width {
width: 1.2em;
}
+.list-group.inline {
+ display: inline-block;
+}
/* user */
.btn-danger, .btn-danger:hover {
color: #fff;
diff --git a/lib/kmxgit/repository_manager/repository.ex b/lib/kmxgit/repository_manager/repository.ex
index 2168458..6f8a4ab 100644
--- a/lib/kmxgit/repository_manager/repository.ex
+++ b/lib/kmxgit/repository_manager/repository.ex
@@ -29,7 +29,7 @@ defmodule Kmxgit.RepositoryManager.Repository do
belongs_to :forked_from, __MODULE__
belongs_to :organisation, Organisation, on_replace: :nilify
field :owner_slug, :string, virtual: true
- field :public_access, :boolean, null: false, default: false
+ field :public_access, :boolean, default: false
field :slug, :string
belongs_to :user, User, on_replace: :nilify
many_to_many :members, User, join_through: "users_repositories", on_replace: :delete, on_delete: :delete_all
diff --git a/lib/kmxgit/user_manager/user.ex b/lib/kmxgit/user_manager/user.ex
index b0aa86d..5d73f2a 100644
--- a/lib/kmxgit/user_manager/user.ex
+++ b/lib/kmxgit/user_manager/user.ex
@@ -23,12 +23,12 @@ defmodule Kmxgit.UserManager.User do
schema "users" do
field :confirmed_at, :utc_datetime
- field :deploy_only, :boolean, null: false, default: false
- field :description, :string, null: true
+ field :deploy_only, :boolean, default: false
+ field :description, :string
field :disk_usage, :integer, default: 0
field :email, :string
field :hashed_password, :string, redact: true
- field :is_admin, :boolean, null: false, default: false
+ field :is_admin, :boolean, default: false
field :name, :string
many_to_many :organisations, Organisation, join_through: "users_organisations", on_delete: :delete_all
has_many :owned_repositories, Repository, on_delete: :delete_all
diff --git a/lib/kmxgit_web/templates/page/index.html.heex b/lib/kmxgit_web/templates/page/index.html.heex
index 33d168d..0a3e371 100644
--- a/lib/kmxgit_web/templates/page/index.html.heex
+++ b/lib/kmxgit_web/templates/page/index.html.heex
@@ -24,7 +24,7 @@
<h3><%= gettext("Security") %></h3>
<p>
- <ul class="list-group">
+ <ul class="list-group inline">
<li class="list-group-item bg-h">
<h5><%= link gettext("SSH keys fingerprint"), to: "#ssh-keys", id: "ssh-keys" %></h5>
</li>
@@ -40,7 +40,7 @@
</p>
<p>
- <ul class="list-group">
+ <ul class="list-group inline">
<li class="list-group-item bg-h">
<%= gettext "Clone repository user/path/to/repo if repo does not exist" %> :
</li>
@@ -52,7 +52,7 @@ cd <b>repo</b></code></pre>
</p>
<p>
- <ul class="list-group">
+ <ul class="list-group inline">
<li class="list-group-item bg-h">
<%= gettext "Change branch" %> :
</li>
@@ -63,7 +63,7 @@ cd <b>repo</b></code></pre>
</p>
<p>
- <ul class="list-group">
+ <ul class="list-group inline">
<li class="list-group-item bg-h">
<%= gettext "Pull changes from remote" %> :
</li>
@@ -74,7 +74,7 @@ cd <b>repo</b></code></pre>
</p>
<p>
- <ul class="list-group">
+ <ul class="list-group inline">
<li class="list-group-item bg-h">
<%= gettext "Add local changes to next commit" %> :
</li>
@@ -85,7 +85,7 @@ cd <b>repo</b></code></pre>
</p>
<p>
- <ul class="list-group">
+ <ul class="list-group inline">
<li class="list-group-item bg-h">
<%= gettext "Commit" %> :
</li>
@@ -96,7 +96,7 @@ cd <b>repo</b></code></pre>
</p>
<p>
- <ul class="list-group">
+ <ul class="list-group inline">
<li class="list-group-item bg-h">
<%= gettext "Push changes to remote" %> :
</li>
@@ -107,7 +107,7 @@ cd <b>repo</b></code></pre>
</p>
<p>
- <ul class="list-group">
+ <ul class="list-group inline">
<li class="list-group-item bg-h">
<%= gettext "Or if your local repo already exists, add remote to existing repo." %> :
</li>
@@ -118,7 +118,7 @@ cd <b>repo</b></code></pre>
</p>
<p>
- <ul class="list-group">
+ <ul class="list-group inline">
<li class="list-group-item bg-h">
<%= gettext "Push to new remote" %> :
</li>
@@ -142,9 +142,9 @@ cd <b>repo</b></code></pre>
</p>
<div class="row">
- <div class="col col-12 col-md-5">
+ <div class="col col-12">
<p>
- <ul class="list-group">
+ <ul class="list-group inline">
<li class="list-group-item bg-h">
<h3><%= link gettext("Stats"), to: "#stats", id: "stats" %></h3>
</li>
diff --git a/mix.exs b/mix.exs
index 6417ef9..4e107e0 100644
--- a/mix.exs
+++ b/mix.exs
@@ -21,7 +21,7 @@ defmodule Kmxgit.MixProject do
version_url: "https://git.kmx.io/kmx.io/kmxgit/_tree/master",
elixir: "~> 1.12",
elixirc_paths: elixirc_paths(Mix.env()),
- compilers: [:gettext] ++ Mix.compilers(),
+ compilers: Mix.compilers(),
start_permanent: Mix.env() == :prod,
aliases: aliases(),
deps: deps()
diff --git a/priv/static/_assets/app.css b/priv/static/_assets/app.css
index 98ecc5d..d425cdc 100644
--- a/priv/static/_assets/app.css
+++ b/priv/static/_assets/app.css
@@ -19329,6 +19329,10 @@ pre.wrap {
width: 1.2em;
}
+.list-group.inline {
+ display: inline-block;
+}
+
/* user */
.btn-danger, .btn-danger:hover {
color: #fff;