From adbbce5fc810cfc8875241c4da5c0b0b5a07b334 Mon Sep 17 00:00:00 2001 From: HausdorffHimself Date: Fri, 23 Aug 2013 13:41:09 +0200 Subject: [PATCH] CHANGE: Layout auf CSS umgestellt --- .../themengruppen/_themengruppe.html.erb | 50 ++++++++++++------- app/views/themengruppen/index.html.erb | 34 +++++++------ 2 files changed, 51 insertions(+), 33 deletions(-) diff --git a/app/views/themengruppen/_themengruppe.html.erb b/app/views/themengruppen/_themengruppe.html.erb index 450e18e..717b3ab 100644 --- a/app/views/themengruppen/_themengruppe.html.erb +++ b/app/views/themengruppen/_themengruppe.html.erb @@ -1,18 +1,34 @@ - -

<%= link_to themengruppe.title, themengruppe %>

-

- <%= if themengruppe.text.split.size > Themengruppe::WORD_COUNT - themengruppe.text.split[0..Themengruppe::WORD_COUNT].join(" ") + " ..." - else - themengruppe.text - end%> -

+
+
+ <%= image_tag themengruppe.picture.thumb.url,{:class=>"img-circle"} %> +
+
+

<%= link_to themengruppe.title, themengruppe %>

+
+

-<%= I18n.t("themengruppe.themen") %> - +
+
+

+ <%= if themengruppe.text.split.size > Themengruppe::WORD_COUNT + themengruppe.text.split[0..Themengruppe::WORD_COUNT].join(" ") + " ..." + else + themengruppe.text + end%> +

+
+
+ +
+
+ <%= I18n.t("themengruppe.themen") %> +
    + <% themengruppe.themen.each do |t| %> +
  • + <%= render t %> +
  • + <% end %> +
+
+
+ diff --git a/app/views/themengruppen/index.html.erb b/app/views/themengruppen/index.html.erb index b1ae6d9..6c33445 100644 --- a/app/views/themengruppen/index.html.erb +++ b/app/views/themengruppen/index.html.erb @@ -1,21 +1,23 @@
- - <% @themengruppen.each_slice(2) do |row| %> -
- <% row.each do |themengruppe| %> -
-
- <%= render themengruppe %> -

- <%= link_to 'Edit', edit_themengruppe_path(themengruppe) %> -

-
-
- <% end %> -
- <% end %> + <% @themengruppen.each_slice(2) do |row| %> +
+ <% row.each do |themengruppe| %> +
+
+ <%= render themengruppe %> +
+
+ <%= link_to 'Edit', edit_themengruppe_path(themengruppe) %> +
+
+
+
+ <% end %> +
+ <% end %>
-
+ +