mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-01-19 14:17:59 +01:00
format
This commit is contained in:
parent
6b2e46c9e8
commit
fee0d030a8
2 changed files with 7 additions and 2 deletions
|
@ -8,6 +8,8 @@ defmodule PhilomenaWeb.MarkdownView do
|
||||||
def required?(required) when required == false, do: nil
|
def required?(required) when required == false, do: nil
|
||||||
def required?(_), do: true
|
def required?(_), do: true
|
||||||
|
|
||||||
def add_classes(base_classes, new_classes) when is_binary(new_classes), do: "#{base_classes} #{new_classes}"
|
def add_classes(base_classes, new_classes) when is_binary(new_classes),
|
||||||
|
do: "#{base_classes} #{new_classes}"
|
||||||
|
|
||||||
def add_classes(base_classes, _), do: base_classes
|
def add_classes(base_classes, _), do: base_classes
|
||||||
end
|
end
|
||||||
|
|
|
@ -8,7 +8,10 @@ defmodule PhilomenaWeb.StatView do
|
||||||
{
|
{
|
||||||
%{"doc_count" => min_docs},
|
%{"doc_count" => min_docs},
|
||||||
%{"doc_count" => max_docs}
|
%{"doc_count" => max_docs}
|
||||||
} = Enum.min_max_by(data, & &1["doc_count"], fn -> {%{"doc_count" => 0}, %{"doc_count" => 0}} end)
|
} =
|
||||||
|
Enum.min_max_by(data, & &1["doc_count"], fn ->
|
||||||
|
{%{"doc_count" => 0}, %{"doc_count" => 0}}
|
||||||
|
end)
|
||||||
|
|
||||||
graph_width = 950
|
graph_width = 950
|
||||||
graph_height = 475
|
graph_height = 475
|
||||||
|
|
Loading…
Reference in a new issue