diff --git a/app/views/themengruppen/_themengruppe.html.erb b/app/views/themengruppen/_themengruppe.html.erb index 5e25be7..44832dd 100644 --- a/app/views/themengruppen/_themengruppe.html.erb +++ b/app/views/themengruppen/_themengruppe.html.erb @@ -1,27 +1,32 @@ -<%= link_to themengruppe,{:class=>'linkbox color-1-dark'} do %> +
+<%= link_to themengruppe do %> + <% if themengruppe.icon.nil? or themengruppe.icon.empty? %> <%= image_tag themengruppe.picture.thumb.url,{:class=>"img-rounded"} %> <% end %> -
+ +
+

<% unless themengruppe.icon.nil? or themengruppe.icon.empty? %> <% end %> <%= themengruppe.title%>

- +<% end %>
+<%= link_to themengruppe do %>

<%= if themengruppe.text.split.size > Themengruppe::WORD_COUNT @@ -30,6 +35,7 @@ themengruppe.text end%>

+<% end %>
@@ -38,7 +44,8 @@
    <% themengruppe.themen.where(:hidelink=>false).where(:isdraft=>false).each do |t| %>
  • - <%= render t %> + <%= link_to t do %> +<%= render t %> <% end %>
  • <% end %>
@@ -48,4 +55,5 @@
-<% end %> +
+