diff --git a/app/views/elements/_element.html.erb b/app/views/elements/_element.html.erb index 9bf42c3..7ae81e7 100644 --- a/app/views/elements/_element.html.erb +++ b/app/views/elements/_element.html.erb @@ -12,10 +12,11 @@ <% end %> -
- - <%= element.description %> -
+ <% if element.description %> +
+ <%= element.description %> +
+ <% end %> <% end %> diff --git a/app/views/elements/_form.html.erb b/app/views/elements/_form.html.erb index c53ca03..43349ca 100644 --- a/app/views/elements/_form.html.erb +++ b/app/views/elements/_form.html.erb @@ -1,4 +1,4 @@ -<%= bootstrap_form_with(model: element.persisted? ? element : [:page, element]) do |form| %> +<%= bootstrap_form_with(model: element.persisted? ? element : [:page, element], class: "mb-3") do |form| %> <%= form.hidden_field :page_id %> <%= form.text_field :title %> <%= form.rich_text_area :description %> diff --git a/app/views/home/show.html.erb b/app/views/home/show.html.erb deleted file mode 100644 index 117bbf5..0000000 --- a/app/views/home/show.html.erb +++ /dev/null @@ -1,10 +0,0 @@ -

a11ydive

- -

Dashboard

- -

- -<%= Report.count %> -<%= link_to Report.model_name.human(count: Report.count), :reports %> -

- diff --git a/app/views/home/show.html.slim b/app/views/home/show.html.slim new file mode 100644 index 0000000..91c6e73 --- /dev/null +++ b/app/views/home/show.html.slim @@ -0,0 +1,13 @@ +h1 a11ydive +h2 Dashboard + +- if Report.any? + h3 Zuletzt bearbeitete Prüfberichte + ul + - Report.all.order(updated_at: :desc).limit(3).each do |r| + li = link_to(r.name, r) + +p + i.bi.bi-journal-text + =< Report.count + =< link_to Report.model_name.human(count: Report.count), :reports diff --git a/app/views/success_criteria/_success_criterion.html.erb b/app/views/success_criteria/_success_criterion.html.erb index 573c929..9b3ef90 100644 --- a/app/views/success_criteria/_success_criterion.html.erb +++ b/app/views/success_criteria/_success_criterion.html.erb @@ -27,11 +27,17 @@ <% end %> - <%= success_criterion.quick_criterion %> - <%= success_criterion.quick_fail %> - <%= success_criterion.quick_fix %> +
+ <%= success_criterion.quick_criterion %> +
+
+ <%= success_criterion.quick_fail %> +
+
+ <%= success_criterion.quick_fix %> +
<% if success_criterion.test_comment.present? %> -
<%= success_criterion.test_comment %>
+
<%= success_criterion.test_comment %>
<% end %>