From: Andy Allan Date: Wed, 4 Dec 2019 14:26:13 +0000 (+0100) Subject: Use bootstrap cards to spruce up the help page X-Git-Tag: live~2402^2~1 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/dc96834ebbcad04b3e9dc25af16816c8c72d3121 Use bootstrap cards to spruce up the help page --- diff --git a/app/assets/stylesheets/_bootstrap-custom.scss b/app/assets/stylesheets/_bootstrap-custom.scss index 399dfb77c..88056f5e7 100644 --- a/app/assets/stylesheets/_bootstrap-custom.scss +++ b/app/assets/stylesheets/_bootstrap-custom.scss @@ -5,9 +5,9 @@ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) */ -// @import "bootstrap/functions"; -// @import "bootstrap/variables"; -// @import "bootstrap/mixins"; +@import "bootstrap/functions"; +@import "bootstrap/variables"; +@import "bootstrap/mixins"; // @import "bootstrap/root"; // @import "bootstrap/reboot"; // @import "bootstrap/type"; @@ -24,7 +24,7 @@ // @import "bootstrap/custom-forms"; // @import "bootstrap/nav"; // @import "bootstrap/navbar"; -// @import "bootstrap/card"; +@import "bootstrap/card"; // @import "bootstrap/breadcrumb"; // @import "bootstrap/pagination"; // @import "bootstrap/badge"; @@ -40,5 +40,5 @@ // @import "bootstrap/popover"; // @import "bootstrap/carousel"; // @import "bootstrap/spinners"; -// @import "bootstrap/utilities"; +@import "bootstrap/utilities"; // @import "bootstrap/print"; diff --git a/app/views/site/help.html.erb b/app/views/site/help.html.erb index dcb8142bd..88cc3f58e 100644 --- a/app/views/site/help.html.erb +++ b/app/views/site/help.html.erb @@ -4,15 +4,29 @@

<%= t ".introduction" %>

-<% %w[welcome beginners_guide help mailing_lists forums irc switch2osm welcomemat wiki].each do |site| %> - <% unless site == 'welcome' && !current_user %> -
-

- - <%= t ".#{site}.title" %> - -

-

<%= t ".#{site}.description" %>

+<% sites = %w[beginners_guide help mailing_lists forums irc switch2osm welcomemat wiki] %> +<% sites.prepend("welcome") if current_user %> + +<% sites.in_groups_of(3, false) do |group| %> +
+ <% group.each do |site| %> +
+
+
+ + <%= t ".#{site}.title" %> + +
+

<%= t ".#{site}.description" %>

+
+ +
+ <% end %>
- <% end %> <% end %>